/* ============================================================
   OTTO — refined dark monochrome
   charcoal + silver · Clash Display / Satoshi / JetBrains Mono
   ============================================================ */

:root {
  --bg:        #0A0A0C;
  --bg-2:      #0D0D10;
  --panel:     #131316;
  --panel-2:   #17171B;
  --panel-hi:  #1D1D22;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);
  --text:      #F3F3F5;
  --muted:     #9A9AA2;
  --muted-2:   #67676F;
  --silver-1:  #FAFAFB;
  --silver-2:  #B7B7BF;
  --silver-3:  #8A8A93;
  --silver-grad: linear-gradient(165deg, #FCFCFD 0%, #C9C9D0 45%, #9A9AA3 100%);
  --chip:      #1B1B20;

  --font-display: "Clash Display", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --r: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* soft silver light-bloom behind hero (the silk-drape feel) */
.bloom {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% -4%, rgba(255,255,255,0.14), transparent 70%),
    radial-gradient(40% 30% at 82% 8%, rgba(190,195,210,0.10), transparent 70%),
    radial-gradient(46% 36% at 12% 18%, rgba(150,155,175,0.08), transparent 72%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.mono { font-family: var(--font-mono); }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  padding: 0.78em 1.35em; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn.big { padding: 0.95em 1.75em; font-size: 1.04rem; }
.btn.full { width: 100%; }

/* primary / solid = silver metallic on dark */
.btn.primary, .btn.solid {
  background: var(--silver-grad); color: #111114;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 10px 30px -12px rgba(255,255,255,0.3);
}
.btn.primary:hover, .btn.solid:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(255,255,255,0.4); }

/* outline-on-dark */
.btn.ghost-line { background: rgba(255,255,255,0.02); border-color: var(--line-2); color: var(--text); }
.btn.ghost-line:hover { background: rgba(255,255,255,0.06); border-color: var(--silver-2); transform: translateY(-2px); }

.ghost {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; font-size: 0.9rem; padding: 0.5em 0.9em;
  border: 1px solid var(--line); border-radius: 100px; color: var(--silver-2);
  transition: border-color .18s, color .18s, background .18s;
}
.ghost:hover { border-color: var(--silver-2); color: var(--text); background: rgba(255,255,255,0.04); }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-mark { color: var(--text); display: inline-flex; }
.mark-caret { fill: var(--silver-1); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0.25; } }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 1.7rem; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-5px; height:1.5px; width:0; background: var(--silver-2); transition: width .2s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }

/* ───────── hero ───────── */
.hero {
  max-width: 980px; margin: 0 auto; text-align: center;
  padding: clamp(3.5rem, 9vw, 7rem) 1.5rem clamp(2rem, 4vw, 3.5rem);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--silver-3);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.0; letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
.hero h1 em {
  background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 0 auto 2.4rem; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-trust {
  display: flex; gap: 1.8rem; justify-content: center; list-style: none;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2);
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver-2); box-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* ───────── hero demo ───────── */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 3.5rem; }
.window {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 1px 0 rgba(255,255,255,0.06) inset;
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.traffic { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.window-url {
  margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
  background: rgba(255,255,255,0.04); padding: 0.25em 0.7em; border-radius: 100px; border: 1px solid var(--line);
}
.window-body { padding: 2.2rem 1.9rem 2.4rem; position: relative; text-align: center; }
.verify-title { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; }
.verify-sub { font-size: 0.82rem; color: var(--muted-2); margin: 0.4rem 0 1.6rem; font-family: var(--font-mono); }

.otp-boxes { display: flex; gap: 0.55rem; justify-content: center; margin-bottom: 1.5rem; }
.otp-box {
  width: 46px; height: 58px; border: 1px solid var(--line-2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--text);
  background: rgba(255,255,255,0.02); position: relative;
}
.otp-box i { opacity: 0; transform: translateY(6px) scale(0.7); }

.verify-btn {
  width: 100%; padding: 0.82em; border: none; border-radius: 12px;
  background: var(--silver-grad); color: #111114; font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem; cursor: pointer; opacity: 0.4;
}

.otto-chip {
  position: absolute; left: 50%; top: 96px;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--chip); color: var(--text);
  border: 1px solid var(--line-2);
  font-size: 0.82rem; font-weight: 500; padding: 0.55em 0.8em; border-radius: 12px; white-space: nowrap;
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.8);
  opacity: 0; transform: translate(-50%, 8px);
}
.otto-chip b { font-family: var(--font-mono); letter-spacing: 0.04em; }
.chip-key { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,0.1); font-size: 0.7rem; }
.chip-src { color: var(--silver-3); font-size: 0.72rem; }

