/* ===== BrickRoom 3D Landing v4 ===== */
:root {
  --orange: #e8750a;
  --orange-dark: #c45e00;
  --orange-light: #fff4ea;
  --orange-mid: #f5a623;
  --navy: #1c2b3a;
  --navy-mid: #2d3f52;
  --ink: #1c2b3a;
  --ink-sub: #3d5166;
  --muted: #7a8fa0;
  --line: #e4e8ed;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --radius: 16px;
  --font: Inter, "Pretendard", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--panel); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== AD SLOTS ===== */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px dashed #d0d8e0;
  color: #a0adb8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}
.ad-label {
  background: #e0e8f0;
  color: #8090a0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 4px;
}
.ad-slot-top { height: 90px; width: 100%; max-width: 728px; margin: 8px auto; border-radius: 8px; }
.ad-slot-mid { height: 90px; margin: 0; border-radius: 0; border-left: none; border-right: none; }
.ad-slot-footer { height: 90px; margin-bottom: 32px; border-radius: 8px; max-width: 728px; margin-left: auto; margin-right: auto; }
.ad-slot-sidebar { height: 250px; width: 100%; border-radius: 8px; margin-bottom: 20px; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-icon { width: 42px; height: 42px; flex-shrink: 0; }
.nav-logo-img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.nav-lang-select { font-size: 0.82rem; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-lang-select:focus { outline: none; border-color: var(--orange); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-size: 1rem; font-weight: 900; color: var(--navy); letter-spacing: 0.02em; }
.nav-logo-name span { color: var(--orange); }
.nav-logo-sub { font-size: 0.55rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--orange); color: #fff;
  font-weight: 700; font-size: 0.92rem;
  padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s; text-decoration: none;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary-lg { font-size: 1.05rem; padding: 14px 30px; border-radius: 12px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--ink-sub);
  font-weight: 600; font-size: 1rem;
  padding: 13px 28px; border-radius: 12px;
  border: 1.5px solid var(--line); cursor: pointer;
  transition: border-color 0.15s, color 0.15s; text-decoration: none;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ===== HERO ===== */
.hero {
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 72px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 60px;
  gap: 60px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-light); color: var(--orange-dark);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid #f5c88a; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900; line-height: 1.15;
  color: var(--navy); margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange); display: block; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 430px; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.hero-social { display: flex; align-items: center; gap: 10px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid white; margin-right: -8px;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.hero-social-text { font-size: 0.85rem; color: var(--muted); padding-left: 14px; }
.hero-social-text strong { color: var(--ink); }

/* ===== HERO VISUAL ===== */
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; gap: 14px; }

/* floating brick container with dot grid */
.hero-brick-container {
  position: relative;
  width: 100%; max-width: 380px;
  background: #f0f2f5;
  border-radius: 24px;
  padding: 32px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-brick-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #c8d0d8 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 24px;
  opacity: 0.7;
}
.hero-brick-svg {
  position: relative; z-index: 1;
  width: 100%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(232,117,10,0.22));
}
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }

