/* openpass.network. Brand colours and font come from brand/tokens.css.
   Shape rule: buttons, inputs and tabs 10px; the card panel 16px. One accent: Access Green. */
@font-face {
  font-family: "Reddit Sans";
  src: url("/assets/RedditSans.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  --bg: #060B14;                    /* brand navy taken darker for the page ground */
  --navy: #0B192C;
  --green: #10B981;
  --text: #F8FAFC;
  --muted: #8A97A8;                 /* 6.6 contrast on --bg */
  --line: rgb(248 250 252 / .1);
  --line-strong: rgb(248 250 252 / .22);
  --font: "Reddit Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain: fixed, never repaints on scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .05;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--bg); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.top .logo img { display: block; height: 28px; width: auto; }
.top nav { display: flex; align-items: center; gap: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-ghost { background: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-outline { background: none; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-block { width: 100%; height: 46px; }

/* hero: the statement sits low and left, on a lit ground */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 70% at 85% 0%, rgb(16 185 129 / .13), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgb(11 25 44 / .9), transparent 70%);
}
.hero .wrap {
  min-height: calc(100dvh - 72px); display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 64px; padding-bottom: clamp(48px, 9vh, 104px);
}
.kicker { margin: 0 0 clamp(20px, 3.2vh, 36px); font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); letter-spacing: -.005em; }
.hero h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(44px, 8.2vw, 124px); font-weight: 600; line-height: 1; letter-spacing: -.045em;
  color: var(--muted);
}
.hero h1 b { font-weight: 600; color: var(--text); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; }

/* ecosystem */
.eco { padding: clamp(88px, 15vh, 176px) 0; border-top: 1px solid var(--line); }
.eco h2, .eco .answer { margin: 0; font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.eco .answer { color: var(--muted); margin-bottom: clamp(44px, 8vh, 88px); }
.cards {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgb(11 25 44 / .35);
}
.card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 96px;
  min-height: clamp(300px, 34vw, 420px); padding: clamp(22px, 2.2vw, 32px);
  border-left: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
.card:first-child { border-left: 0; }
.card::before {               /* light that follows the pointer across the panel */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(16 185 129 / .12), transparent 65%);
}
.card::after {                /* accent rule drawn on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card h3 { position: relative; margin: 0; font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--muted); }
.card h3 span { color: var(--text); }
.card p { position: relative; margin: 0; font-size: clamp(17px, 1.35vw, 20px); font-weight: 500; line-height: 1.5; letter-spacing: -.01em; color: var(--muted); }
.card p span { display: block; transition: color .35s var(--ease), transform .35s var(--ease); }
.card:hover p span { color: var(--text); transform: translateX(6px); }
.card:hover p span:nth-child(2) { transition-delay: .05s; }
.card:hover p span:nth-child(3) { transition-delay: .1s; }
.card:hover p span:nth-child(4) { transition-delay: .15s; }

/* closing */
.closing { padding: clamp(96px, 20vh, 240px) 0; border-top: 1px solid var(--line); }
.closing p { margin: 0; max-width: 18ch; font-size: clamp(36px, 6.6vw, 104px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }

/* footer */
.foot { margin-top: auto; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.foot .name { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.foot .name span { color: var(--green); }
.foot .nos { margin: 0; color: var(--muted); font-size: 15px; }
.foot .nos b { color: var(--text); font-weight: 500; }
.foot nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.foot nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot nav a:hover { color: var(--text); }

/* motion: the kicker lands, a beat, then the line rises word by word; sections ease in as they arrive */
@media (prefers-reduced-motion: no-preference) {
  .kicker { opacity: 0; animation: fade .9s .15s var(--ease) forwards; }
  .w > span { transform: translateY(105%); animation: up 1s var(--ease) forwards; animation-delay: calc(.75s + var(--i) * .07s); }
  @keyframes fade { to { opacity: 1; } }
  @keyframes up { to { transform: none; } }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .closing .cw { opacity: .2; animation: lit linear both; animation-timeline: view();
      animation-range: cover calc(14% + var(--i) * 2.4%) cover calc(26% + var(--i) * 2.4%); }
    @keyframes lit { to { opacity: 1; } }
  }
}

/* small pages: login, account, contact */
.panel-page { flex: 1; display: grid; place-items: start center; padding: clamp(24px, 7vh, 88px) var(--gutter) 88px; }
.panel { width: 100%; max-width: 400px; }
.panel h1 { margin: 0 0 28px; font-size: 32px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 24px; border-radius: 12px; background: rgb(248 250 252 / .06); }
.tabs button { height: 38px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 15px/1 var(--font); cursor: pointer; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
input, textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgb(248 250 252 / .03);
  color: var(--text); font: 400 16px/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(16 185 129 / .2); }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { margin: 0; min-height: 1.6em; font-size: 14px; font-weight: 500; }
.msg.bad { color: #FCA5A5; }
.msg.good { color: var(--green); }
.small { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.small a, .linkish { color: var(--text); text-underline-offset: 3px; }
.linkish { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; }

/* terms and privacy */
.doc { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(24px, 6vh, 72px) var(--gutter) 104px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(36px, 5.4vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.doc .date { margin: 0 0 44px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 44px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.doc p, .doc li { color: #B6C0CE; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: var(--text); text-underline-offset: 3px; }

/* responsive */
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 260px; gap: 64px; }
  .card:nth-child(odd) { border-left: 0; }
  .card:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .top { height: 64px; }
  .top .logo img { height: 24px; }
  .top .btn { height: 36px; padding: 0 12px; font-size: 14px; }
  .hero::before { inset: -64px 0 0; }
  .hero .wrap { min-height: calc(100dvh - 64px); }
  .hero h1 { font-size: 12.6vw; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; gap: 36px; border-left: 0; }
  .card:nth-child(n+2) { border-top: 1px solid var(--line); }
  .foot nav { gap: 22px; }
}
