/* TeleTan landing page.
   Split out of index.html once the animation work outgrew a <style> block.
   No external fonts, no CDN, no third-party anything — the "no trackers"
   claim on this page has to be literally true, and the CSP is tight enough
   to enforce it. */

:root{
  --bg:#000; --surface:#111214; --surface-2:#17181A; --border:#26262B;
  --text:#F2F2F4; --muted:#8E8E96; --dim:#6A6A72;
  --gold:#C5A062; --gold-bright:#E0BB7C; --gold-deep:#7D643C;
  --max:1080px;
  --ease:cubic-bezier(.22,.61,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg); color:var(--text);
  font:400 16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:var(--gold);text-decoration:none;transition:color .2s var(--ease)}
a:hover{color:var(--gold-bright)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px;position:relative;z-index:1}
section{padding:96px 0;position:relative}

/* ── Scroll reveal ──────────────────────────────────────────────────────
   Elements start shifted and transparent, and an IntersectionObserver adds
   .in when they enter the viewport. The no-js and reduced-motion cases both
   force the final state, so content is never hidden by a feature that did
   not run. */
.reveal{opacity:0;transform:translateY(22px);
  transition:opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s} .reveal.d2{transition-delay:.16s}
.reveal.d3{transition-delay:.24s} .reveal.d4{transition-delay:.32s}
.reveal.d5{transition-delay:.40s} .reveal.d6{transition-delay:.48s}

/* ── Nav ────────────────────────────────────────────────────────────────── */
header{position:sticky;top:0;z-index:20;background:rgba(0,0,0,.72);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;transition:border-color .3s var(--ease)}
header.stuck{border-bottom-color:var(--border)}
.nav{display:flex;align-items:center;gap:12px;height:66px}
.nav img{width:30px;height:30px}
.brand{font-size:17px;letter-spacing:5px;font-weight:500}
.nav-cta{margin-left:auto;font-size:14px;padding:9px 18px;border-radius:9px;
  background:var(--gold);color:#1A1408;font-weight:600;
  transition:transform .2s var(--ease), box-shadow .3s var(--ease), background .2s}
.nav-cta:hover{background:var(--gold-bright);color:#1A1408;transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(197,160,98,.28)}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero{text-align:center;padding:88px 0 72px;overflow:hidden}
#weave{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:.5}
.hero .wrap{z-index:1}
.hero img.mark{width:132px;height:132px;margin-bottom:26px;
  filter:drop-shadow(0 0 34px rgba(197,160,98,.18))}
.wordmark{font-size:15px;letter-spacing:9px;color:var(--dim);margin-bottom:22px}
.hero h1{font-size:clamp(34px,6vw,60px);line-height:1.1;font-weight:600;
  letter-spacing:-.5px;margin-bottom:20px}

/* The gold word gets a slow sheen, echoing the brushed-metal mark. Pure CSS,
   GPU-composited, and switched off under reduced motion. */
.hero h1 .g{
  background:linear-gradient(100deg,
    var(--gold-deep) 0%, var(--gold) 28%, #F4DFB4 46%, var(--gold) 64%, var(--gold-deep) 100%);
  background-size:280% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:sheen 7s linear infinite;
}
@keyframes sheen{to{background-position:-280% 0}}

.hero p.lede{font-size:clamp(16px,2.2vw,19px);color:var(--muted);
  max-width:620px;margin:0 auto 34px;line-height:1.65}

/* ── Signup ─────────────────────────────────────────────────────────────── */
.signup{display:flex;gap:10px;max-width:440px;margin:0 auto;flex-wrap:wrap}
.signup input{flex:1;min-width:210px;background:var(--surface-2);
  border:1px solid var(--border);border-radius:11px;padding:14px 16px;
  color:var(--text);font-size:15px;font-family:inherit;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease)}
.signup input::placeholder{color:var(--dim)}
.signup input:focus{outline:none;border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(197,160,98,.14)}
.signup button{background:var(--gold);color:#1A1408;border:0;border-radius:11px;
  padding:14px 26px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;
  position:relative;overflow:hidden;
  transition:transform .18s var(--ease), box-shadow .3s var(--ease), background .2s}
.signup button:hover:not(:disabled){background:var(--gold-bright);transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(197,160,98,.3)}
.signup button:active:not(:disabled){transform:translateY(0)}
.signup button:disabled{opacity:.55;cursor:default}
.note{font-size:13px;color:var(--dim);margin-top:14px}
.msg{margin-top:16px;font-size:14.5px;min-height:22px}
.msg.ok{color:var(--gold-bright)}
.msg.err{color:#D8453F}

/* ── Live encryption demo ───────────────────────────────────────────────── */
.demo{background:linear-gradient(180deg,transparent,rgba(197,160,98,.04) 50%,transparent)}
.demo-box{max-width:760px;margin:0 auto;background:var(--surface);
  border:1px solid var(--border);border-radius:18px;overflow:hidden}
.demo-head{display:flex;align-items:center;gap:9px;padding:14px 18px;
  border-bottom:1px solid var(--border);background:rgba(255,255,255,.02)}
.dot-r,.dot-y,.dot-g{width:11px;height:11px;border-radius:50%}
.dot-r{background:#ED6A5E}.dot-y{background:#F4BF50}.dot-g{background:#61C554}
.demo-head span{margin-left:8px;font-size:12.5px;color:var(--dim)}
.demo-body{padding:24px}
.demo-row{margin-bottom:18px}
.demo-label{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--dim);margin-bottom:8px;display:flex;align-items:center;gap:8px}
.demo-label .pip{width:6px;height:6px;border-radius:50%;background:var(--gold)}
.demo input.plain{width:100%;background:var(--surface-2);border:1px solid var(--border);
  border-radius:10px;padding:13px 15px;color:var(--text);font-size:15px;font-family:inherit;
  transition:border-color .25s var(--ease)}
.demo input.plain:focus{outline:none;border-color:var(--gold)}
.cipher{background:#0B0C0D;border:1px solid var(--border);border-radius:10px;
  padding:14px 15px;min-height:86px;
  font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:var(--gold-deep);word-break:break-all;transition:color .3s}
.cipher.live{color:var(--gold)}
.demo-foot{display:flex;gap:18px;flex-wrap:wrap;padding:0 24px 22px;
  font-size:12.5px;color:var(--dim)}
.demo-foot b{color:var(--muted);font-weight:500}

/* ── Sections ───────────────────────────────────────────────────────────── */
h2{font-size:clamp(25px,3.6vw,38px);font-weight:600;letter-spacing:-.3px;
  margin-bottom:16px;text-align:center}
.sub{color:var(--muted);text-align:center;max-width:640px;margin:0 auto 54px;
  font-size:16.5px;line-height:1.65}

.grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(268px,1fr))}
.card{background:var(--surface);border:1px solid var(--border);border-radius:15px;
  padding:26px;position:relative;overflow:hidden;
  transition:transform .35s var(--ease), border-color .35s var(--ease)}
