/* qryptus-site.css — shared styles for the QRYPTUS landing site
   Cool / minimal · deep dark + restrained cyan · lots of whitespace */

:root {
  --bg:        #070912;
  --bg2:       #0c1024;
  --surface:   #10152e;
  --elevated:  #161c3a;
  --border:    #1e2547;
  --border-lo: #161b34;
  --text:      #e8ebff;
  --text-dim:  #9097c2;
  --text-mute: #5a608a;
  --cyan:      #5ee9ff;
  --cyan-deep: #2dc7e8;
  --magenta:   #ff5fd4;
  --violet:    #a78bff;
  --green:     #5ce98c;
  --amber:     #ffb15e;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1140px;
  --gut: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--bg); }

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* ── Backdrop (fixed grid + glow) ─────────────────────────────────── */
.site-backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94,233,255,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 110%, rgba(167,139,255,0.07), transparent 55%),
    var(--bg);
}
.site-backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(94,233,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,233,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 78%);
}

/* ── Layout helpers ───────────────────────────────────────────────── */
.wrap { position: relative; z-index: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }

.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cyan-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--cyan-deep); opacity: 0.6;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }

.lede { color: var(--text-dim); font-size: 18px; max-width: 56ch; }
.jp { color: var(--text-mute); font-size: 14.5px; line-height: 1.8; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border-lo);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gut);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name {
  font-family: var(--f-display); font-weight: 600; font-size: 18px;
  letter-spacing: 0.22em; color: var(--text);
}
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 14px; color: var(--text-dim); transition: color .2s;
  position: relative; padding: 4px 0;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--cyan); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; cursor: pointer; border: none;
  padding: 13px 26px; border-radius: 999px; transition: all .18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--cyan); color: var(--bg);
  box-shadow: 0 0 0 1px var(--cyan), 0 8px 30px rgba(94,233,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(94,233,255,0.5), 0 10px 36px rgba(94,233,255,0.3); }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border-lo); padding: 64px 0 48px;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start;
}
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-mute); margin: 0 0 16px;
}
.footer__col a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--cyan); }
.footer__legal { color: var(--text-mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; }

/* ── Reveal on scroll ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Mono chip / tag ──────────────────────────────────────────────── */
.chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); padding: 5px 11px; border-radius: 6px;
  background: rgba(94,233,255,0.08); border: 1px solid rgba(94,233,255,0.25);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── Phone mock ───────────────────────────────────────────────────── */
.phone {
  width: 300px; flex-shrink: 0; border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #14182e, #0a0c18);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px var(--border), 0 0 70px rgba(94,233,255,0.12);
  position: relative;
}
.phone__screen {
  border-radius: 31px; overflow: hidden; background: var(--bg);
  position: relative; aspect-ratio: 300 / 620;
}
.phone__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 24px; background: #0a0c18;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 30;
}

/* ── Utility ──────────────────────────────────────────────────────── */
.glow-text { text-shadow: 0 0 24px rgba(94,233,255,0.35); }
.cyan { color: var(--cyan); }
.muted { color: var(--text-mute); }
.center { text-align: center; }
.divider { height: 1px; background: var(--border-lo); border: 0; margin: 0; }

@media (max-width: 860px) {
  :root { --gut: 22px; }
  .section { padding: 84px 0; }
  .nav__links { gap: 18px; }
  .nav__link--hide-sm { display: none; }
}
