/* Brink landing — brand system */
:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --text-dim: #c9c9d4;
  --text-faint: #8a8a9a;
  --violet: #7c5cff;
  --violet-soft: #9d86ff;
  --mint: #00e0b8;
  --rose: #ff6b8a;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(110deg, var(--violet-soft), var(--mint));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ambient glow */
.glow { position: fixed; border-radius: 9999px; filter: blur(120px); opacity: 0.5; z-index: 0; pointer-events: none; }
.glow.v { width: 520px; height: 520px; background: var(--violet); top: -180px; left: -120px; }
.glow.m { width: 460px; height: 460px; background: var(--mint); opacity: 0.28; top: 30%; right: -160px; }

/* brand mark */
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--violet), var(--mint));
  display: grid; place-items: center;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-row { display: flex; align-items: center; gap: 10px; }

/* nav */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); background: rgba(10, 10, 15, 0.6);
  border-bottom: 1px solid var(--border);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
nav .links { display: flex; align-items: center; gap: 28px; }
nav .links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
nav .links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer;
  border: none; transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--violet), #6044e8); color: #fff; box-shadow: 0 14px 34px -12px rgba(124, 92, 255, 0.8); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* hero */
.hero { position: relative; z-index: 1; padding: 90px 0 70px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-dim);
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.04; }
.hero p.sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-dim); max-width: 620px; margin: 22px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

/* phone mock */
.phone-wrap { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: 60px; }
.phone {
  width: 300px; border-radius: 38px; padding: 12px;
  background: linear-gradient(160deg, #1a1a24, #0c0c12);
  border: 1px solid var(--border-strong); box-shadow: 0 50px 120px -40px rgba(124, 92, 255, 0.5);
}
.phone-screen { border-radius: 28px; background: var(--bg-2); padding: 22px 18px 26px; overflow: hidden; }
.mock-q { font-size: 13px; color: var(--text-faint); }
.mock-h { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.mock-cap { font-size: 12px; color: var(--mint); font-weight: 600; margin-top: 12px; }
.mock-btn { margin-top: 16px; background: linear-gradient(135deg, var(--violet), #6044e8); color: #fff; text-align: center; padding: 14px; border-radius: 16px; font-weight: 700; }
.mock-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.mock-row .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,224,184,0.12); display: grid; place-items: center; font-size: 16px; }
.mock-row .nm { font-size: 13px; font-weight: 700; }
.mock-row .sb { font-size: 11px; color: var(--mint); }
.mock-row .amt { margin-left: auto; font-weight: 800; color: var(--mint); font-size: 14px; }

/* sections */
section.block { position: relative; z-index: 1; padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 900; letter-spacing: -0.02em; }
.section-head p { color: var(--text-dim); font-size: 17px; margin-top: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(0,224,184,0.1)); }
.card h3 { font-size: 18px; font-weight: 800; }
.card p { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; }
.step .n { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center;
  font-weight: 900; font-size: 22px; color: #0a0a0f; background: linear-gradient(135deg, var(--violet), var(--mint)); }
.step h3 { font-size: 18px; font-weight: 800; }
.step p { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; }

/* privacy strip */
.strip { background: linear-gradient(135deg, rgba(0,224,184,0.1), rgba(124,92,255,0.08)); border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 40px; text-align: center; }
.strip h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -0.02em; }
.strip p { color: var(--text-dim); max-width: 560px; margin: 14px auto 0; }

/* cta */
.final { text-align: center; padding: 80px 0; }
.final h2 { font-size: clamp(30px, 5vw, 50px); font-weight: 900; letter-spacing: -0.03em; }
.final p { color: var(--text-dim); font-size: 18px; margin-top: 14px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; position: relative; z-index: 1; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links a { color: var(--text-faint); font-size: 14px; }
footer .links a:hover { color: var(--text); }
footer .copy { color: var(--text-faint); font-size: 13px; }

/* legal pages */
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.legal h1 { font-size: 38px; font-weight: 900; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-top: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; margin-top: 38px; }
.legal h3 { font-size: 17px; font-weight: 700; margin-top: 24px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--violet-soft); }
.legal strong { color: var(--text); }

/* beta modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: #14141c; border: 1px solid var(--border-strong); border-radius: 24px; padding: 28px;
}
.modal h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.modal .lead { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-faint); margin: 16px 0 6px; }
.field {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 15px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong); color: var(--text);
  font-family: inherit;
}
.field:focus { outline: none; border-color: var(--violet); }
textarea.field { resize: vertical; min-height: 64px; }
.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; padding: 11px; border-radius: 11px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-strong); color: var(--text-dim);
}
.seg button.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.modal-close { float: right; background: none; border: none; color: var(--text-faint); font-size: 24px; cursor: pointer; line-height: 1; }
.form-err { color: var(--rose); font-size: 13px; margin-top: 12px; min-height: 18px; }
.modal-success { text-align: center; padding: 18px 0; }
.modal-success .big { font-size: 46px; }
.modal-success h3 { margin-top: 10px; }

@media (max-width: 760px) {
  .grid, .steps { grid-template-columns: 1fr; }
  nav .links a:not(.btn) { display: none; }
}
