:root{
  --bg:#04070d;
  --bg2:#0b1424;
  --panel:#0f1727;
  --panel2:#111b2f;
  --surface:#111b2d;
  --text:#f3f6ff;
  --muted:#9bacbf;
  --accent:#f47a27;
  --accent2:#36d3ff;
  --border:rgba(255,255,255,0.08);
  --radius:16px;
  --radius-lg:24px;
  --shadow:0 18px 50px rgba(3,6,12,0.65);
  --gradient-1:radial-gradient(1200px 600px at 4% -5%, rgba(244,122,39,0.35), transparent 60%);
  --gradient-2:radial-gradient(900px 520px at 96% 0%, rgba(54,211,255,0.18), transparent 60%);
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --section-gap:56px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    var(--gradient-1),
    var(--gradient-2),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.6;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
button, select{ font-family:inherit; }

/* Layout helpers */
.container{ width:100%; max-width:var(--max); margin:0 auto; padding:0 20px; }
.stack{ display:flex; flex-direction:column; gap:16px; }
.spacer{ height:26px; }

/* Loading */
#loader{
  position:fixed; inset:0;
  display:flex; justify-content:center; align-items:center;
  background:linear-gradient(180deg, var(--bg), var(--bg2));
  z-index:999;
  transition:opacity .25s ease;
}
.spinner{
  width:44px; height:44px;
  border:3px solid var(--border);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
  box-shadow: 0 0 0 6px rgba(243,112,33,0.07);
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.hidden{ opacity:0; pointer-events:none; }

/* Header (Sendbird-like: left brand, middle nav, right CTAs) */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,15,23,0.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{
  height:68px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; letter-spacing:-0.3px;
  white-space:nowrap;
}
.brand-badge{
  width:30px; height:30px; border-radius:10px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 24px rgba(243,112,33,0.25);
}
.nav-mid{
  display:flex; align-items:center; gap:18px;
  min-width:0;
}
.nav-links{
  display:flex; align-items:center; gap:14px;
  padding:6px 8px;
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
  overflow:auto;
  scrollbar-width:none;
}
.nav-links::-webkit-scrollbar{ display:none; }
.nav-link{
  font-size:13px;
  color:var(--muted);
  padding:7px 10px;
  border-radius:999px;
  border:1px solid transparent;
  transition:.18s ease;
  white-space:nowrap;
  user-select:none;
}
.nav-link:hover{ color:var(--text); background:rgba(255,255,255,0.05); }
.nav-link.active{
  color:var(--text);
  background:rgba(255,255,255,0.06);
  border-color:rgba(243,112,33,0.35);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.nav-right{
  display:flex; align-items:center; gap:10px;
  white-space:nowrap;
}
.select{
  background:rgba(255,255,255,0.05);
  border:1px solid var(--border);
  color:var(--text);
  padding:7px 10px;
  border-radius:10px;
  outline:none;
  font-size:13px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  color:var(--text);
  border:1px solid var(--border);
  font-size:13px;
  font-weight:700;
  transition:.18s ease;
}
.btn:hover{ transform:translateY(-1px); filter:brightness(1.08); }
.btn.primary{
  background:linear-gradient(135deg, var(--accent), #5a8bff);
  border-color:rgba(243,112,33,0.6);
  color:white;
  box-shadow: 0 18px 44px rgba(243,112,33,0.22);
}
.btn.ghost{
  background:transparent;
  border-color:rgba(255,255,255,0.14);
  color:var(--text);
}
.btn:focus-visible,
.nav-link:focus-visible,
.select:focus-visible,
.hamburger:focus-visible,
.copy-btn:focus-visible{
  outline:2px solid var(--accent2);
  outline-offset:3px;
}

/* Mobile menu */
.hamburger{
  display:none;
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  align-items:center; justify-content:center;
  cursor:pointer;
}
.mobile-drawer{
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,0.55);
  z-index:120;
}
/* ✅ module refactor friendly (class toggle) */
.mobile-drawer.open{ display:block; }

.drawer-panel{
  position:absolute; top:0; right:0;
  width:min(360px, 92vw);
  height:100%;
  background:linear-gradient(180deg, rgba(17,26,42,0.98), rgba(10,18,34,0.98));
  border-left:1px solid var(--border);
  padding:18px;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column; gap:10px;
}
.drawer-top{ display:flex; align-items:center; justify-content:space-between; }
.drawer-links{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.drawer-links .nav-link{ display:block; width:100%; text-align:left; padding:10px 12px; }

@media (max-width: 980px){
  .nav-mid{ display:none; }
  .hamburger{ display:inline-flex; }
}

/* Sections */
main{ padding:48px 0 90px; }
main#app-root{
  display:flex;
  flex-direction:column;
  gap:var(--section-gap);
}
.hero{
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-lg);
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(244,122,39,0.18), transparent 65%),
    radial-gradient(900px 420px at 92% 10%, rgba(54,211,255,0.16), transparent 60%),
    linear-gradient(130deg, rgba(255,255,255,0.05), rgba(14,20,35,0.65));
  box-shadow: var(--shadow);
  padding:48px;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(600px 260px at 65% 0%, rgba(54,211,255,0.14), transparent 70%);
  opacity:0.65;
  pointer-events:none;
}
.hero > *{ position:relative; z-index:1; }
.hero-copy{ max-width:760px; display:flex; flex-direction:column; gap:16px; }
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(243,112,33,0.38);
  background:rgba(243,112,33,0.10);
  color:#d9d2ff;
  font-weight:800;
  font-size:12px;
  letter-spacing:0.3px;
  text-transform:uppercase;
}
.hero h1{
  margin:10px 0 0;
  font-size:44px;
  letter-spacing:-1.2px;
  line-height:1.08;
  background:linear-gradient(to right, #fff, rgba(255,255,255,0.78));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  max-width:640px;
}
.hero-actions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:18px;
  align-items:center;
}
.hero-meta{
  margin-top:18px;
  display:flex; gap:14px; flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}
