/* ============================================================
   OmniBrief — redesign. Brand-locked to source palette.
   bg #100808 · fg #f8fafc · accent #f87010 · muted #90a0b8 / #607088
   ============================================================ */

:root {
  --bg:        #100808;
  --bg-raise:  #1a0f0c;
  --bg-card:   #1d110d;
  --fg:        #f8fafc;
  --fg-soft:   #e6dcd6;
  --muted:     #90a0b8;
  --muted-2:   #607088;
  --accent:    #f87010;
  --accent-ink:#ffb47a;
  --line:      rgba(248, 248, 248, 0.10);
  --line-soft: rgba(248, 248, 248, 0.06);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    Inter, system-ui, sans-serif;
  --font-mono:    "Fira Code", ui-monospace, monospace;

  --wrap: 1160px;
  --r: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layered textured background ---------- */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.bg-glow--one {
  width: 620px; height: 620px; top: -180px; right: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(248,112,16,0.30), transparent 68%);
}
.bg-glow--two {
  width: 520px; height: 520px; bottom: 8%; left: -160px;
  background: radial-gradient(circle at 50% 50%, rgba(96,112,136,0.22), transparent 70%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared layout ---------- */
section { position: relative; }
.section-head { max-width: 720px; margin: 0 auto 54px; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 16px;
}
.section-lede { color: var(--muted); font-size: 1.05rem; margin: 0; }
.ink { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.9,.3,1), box-shadow .18s, background .18s, border-color .18s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn--accent {
  background: var(--accent); color: #1a0b02;
  box-shadow: 0 8px 22px -8px rgba(248,112,16,0.7);
}
.btn--accent:hover { transform: translateY(-2px) rotate(-0.6deg); box-shadow: 0 14px 30px -8px rgba(248,112,16,0.8); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.arrow-hand { width: 34px; height: 11px; overflow: visible; }
.arrow-hand path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn:hover .arrow-hand { transform: translateX(3px); transition: transform .2s; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  backdrop-filter: blur(9px);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(16,8,8,0.86), rgba(16,8,8,0.4));
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand__word b { font-weight: 800; color: var(--accent); }
.brand__divider { color: var(--muted-2); }
.brand__product { font-family: var(--font-display); font-weight: 600; color: var(--fg-soft); }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 0.96rem; }
.site-nav a { color: var(--muted); position: relative; transition: color .18s; }
.site-nav a:hover { color: var(--fg); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); transition: width .22s; border-radius: 2px;
}
.site-nav a:hover::after { width: 100%; }
.header-cta { margin-left: 4px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

/* ---------- hero (asymmetrical) ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 70px 24px 90px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted);
  margin: 0 0 22px;
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(248,112,16,0.18); }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.15rem); line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 24px;
}
.scribble { position: relative; color: var(--accent); white-space: nowrap; }
.scribble::after {
  content: ""; position: absolute; left: -3%; right: -3%; bottom: -0.14em; height: 0.36em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 50 6, 150 6, 196 13' fill='none' stroke='%23f87010' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.85;
}
.hero__sub { color: var(--muted); font-size: 1.12rem; max-width: 33ch; margin: 0 0 30px; }
.hero__sub em { color: var(--fg-soft); font-style: italic; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero__badges li {
  position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--muted);
  font-family: var(--font-mono);
}
.hero__badges li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
  border: 2px solid var(--accent); border-radius: 3px; transform: rotate(-8deg);
}

.hero__visual { position: relative; }
.hero__frame {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(248,112,16,0.08);
  transform: rotate(1.4deg);
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
}
.hero__visual:hover .hero__frame { transform: rotate(0deg); }
.hero__chip--inbox {
  position: absolute; bottom: -34px; left: -46px; width: 168px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 26px 50px -24px rgba(0,0,0,0.9);
  transform: rotate(-5deg); background: var(--bg-card);
}
.hero__chip--inbox img { height: 210px; object-fit: cover; object-position: top; }
.hero__loop {
  position: absolute; top: -46px; right: -30px; width: 96px; height: 96px;
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  opacity: 0.5; stroke-dasharray: 5 9;
}

/* ---------- features (non-uniform grid) ---------- */
.features { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 100px; }
.section-head { text-align: left; margin-left: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(10px, auto);
  gap: 20px;
}
.fcard {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.9,.3,1), border-color .22s;
}
.fcard::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .22s;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(248,112,16,0.12), transparent 60%);
}
.fcard:hover { transform: translateY(-4px); border-color: rgba(248,112,16,0.4); }
.fcard:hover::before { opacity: 1; }
.fcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin: 16px 0 10px; letter-spacing: -0.01em; }
.fcard p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.fcard__icon svg { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fcard--wide { grid-column: span 2; }
.fcard--tall { grid-row: span 2; display: flex; flex-direction: column; }
.fcard--tall .fcard__shot {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  margin-bottom: 18px; max-height: 300px;
}
.fcard--tall .fcard__shot img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.fcard--quote { grid-column: span 2; background: linear-gradient(120deg, var(--bg-raise), var(--bg-card)); }

/* ---------- how / steps (alternating) ---------- */
.how { max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 100px; }
.steps { display: flex; flex-direction: column; gap: 70px; }
.step {
  display: grid; grid-template-columns: 60px 1fr 300px;
  gap: 28px; align-items: center;
}
.step--reverse { grid-template-columns: 300px 1fr 60px; }
.step--reverse .step__num { order: 3; }
.step--reverse .step__body { order: 2; }
.step--reverse .step__shot { order: 1; }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); line-height: 1;
}
.step__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.step__body p { color: var(--muted); margin: 0; max-width: 46ch; }
.step__shot {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.9); max-height: 340px;
  transition: transform .35s;
}
.step__shot img { width: 100%; height: 340px; object-fit: cover; object-position: top; }
.step__shot--offset { transform: rotate(-2deg); }
.step__shot:hover { transform: rotate(0) translateY(-4px); }