.demo-caption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); display: flex; align-items: center; gap: 0.45rem; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--silver-1); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.35; transform:scale(0.6);} }

/* demo timeline (7s loop) */
.otto-chip { animation: chipIn 7s ease-in-out infinite; }
.otp-box i { animation: fillDigit 7s ease-in-out infinite; }
.otp-box:nth-child(1) i { animation-delay: 0s; } .otp-box:nth-child(2) i { animation-delay: .12s; }
.otp-box:nth-child(3) i { animation-delay: .24s; } .otp-box:nth-child(4) i { animation-delay: .36s; }
.otp-box:nth-child(5) i { animation-delay: .48s; } .otp-box:nth-child(6) i { animation-delay: .60s; }
.otp-box { animation: boxActive 7s ease-in-out infinite; }
.otp-box:nth-child(1){ animation-delay: 0s; } .otp-box:nth-child(2){ animation-delay: .12s; }
.otp-box:nth-child(3){ animation-delay: .24s; } .otp-box:nth-child(4){ animation-delay: .36s; }
.otp-box:nth-child(5){ animation-delay: .48s; } .otp-box:nth-child(6){ animation-delay: .60s; }
.verify-btn { animation: btnReady 7s ease-in-out infinite; }

@keyframes chipIn {
  0%, 14% { opacity: 0; transform: translate(-50%, 8px); }
  20%, 30% { opacity: 1; transform: translate(-50%, 0); }
  34% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
  40%, 86% { opacity: 0; transform: translate(-50%, -6px); }
  100% { opacity: 0; }
}
@keyframes fillDigit {
  0%, 36% { opacity: 0; transform: translateY(6px) scale(0.7); }
  44% { opacity: 1; transform: translateY(0) scale(1.12); }
  50%, 86% { opacity: 1; transform: translateY(0) scale(1); }
  92%, 100% { opacity: 0; transform: translateY(6px) scale(0.7); }
}
@keyframes boxActive {
  0%, 34% { border-color: var(--line-2); box-shadow: none; }
  38%, 50% { border-color: var(--silver-1); box-shadow: 0 0 0 3px rgba(255,255,255,0.14), 0 0 20px rgba(255,255,255,0.12); }
  56%, 100% { border-color: var(--line-2); box-shadow: none; }
}
@keyframes btnReady { 0%, 60% { opacity: 0.4; } 70%, 86% { opacity: 1; } 100% { opacity: 0.4; } }