.meta-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border);
}

.trustbar{
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,0.03);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.trustbar .label{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  letter-spacing:-0.2px;
}
.logos{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;
}
.logo-chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(0,0,0,0.18);
  color:rgba(255,255,255,0.78);
  font-size:12px;
  font-weight:800;
  letter-spacing:0.2px;
}

.section{
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.section h2{
  margin:0;
  font-size:22px;
  letter-spacing:-0.4px;
}
.section p.lead{
  margin:0;
  color:var(--muted);
  max-width:820px;
  font-size:15px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}
.feature-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:180px;
  padding:22px;
}
.feature-card h3{ font-size:16px; }
.feature-card p{ font-size:14px; }

.card{
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(5,9,18,0.65));
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  padding:20px;
  backdrop-filter: blur(10px);
}
.card h3{ margin:0 0 6px; font-size:15px; letter-spacing:-0.2px; }
.card p{ margin:0; color:var(--muted); font-size:13px; }

.split{
  grid-column: span 12;
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
  align-items:stretch;
}
.split .copy{ grid-column: span 6; }
.split .visual{ grid-column: span 6; min-height:220px; position:relative; overflow:hidden; }
.mock{
  height:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(500px 240px at 20% 20%, rgba(243,112,33,0.25), transparent 60%),
    radial-gradient(500px 260px at 80% 30%, rgba(0,212,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.10));
  position:relative;
}
.mock:before{
  content:"";
  position:absolute; inset:-40px;
  background:
    conic-gradient(from 180deg, rgba(243,112,33,0.0), rgba(243,112,33,0.18), rgba(0,212,255,0.10), rgba(243,112,33,0.0));
  filter: blur(18px);
  opacity:0.7;
}
.mock .mock-inner{
  position:absolute; inset:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.22);
  padding:14px;
  display:flex; flex-direction:column; gap:10px;
}
.mock-row{
  height:10px; width:70%;
  border-radius:999px;
  background:rgba(255,255,255,0.10);
}
.mock-row.small{ width:45%; }
.mock-row.tiny{ width:28%; }
/* ---------------------------------------------------------------------------
   Screenshot gallery (App previews)
--------------------------------------------------------------------------- */
.shot-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.shot{
  margin:0;
}
.shot-frame{
  width:100%;
  aspect-ratio: 9 / 19.5;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 300px at 20% 10%, rgba(243,112,33,0.18), transparent 60%),
    radial-gradient(700px 360px at 80% 20%, rgba(0,212,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.20));
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  position:relative;
  overflow:hidden;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.shot-open{
  cursor:pointer;
  appearance:none;
  background:transparent;
  border:none;
  padding:10px;
}
.shot-open:focus-visible{
  outline: 2px solid rgba(0,212,255,0.45);
  outline-offset: 3px;
}
.shot-frame::before{
  content:"";
  position:absolute;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  width:38%;
  height:18px;
  border-radius:999px;
  background:rgba(0,0,0,0.40);
  border:1px solid rgba(255,255,255,0.08);
  z-index:2;
}
.shot-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  transform: translateZ(0);
}
.shot figcaption{
  margin-top:10px;
  color:rgba(255,255,255,0.78);
  font-size:13px;
  font-weight:800;
  letter-spacing:-0.2px;
}

/* Placeholder UI when no screenshot images are provided */
.shot-ph{
  padding:18px;
  justify-content:flex-start;
  align-items:stretch;
}
.shot-ph-top{
  height:16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);
  margin-top:22px;
}
.shot-ph-card{
  margin-top:16px;
  height:92px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.shot-ph-row{
  margin-top:12px;
  height:14px;
  border-radius:10px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.06);
}
.shot-ph-row.small{ width:78%; }
.shot-ph-row.tiny{ width:56%; height:12px; opacity:0.8; }