/* floating notification cards */
.float-card {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  font-size: 0.85rem; width: 100%; max-width: 320px;
  animation: slideIn 0.6s ease both;
}
.float-card-top { animation-delay: 0.2s; align-self: flex-start; }
.float-card-bottom { animation-delay: 0.4s; align-self: flex-end; }
@keyframes slideIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.float-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; color: white;
}
.float-card-title { font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.float-card-sub { color: var(--muted); font-size: 0.78rem; }

/* ===== STEPS ===== */
.steps { background: var(--panel); padding: 100px 60px; }
.steps-inner { max-width: 1000px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 900; color: var(--navy); margin-bottom: 12px; }
.section-header p { font-size: 1rem; color: var(--muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.step-card { text-align: center; padding: 36px 24px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(232,117,10,0.1); border-color: var(--orange); }
.step-icon-wrap { width: 72px; height: 72px; background: var(--orange-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ===== FEATURES ===== */
.features { background: var(--bg); padding: 100px 60px; }
.features-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
/* 2-tile layout */
.features-tiles-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 340px; }
.feat-tile-2 { border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transition: transform 0.2s; }
.feat-tile-2:hover { transform: scale(1.04); }
.feat-tile-2.feat-orange { background: var(--orange); }
.feat-tile-2.feat-dark { background: var(--navy); }
/* legacy 4-tile (kept for compatibility) */
.features-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat-tile { background: var(--panel); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s; }
.feat-tile:hover { transform: scale(1.04); }
.feat-tile.highlight { background: var(--orange); font-size: 2.8rem; }
.feat-tile.dark { background: var(--navy); font-size: 2rem; }
.feat-tile.dashed { background: transparent; border: 2px dashed var(--line); font-size: 2rem; color: var(--orange); }
.features-content h2 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 900; color: var(--navy); line-height: 1.25; margin-bottom: 36px; }
.features-content h2 span { color: var(--orange); }
.feat-list { display: flex; flex-direction: column; gap: 24px; }
.feat-item { display: flex; gap: 16px; align-items: flex-start; }
.feat-icon { width: 44px; height: 44px; background: var(--orange-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.feat-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feat-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ===== CATALOG ===== */
.catalog { background: var(--panel); padding: 100px 60px; }
.catalog-inner { max-width: 1200px; margin: 0 auto; }
.catalog-header-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.catalog-header-row h2 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 900; color: var(--navy); }
.catalog-header-row p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.catalog-header-row a { color: var(--orange); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.catalog-header-row a:hover { text-decoration: underline; }
.catalog-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.catalog-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; text-decoration: none; color: inherit; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(232,117,10,0.12); border-color: var(--orange); }
.catalog-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.catalog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.catalog-card:hover .catalog-card-img img { transform: scale(1.06); }
.catalog-card-body { padding: 14px 16px 16px; }
.catalog-card-body strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-card-body span { font-size: 0.78rem; color: var(--orange); font-weight: 600; }

/* ===== CTA ===== */
.cta-section { background: var(--navy); padding: 100px 60px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content:''; position:absolute; top:-60px; right:-60px; width:300px; height:300px; border-radius:50%; background:rgba(232,117,10,0.15); }
.cta-section::after { content:''; position:absolute; bottom:-80px; left:-40px; width:250px; height:250px; border-radius:50%; background:rgba(232,117,10,0.1); }
.cta-section h2 { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 900; color: #fff; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-section h2 span { color: var(--orange-mid); }
.cta-section p { color: #8ea3b8; font-size: 1rem; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-section .btn-primary { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.footer { background: #111c27; padding: 48px 60px 32px; color: #7a8fa0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 60px; margin-bottom: 40px; }
.footer-brand { max-width: 260px; flex-shrink: 0; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-icon { width: 30px; height: 30px; }
.footer-logo-img { width: 30px; height: 30px; object-fit: contain; }
.footer-logo-name { font-size: 0.9rem; font-weight: 900; color: #fff; letter-spacing: 0.02em; }
.footer-logo-name span { color: var(--orange); }
.footer-desc { line-height: 1.7; font-size: 0.82rem; }
.footer-links { display: flex; gap: 56px; flex: 1; justify-content: flex-end; }
.footer-col h4 { color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #7a8fa0; font-size: 0.84rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid #1e2d3d; color: #3d5166; font-size: 0.78rem; display: flex; justify-content: space-between; align-items: center; }

/* ===== MOBILE ===== */
@media (max-width: 960px) {
  .nav { padding: 0 20px; height: 64px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 48px 24px 40px; gap: 32px; text-align: center; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-cube-wrap { max-width: 300px; }
  .float-card { max-width: 260px; }
  .steps { padding: 64px 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .features { padding: 64px 24px; }
  .features-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-tiles-2 { max-width: 100%; }
  .feat-tile-2 { font-size: 2.2rem; }
  .catalog { padding: 64px 24px; }
  .catalog-header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .catalog-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .cta-section { padding: 64px 24px; }
  .footer { padding: 40px 24px 24px; }
  .footer-inner { flex-direction: column; gap: 32px; margin-bottom: 32px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ad-slot-top, .ad-slot-footer { max-width: 100%; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { justify-content: center; }
}