/* ───────── marquee ───────── */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); overflow: hidden; padding: 0.95rem 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 0.02em; color: var(--muted); animation: scroll 30s linear infinite; }
.marquee-track .sep { color: var(--silver-3); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────── sections ───────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 1.5rem; }
.section-head { margin-bottom: 3rem; max-width: 42ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }
.kicker { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--silver-3); margin-bottom: 0.9rem; }
.kicker.center-k, .center-k { display: inline-block; }
.section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.025em; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.8); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--font-mono); font-weight: 700; font-size: 1rem; background: var(--silver-grad); color: #121214; margin-bottom: 1.2rem; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 1rem; }
.step p em, .card p em { color: var(--silver-2); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.85); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card.big { grid-column: span 2; display: flex; flex-direction: column; }
.card-glyph { margin-top: auto; padding-top: 1.6rem; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: 0.08em; background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pricing / plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  padding: 2.2rem 1.9rem; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan-name { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1rem; }
.plan-price { font-family: var(--font-display); font-weight: 600; font-size: 2.8rem; letter-spacing: -0.03em; line-height: 1; margin-bottom: 1.6rem; }
.plan-price span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--muted-2); letter-spacing: 0; margin-left: 0.3rem; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; flex: 1; }
.plan-list li { font-size: 0.96rem; color: var(--silver-2); padding-left: 1.5rem; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--silver-3); font-size: 0.8rem; top: 0.15rem; }
.plan.featured {
  background: var(--silver-grad); border-color: transparent; color: #121214;
  box-shadow: 0 30px 70px -28px rgba(255,255,255,0.25), 0 1px 0 rgba(255,255,255,0.6) inset;
  position: relative;
}
.plan.featured .plan-name { color: #4a4a52; }
.plan.featured .plan-price span { color: #5a5a63; }
.plan.featured .plan-list li { color: #1f1f24; }
.plan.featured .plan-list li::before { color: #3a3a42; }
.plan-flag { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; background: #121214; color: var(--silver-1); padding: 0.3em 0.7em; border-radius: 100px; }
.plan.featured .btn.solid { background: #121214; color: var(--silver-1); box-shadow: none; }
.plan.featured .btn.solid:hover { background: #000; }

/* privacy */
.privacy-inner {
  border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.05), transparent 55%), linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.privacy-head h2 { margin-bottom: 1.2rem; }
.privacy-lede { color: var(--muted); margin-bottom: 1.8rem; max-width: 38ch; }
.privacy-list { list-style: none; display: flex; flex-direction: column; gap: 0.95rem; }
.privacy-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 1.05rem; color: var(--silver-2); }
.privacy-list .tick { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,0.08); color: var(--silver-1); font-size: 0.8rem; font-weight: 700; border: 1px solid var(--line); }

/* install */
.install-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.06), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel));
}
.install-lede { color: var(--muted); margin: 1rem auto 2rem; max-width: 44ch; }
.install-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.install-steps { list-style: none; text-align: left; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.7rem; }
.install-steps li { display: flex; align-items: flex-start; gap: 0.9rem; font-size: 0.9rem; color: var(--silver-2); padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); }
.install-steps li .n { color: var(--silver-1); font-weight: 700; flex-shrink: 0; }
.install-steps li .t { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.install-steps code { background: rgba(255,255,255,0.06); padding: 0.1em 0.45em; border-radius: 5px; font-size: 0.85em; color: var(--text); overflow-wrap: anywhere; }

/* faq */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 1.3rem 0.2rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--silver-3); font-size: 1.5rem; transition: transform .2s, color .2s; line-height: 1; }
.faq-list details[open] summary { color: var(--silver-1); }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--silver-1); }
.faq-list details p { padding: 0 0.2rem 1.5rem; color: var(--muted); max-width: 64ch; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.footer-tag { font-family: var(--font-display); color: var(--muted); font-size: 1.05rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: 0.95rem; font-weight: 500; }
.footer-links a { color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 1.5rem 2.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .26s; } .reveal.d4 { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.in-view-init { opacity: 0; transform: translateY(28px); }
.in-view { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

/* responsive */
@media (max-width: 900px) {
  .lede { font-size: 1.1rem; }
  .nav-links { display: none; }
  .steps, .feature-grid, .plans { grid-template-columns: 1fr; }
  .card.big { grid-column: span 1; }
  .privacy-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-cta .ghost { display: none; }
  .otp-box { width: 40px; height: 52px; font-size: 1.3rem; }
  .hero-trust { flex-wrap: wrap; gap: 0.7rem 1.4rem; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .otto-chip { opacity: 1; transform: translate(-50%, 0); }
  .otp-box i { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