/* Mobile */
@media (max-width: 980px){
  .shot{ grid-column: span 12 !important; }
}

/* ---------------------------------------------------------------------------
   Lightbox
--------------------------------------------------------------------------- */
.lightbox.hidden{ display:none; }
.lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
}
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
}
.lightbox-panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.35));
  box-shadow: 0 18px 60px rgba(0,0,0,0.60);
  overflow:hidden;
}
.lightbox-img{
  width:100%;
  height:auto;
  max-height: calc(100vh - 140px);
  object-fit:contain;
  display:block;
  background:rgba(0,0,0,0.35);
}
.lightbox-caption{
  padding:14px 16px 18px;
  color:rgba(255,255,255,0.80);
  font-weight:800;
  font-size:13px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.lightbox-close{
  position:absolute;
  right:12px;
  top:10px;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.30);
  color:rgba(255,255,255,0.85);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.lightbox-close:hover{
  background: rgba(0,0,0,0.45);
}

.mock-card{
  margin-top:auto;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  border-radius:14px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:rgba(255,255,255,0.86);
  font-size:12px;
}

@media (max-width: 860px){
  .hero{ padding:32px; }
  .hero h1{ font-size:34px; }
  .split .copy, .split .visual{ grid-column: span 12; }
  .split .visual{ min-height:200px; }
}

/* Code block (Developer-first vibe) */
.codebox{
  border:1px solid rgba(243,112,33,0.30);
  background:linear-gradient(180deg, rgba(243,112,33,0.10), rgba(0,0,0,0.18));
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.codebox-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  background:rgba(0,0,0,0.18);
  gap:10px;
}
.tabs-mini{ display:flex; gap:6px; flex-wrap:wrap; }
.tab-mini{
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.04);
  color:rgba(255,255,255,0.78);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  transition:.16s ease;
  user-select:none;
}
.tab-mini.active{
  border-color:rgba(243,112,33,0.55);
  background:rgba(243,112,33,0.16);
  color:#efeaff;
}
.copy-btn{
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.85);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
}
pre{
  margin:0;
  padding:14px 14px 16px;
  color:#eaf0ff;
  font-family:var(--mono);
  font-size:12px;
  overflow:auto;
  line-height:1.6;
}

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:18px;
}
.plan{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:26px;
  border-radius:var(--radius-lg);
}
.plan .price{ font-size:30px; font-weight:900; letter-spacing:-0.5px; }
.plan .sub{ color:var(--muted); font-size:13px; margin-top:-4px; }
.list{ display:flex; flex-direction:column; gap:10px; }
.li{ display:flex; gap:10px; align-items:flex-start; color:rgba(255,255,255,0.88); font-size:13px; }
.dot{
  width:18px; height:18px; border-radius:6px;
  border:1px solid rgba(243,112,33,0.45);
  background:rgba(243,112,33,0.18);
  flex:0 0 18px;
  margin-top:1px;
}

.final-cta-section{ align-items:center; }
.final-cta{
  border-radius:var(--radius-lg);
  padding:42px;
  text-align:center;
  background:
    radial-gradient(680px 360px at 20% 0%, rgba(244,122,39,0.2), transparent 60%),
    radial-gradient(600px 340px at 80% 0%, rgba(54,211,255,0.18), transparent 65%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(6,10,18,0.75));
}
.final-cta h2{ margin:0 0 6px; font-size:28px; }
.final-cta p{ color:var(--muted); margin:0 auto 26px; max-width:600px; font-size:15px; }
.final-cta .cta-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.text-section{
  margin-bottom:14px;
  padding:24px;
}
.text-section h3{ margin-bottom:12px; font-size:16px; }
.text-section .text-body{
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
}

/* FAQ */
details{
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,0.03);
  padding:12px 14px;
}
summary{
  cursor:pointer;
  font-weight:900;
  letter-spacing:-0.2px;
  list-style:none;
}
summary::-webkit-details-marker{ display:none; }
details p{ margin:10px 0 0; color:var(--muted); font-size:13px; }

/* Footer (Sendbird-like multi column) */
footer{
  border-top:1px solid var(--border);
  background:rgba(0,0,0,0.16);
  padding:44px 0 26px;
  color:var(--muted);
  font-size:13px;
  margin-top:70px;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:14px;
  align-items:start;
}
.footer-brand{ grid-column: span 4; }
.footer-cols{ grid-column: span 8; display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.footer-col h4{
  margin:0 0 10px;
  color:rgba(255,255,255,0.88);
  font-size:13px;
  letter-spacing:-0.2px;
}
.footer-col a{
  display:block;
  color:var(--muted);
  padding:5px 0;
  font-size:13px;
}
.footer-col a:hover{ color:rgba(255,255,255,0.85); }
.footnote{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 980px){
  .footer-brand{ grid-column: span 12; }
  .footer-cols{ grid-column: span 12; grid-template-columns:repeat(2,1fr); }
}
