/* Social Insight AI landing: deep-space ink + cyan/purple aurora, Outfit/JetBrains self-hosted */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-var.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-var.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0D0F1E;
  --bg-2: #12152A;
  --card: #161A30;
  --cyan: #29D8E8;
  --cyan-soft: rgba(41, 216, 232, 0.14);
  --purple: #9B5CF6;
  --purple-soft: rgba(155, 92, 246, 0.16);
  --pink: #F471B5;
  --text: #EDEFFA;
  --muted: #9AA0B8;
  --line: rgba(237, 239, 250, 0.12);
  --font-d: "Outfit", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-d);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
a { color: inherit; }
code {
  font-family: var(--font-m);
  font-size: 0.85em;
  background: var(--cyan-soft);
  color: var(--cyan);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

h1, h2, h3 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sec-sub { color: var(--muted); margin-top: 12px; max-width: 540px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #0B0D18;
  font-weight: 700;
}
.btn-ink:hover { filter: brightness(1.12); }
.btn-line { border-color: rgba(237,239,250,0.35); color: var(--text); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 700; font-size: 1.1rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.brand-avatar { border-radius: 9px; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }
.nav-menu-cta { display: none; }
.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer;
}
.burger span { width: 22px; height: 2.5px; background: var(--text); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(58% 46% at 82% 8%, var(--purple-soft), transparent 70%),
    radial-gradient(46% 40% at 8% 92%, var(--cyan-soft), transparent 70%),
    var(--bg);
  color: var(--text);
  padding: clamp(60px, 9vw, 120px) 0 clamp(68px, 9vw, 130px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
}
.eyebrow {
  font-family: var(--font-m); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; margin-bottom: 22px; color: var(--cyan);
}
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
.hero h1 em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(120deg, var(--cyan), var(--purple) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  margin-top: 26px; font-size: 1.08rem; font-weight: 400;
  max-width: 480px; color: var(--muted);
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-mark { position: relative; display: flex; justify-content: center; }
.hero-img {
  width: 100%; max-width: 560px; height: auto; display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(41,216,232,0.08);
}

/* ---------- stat strip ---------- */
.strip { background: var(--bg-2); border-block: 1px solid var(--line); padding: 34px 0; }
.strip-in {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(30px, 7vw, 90px); flex-wrap: wrap;
}
.strip-fig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.strip-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strip-cap {
  font-family: var(--font-m); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.strip-div { width: 1px; height: 56px; background: var(--line); }

/* ---------- features ---------- */
.features { padding: clamp(64px, 9vw, 110px) 0; }
.feat-list { list-style: none; margin-top: 44px; }
.feat-list li {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.feat-list li:last-child { border-bottom: 1px solid var(--line); }
.feat-no {
  font-family: var(--font-m); font-weight: 700; font-size: 0.95rem;
  color: var(--cyan);
}
.feat-list h3 { font-size: 1.22rem; margin-bottom: 6px; }
.feat-list p { color: var(--muted); max-width: 640px; }

/* ---------- how ---------- */
.how { background: var(--bg-2); border-block: 1px solid var(--line); padding: clamp(64px, 9vw, 110px) 0; }
.how-list { list-style: none; margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px;
}
.how-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--cyan); color: var(--cyan);
  font-family: var(--font-m); font-weight: 700; margin-bottom: 18px;
}
.how-list h3 { font-size: 1.15rem; margin-bottom: 8px; }
.how-list p { color: var(--muted); font-size: 0.95rem; }

/* ---------- compare ---------- */
.compare { padding: clamp(64px, 9vw, 110px) 0; }
.cmp-wrap { margin-top: 40px; position: relative; }
.cmp-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 64px;
  border-radius: 0 12px 12px 0; pointer-events: none;
  background: linear-gradient(to right, rgba(13,15,30,0), var(--bg) 80%);
  opacity: 0; transition: opacity 0.2s ease;
}
.cmp-wrap.has-scroll:not(.at-end)::after { opacity: 1; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cmp-hint {
  display: none; margin-top: 10px;
  font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--muted);
  transition: opacity 0.2s ease;
}
.cmp-hint.gone { opacity: 0; }
.cmp-table {
  width: 100%; min-width: 820px;
  border-collapse: separate; border-spacing: 0; background: var(--card);
  font-size: 0.92rem;
}
.cmp-table thead th:first-child, .cmp-table th[scope="row"] {
  position: sticky; left: 0; z-index: 2; background: var(--card);
  box-shadow: inset -1px 0 0 var(--line);
}
.cmp-table th, .cmp-table td {
  padding: 15px 18px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp-table thead th {
  font-family: var(--font-d); font-size: 0.95rem; font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cmp-table tbody th[scope="row"] {
  font-weight: 600; font-size: 0.85rem;
  color: var(--muted); white-space: nowrap;
}
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
/* our column: aurora wash */
.cmp-table th.hot, .cmp-table td.hot {
  background: linear-gradient(180deg, var(--cyan-soft), var(--purple-soft));
  color: var(--text);
  border-left: 1px solid var(--cyan); border-right: 1px solid var(--cyan);
}
.cmp-table thead th.hot {
  border-top: 1px solid var(--cyan);
  border-radius: 8px 8px 0 0;
  color: var(--cyan);
}
.cmp-table tbody tr:last-child td.hot { border-bottom: 1px solid var(--cyan); border-radius: 0 0 8px 8px; }
.cmp-table td { color: var(--muted); }
.cmp-table td.hot { color: var(--text); }
.cmp-src { margin-top: 14px; font-size: 0.78rem; color: var(--muted); font-family: var(--font-m); }

/* ---------- pricing ---------- */
.pricing { background: var(--bg-2); border-block: 1px solid var(--line); padding: clamp(64px, 9vw, 110px) 0; }
.price-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cur-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
}
.cur-btn {
  font-family: var(--font-m); font-weight: 700; font-size: 0.85rem;
  padding: 10px 18px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer;
}
.cur-btn.on { background: var(--cyan); color: #0B0D18; }
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px; margin-top: 44px; max-width: 760px;
}
.plan {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px; display: flex; flex-direction: column;
  background: var(--card);
}
.plan h3 { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.plan .tag {
  align-self: flex-start;
  font-family: var(--font-m); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #0B0D18;
  padding: 4px 10px; border-radius: 5px; margin-bottom: 14px;
}
.price { margin: 14px 0 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .cur { font-family: var(--font-d); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; }
.price small { font-family: var(--font-m); font-size: 0.75rem; color: var(--muted); }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li {
  padding: 9px 0 9px 26px; position: relative;
  font-size: 0.94rem; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
}
.plan .btn { text-align: center; }
.plan.featured { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-soft), 0 18px 50px rgba(41,216,232,0.08); }
.pay-note { margin-top: 26px; font-family: var(--font-m); font-size: 0.78rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { padding: clamp(64px, 9vw, 110px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  font-family: var(--font-d); font-weight: 600; font-size: 1.02rem;
  padding: 20px 34px 20px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-family: var(--font-m); font-weight: 700; font-size: 1.2rem; color: var(--cyan);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 40px 22px 0; color: var(--muted); }
.faq-list a { color: var(--cyan); font-weight: 600; }

/* ---------- final CTA ---------- */
.final {
  background:
    radial-gradient(50% 60% at 50% 100%, var(--purple-soft), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative; overflow: hidden; text-align: center;
}
.final-rings {
  position: absolute; width: 620px; height: 620px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  opacity: 0.12; pointer-events: none;
  animation: orbitspin 160s linear infinite;
}
.final-rings svg { width: 100%; height: 100%; }
@keyframes orbitspin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.final-inner { position: relative; }
.final h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 34px; }
.final .handle { margin-top: 22px; font-family: var(--font-m); font-weight: 700; }
.final .handle a { text-decoration: none; border-bottom: 2px solid var(--cyan); }
.support-line { margin-top: 30px; font-family: var(--font-m); font-size: 0.78rem; color: var(--muted); }
.support-line a { color: var(--cyan); font-weight: 700; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0; }
.foot-in {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
}
.foot-mono { font-family: var(--font-m); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .nav-in { gap: 14px; }
  .nav-cta { display: none; }
  .burger { display: flex; width: 44px; height: 44px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0,0,0,0.4);
    padding: 6px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 16px 28px; font-size: 1rem; }
  .nav-menu-cta { display: block; margin: 12px 20px 4px; text-align: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-img { max-width: 480px; margin: 0 auto; }

  .cmp-table { min-width: 620px; font-size: 0.86rem; }
  .cmp-table th, .cmp-table td { padding: 12px; }
  .cmp-table thead th:first-child, .cmp-table th[scope="row"] {
    width: 118px; max-width: 118px;
    white-space: normal; font-size: 0.78rem;
  }
  .cmp-hint { display: block; }

  .how-list { grid-template-columns: 1fr; }
  .feat-list li { grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 420px) {
  .strip-in { gap: 18px; }
  .strip-num { font-size: 2rem; }
  .strip-div { display: none; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .final-rings { animation: none; }
  html { scroll-behavior: auto; }
}
