/* socialgraffa landing — clinical white, Montserrat, Anthropic-style black pills.
 * Matches the dashboard look and feel: white surfaces, tinted neutrals,
 * a single orange accent for the "agent" angle, black pill CTAs and tabs.
 */

:root {
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --bg: #ffffff;
  --bg-alt: #faf9f7;
  --bg-sunken: #f4f2ef;
  --ink: #191919;
  --ink-soft: #52504c;
  --ink-mute: #8a8680;
  --border: #ececea;
  --border-strong: #dedcd8;

  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.10);
  --accent-line: rgba(249, 115, 22, 0.35);

  --black: #0a0a0a;
  --black-hover: #262626;

  --radius: 12px;
  --radius-lg: 18px;
  --pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(24, 24, 24, 0.04), 0 1px 3px rgba(24, 24, 24, 0.06);
  --shadow: 0 10px 30px -12px rgba(24, 24, 24, 0.14);

  --maxw: 1120px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--accent); }
.muted { color: var(--ink-mute); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 11px 20px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease) .2s, border-color var(--ease) .2s, transform var(--ease) .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: var(--black-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; }
.nav-logo .mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--black);
  color: #fff; display: grid; place-items: center; font-size: 0.9rem; font-weight: 800;
}
.nav-logo .mark::after { content: "◐"; }
.nav-logo img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.nav-links a.link:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.nav-mobile a { padding: 10px 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-mobile.open { display: flex; }

/* ── Hero ────────────────────────────────────────────── */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 0%, var(--accent-soft), transparent 70%); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 42%, transparent, var(--bg) 88%),
              linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.72)); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { line-height: 1.05; }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 52px; text-decoration: none;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); animation: cue 1.9s var(--ease) infinite;
}
.scroll-cue:hover { color: var(--ink); }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.start-inner { text-align: center; }
.start-lead { max-width: 620px; margin: 0 auto 26px; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.6; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 6px 14px; border-radius: var(--pill);
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--ink-soft);
  margin-bottom: 24px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 6vw + 0.5rem, 4.6rem); }
.hero h1 .accent { background: linear-gradient(180deg, #fb923c, #ea580c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub {
  max-width: 660px; margin: 22px auto 0; font-size: 1.15rem; color: var(--ink-soft); line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-mute); }
.works-with { margin-top: 34px; font-size: 0.8rem; color: var(--ink-mute); font-weight: 500; }
.works-with strong { color: var(--ink-soft); }

/* ── Code block (terminal) ───────────────────────────── */
.terminal { max-width: 640px; margin: 40px auto 0; text-align: left; }
.term-tabs { display: flex; gap: 4px; }
.term-tab {
  font-family: inherit; font-size: 0.72rem; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0; background: var(--bg-sunken); color: var(--ink-mute);
}
.term-tab.active { background: var(--black); color: #fff; border-color: var(--black); }
.term-body {
  background: #0c0c0e; border: 1px solid #1c1c1f; border-radius: 0 10px 10px 10px;
  padding: 18px 20px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85;
  color: #e8e8e9; overflow-x: auto; box-shadow: var(--shadow);
}
.term-body pre { margin: 0; white-space: pre; }
.term-body .c-dim { color: #6b6b6e; }
.term-body .c-cmd { color: #fb923c; }
.term-body .c-str { color: #34d399; }

/* ── Section shells ──────────────────────────────────── */
section { scroll-margin-top: 80px; }
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.6rem); margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* ── Feature grid ────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color var(--ease) .2s, box-shadow var(--ease) .2s, transform var(--ease) .2s;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.94rem; }
.card code { font-family: var(--font-mono); font-size: 0.82em; background: var(--bg-sunken); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

/* ── How it works ────────────────────────────────────── */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 26px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step .num { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.step h3 { font-size: 1.05rem; margin-top: 10px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.92rem; }
.step code { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.78rem;
  background: #0c0c0e; color: #e8e8e9; padding: 12px 14px; border-radius: 8px; overflow-x: auto; }
.step code b { color: #fb923c; font-weight: 500; }

/* ── Pricing ─────────────────────────────────────────── */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.plan.featured { border-color: var(--black); box-shadow: var(--shadow); position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--black); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: var(--pill);
}
.plan h3 { font-size: 1.2rem; }
.plan .price { margin-top: 10px; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price span { font-size: 0.9rem; font-weight: 500; color: var(--ink-mute); }
.plan .tag { margin-top: 6px; font-size: 0.86rem; color: var(--ink-soft); min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }

/* ── Error codes table ───────────────────────────────── */
.codes { max-width: 760px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.codes table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.codes th, .codes td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.codes th { background: var(--bg-sunken); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.codes tr:last-child td { border-bottom: none; }
.codes td:first-child { font-family: var(--font-mono); color: var(--accent); font-weight: 600; width: 64px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-mute); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 0.94rem; }

/* ── CTA ─────────────────────────────────────────────── */
.cta { text-align: center; padding: 84px 24px; }
.cta-box {
  max-width: 820px; margin: 0 auto; background: var(--black); color: #fff;
  border-radius: var(--radius-lg); padding: 56px 32px;
}
.cta-box h2 { font-size: clamp(1.7rem, 3vw + 0.5rem, 2.4rem); color: #fff; }
.cta-box p { margin-top: 14px; color: #b9b7b3; font-size: 1.05rem; }
.cta-box .term-body { max-width: 480px; margin: 26px auto 0; }
.cta-box .btn-primary { background: #fff; color: var(--black); margin-top: 26px; }
.cta-box .btn-primary:hover { background: #e9e7e3; }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 36px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand p { margin-top: 12px; font-size: 0.88rem; color: var(--ink-mute); }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--ink-soft); padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--ink-mute); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .grid, .steps, .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-media { background:
    url("https://prodmedia.tyga.host/public/tyga.cloud/landing/analyga.com/analyga-image.jpg") center / cover no-repeat; }
}