/* A soft gold wash follows the cursor. --mx/--my are set in JS; with no
   pointer (touch, keyboard) the gradient simply never becomes visible. */
.card::before{content:"";position:absolute;inset:0;opacity:0;
  background:radial-gradient(340px circle at var(--mx,50%) var(--my,50%),
    rgba(197,160,98,.10), transparent 42%);
  transition:opacity .35s var(--ease);pointer-events:none}
.card:hover{transform:translateY(-4px);border-color:rgba(197,160,98,.34)}
.card:hover::before{opacity:1}
.card h3{font-size:16.5px;font-weight:600;margin-bottom:9px;display:flex;
  align-items:center;gap:9px;position:relative}
.card .dot{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none;
  box-shadow:0 0 0 0 rgba(197,160,98,.5)}
.card:hover .dot{animation:pulse 1.8s var(--ease) infinite}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(197,160,98,.45)}
  70%{box-shadow:0 0 0 9px rgba(197,160,98,0)}
  100%{box-shadow:0 0 0 0 rgba(197,160,98,0)}
}
.card p{color:var(--muted);font-size:14.5px;line-height:1.65;position:relative}

/* ── Screens ────────────────────────────────────────────────────────────── */
.screens img{width:100%;max-width:1000px;height:auto;display:block;margin:0 auto;
  border-radius:14px}
.caption{text-align:center;color:var(--dim);font-size:13px;margin-top:16px}

/* ── Honest limits ──────────────────────────────────────────────────────── */
.plain{background:var(--surface);border:1px solid var(--border);border-radius:15px;
  padding:34px;max-width:780px;margin:0 auto}
.plain h3{font-size:18px;margin-bottom:18px;font-weight:600}
.plain ul{list-style:none}
.plain li{color:var(--muted);font-size:15px;line-height:1.7;padding-left:26px;
  position:relative;margin-bottom:13px}
.plain li::before{content:"—";position:absolute;left:0;color:var(--gold-deep)}
.plain li strong{color:var(--text);font-weight:600}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--border);padding:38px 0;text-align:center}
footer .brand{font-size:13px;letter-spacing:5px;color:var(--dim);margin-bottom:12px}
footer p{font-size:13px;color:var(--dim)}
footer a{margin:0 9px;font-size:13px}

@media (max-width:640px){
  section{padding:64px 0}
  .hero{padding:56px 0 48px}
  .plain,.demo-body{padding:24px}
}
@media (max-width:480px){
  .signup{flex-direction:column}
  .signup input,.signup button{width:100%;min-width:0}
}

/* ── Reduced motion ─────────────────────────────────────────────────────────
   Not a nicety. Parallax, sheen and scroll-driven movement can trigger
   nausea and migraine for people with vestibular disorders, and this page
   is asking those people to trust it with their private messages. Honour
   the preference completely: no sheen, no reveal transition, no canvas —
   the JS checks the same query and never starts the animation loop. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{opacity:1;transform:none}
  .hero h1 .g{animation:none;background:none;-webkit-text-fill-color:var(--gold);color:var(--gold)}
  #weave{display:none}
}

/* No JS: never leave content invisible behind an observer that will not run. */
.no-js .reveal{opacity:1;transform:none}

/* Replaces the last inline style attributes, so the CSP can drop
   'unsafe-inline' from style-src entirely rather than keeping it open for
   three declarations. */
.demo-row.last{margin-bottom:0}
footer .copy{margin-top:12px}