/* ---------- privacy ---------- */
.privacy { padding: 30px 24px 100px; }
.privacy__inner {
  max-width: var(--wrap); margin: 0 auto;
  background: linear-gradient(150deg, rgba(248,112,16,0.09), transparent 55%), var(--bg-raise);
  border: 1px solid var(--line-soft); border-radius: 28px;
  padding: 54px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: center;
  position: relative; overflow: hidden;
}
.privacy__lede { color: var(--muted); font-size: 1.06rem; margin: 0 0 24px; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 34px; color: var(--fg-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 6px; border: 2px solid var(--accent);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13 C 8 15, 9 17, 11 19 C 14 12, 17 8, 20 5' fill='none' stroke='%23f87010' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 15px;
}
.privacy__shot { position: relative; display: flex; justify-content: center; }
.privacy__shot img {
  width: 220px; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9); object-fit: cover; object-position: top; max-height: 420px;
  transform: rotate(3deg);
}
.privacy__shot--behind {
  position: absolute; left: 6%; top: 8%; width: 190px !important;
  transform: rotate(-6deg) !important; opacity: 0.85; z-index: -1;
}

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: 30px 24px 100px; }
.faq__list { display: grid; gap: 14px; }
.qa { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-card); overflow: hidden; }
.qa summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color .18s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-ink); }
.qa__mark { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.qa__mark::before, .qa__mark::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .25s;
}
.qa__mark::before { left: 0; top: 7px; width: 16px; height: 2px; }
.qa__mark::after { left: 7px; top: 0; width: 2px; height: 16px; }
.qa[open] .qa__mark::after { transform: scaleY(0); }
.qa p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.qa code { font-family: var(--font-mono); font-size: 0.85em; background: rgba(248,248,248,0.08); padding: 2px 6px; border-radius: 5px; color: var(--accent-ink); }

/* ---------- closer ---------- */
.closer { padding: 40px 24px 110px; }
.closer__inner {
  max-width: 760px; margin: 0 auto; text-align: center; position: relative;
  background: radial-gradient(600px circle at 50% 0%, rgba(248,112,16,0.14), transparent 60%);
  padding: 60px 40px; border-radius: 28px; border: 1px solid var(--line-soft);
}
.closer__underline { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); width: 260px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0.45; }
.closer__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; margin: 20px 0 18px; }
.closer__sub { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 0 auto 30px; }
.closer__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.closer__fine { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted-2); margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-raise); }
.footer__top { max-width: var(--wrap); margin: 0 auto; padding: 60px 24px 40px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; }
.footer__note { color: var(--muted); max-width: 42ch; margin: 18px 0 0; font-size: 0.96rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.footer__col a { display: block; color: var(--muted); padding: 6px 0; transition: color .18s, transform .18s; }
.footer__col a:hover { color: var(--accent-ink); transform: translateX(3px); }
.footer__base {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.86rem; color: var(--muted-2); font-family: var(--font-mono);
}

/* ---------- reveal animation (staggered via JS delay) ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .site-header.nav-open .site-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    background: var(--bg-raise); border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 40px; }
  .hero__sub { max-width: none; }
  .hero__chip--inbox { left: auto; right: -10px; bottom: -24px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .fcard--wide, .fcard--quote { grid-column: span 2; }
  .fcard--tall { grid-row: span 1; }
  .step, .step--reverse { grid-template-columns: 44px 1fr; }
  .step__shot, .step--reverse .step__shot { grid-column: 1 / -1; order: 3; max-width: 300px; }
  .step--reverse .step__num { order: 1; }
  .step--reverse .step__body { order: 2; }
  .privacy__inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .fcard--wide, .fcard--quote { grid-column: span 1; }
  .privacy__inner { padding: 32px 22px; }
  .privacy__shot--behind { display: none; }
  .closer__inner { padding: 44px 22px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__base { flex-direction: column; }
}
