/* Brink Digital — stylesheet */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #050b1d;
  --bg-2: #0a1430;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(160, 185, 255, 0.14);
  --text: #e9eefc;
  --muted: #9aa8c9;
  --blue: #1a74ff;
  --blue-2: #0058e6;
  --warm: #f1c58b;
  --radius: 18px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 11, 29, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--text); background: var(--surface); }
.nav .cta-small { color: var(--text); border: 1px solid var(--border); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(26, 116, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(26, 116, 255, .85); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,11,29,.92) 0%, rgba(5,11,29,.55) 42%, rgba(5,11,29,0) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(5,11,29,0) 28%); }
.hero-content { padding-block: 140px 100px; max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #b9caff; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, #8fb0ff 60%, var(--warm) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 24px; font-size: 1.15rem; color: #c3cde6; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Sections */
section { padding-block: 110px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { position: relative; padding: 30px 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--border); overflow: hidden; transition: transform .3s, border-color .3s; }
.card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(120,160,255,.7), transparent); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(120,160,255,.32); }
.card:hover::before { opacity: 1; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(26,116,255,.12); border: 1px solid rgba(26,116,255,.3); color: #9db6ff; margin-bottom: 22px; }
.icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

/* Process */
.process { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { padding: 28px 4px 0; border-top: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-size: .9rem; color: var(--blue); display: block; margin-bottom: 14px; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--blue); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-text p { color: #c3cde6; font-size: 1.07rem; margin-top: 18px; }
.about-text p:first-of-type { margin-top: 0; }
.facts { grid-template-columns: 1fr 1fr; }
.fact { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.fact strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: .92rem; }

/* Google sign-in notice */
.notice { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-top: 64px; }
.notice svg { flex: none; width: 26px; height: 26px; color: #9db6ff; margin-top: 2px; }
.notice h3 { font-size: 1.05rem; margin-bottom: 6px; }
.notice p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-box { position: relative; text-align: center; padding: 80px 32px; border-radius: 28px; border: 1px solid var(--border); overflow: hidden; isolation: isolate;
  background: radial-gradient(600px 300px at 50% 120%, rgba(26,116,255,.35), transparent 70%), radial-gradient(400px 200px at 85% -10%, rgba(241,197,139,.12), transparent 70%), var(--bg-2); }
.contact-box h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.contact-box p { color: #c3cde6; margin: 18px auto 34px; max-width: 520px; font-size: 1.08rem; }
.contact-box .hero-actions { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 36px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Legal pages */
.legal { padding-block: 140px 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal .updated { color: var(--muted); margin-top: 12px; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.legal p, .legal li { color: #c3cde6; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: #9db6ff; }
.legal .callout { margin-top: 18px; padding: 18px 20px; border-left: 3px solid var(--blue); background: var(--surface); border-radius: 0 12px 12px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 860px) {
  .nav ul li:not(:last-child) { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding-block: 80px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(5,11,29,.75) 55%, rgba(5,11,29,.45) 100%); }
  .hero { align-items: flex-end; }
  .hero-content { padding-block: 120px 64px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .facts { grid-template-columns: 1fr; }
  .notice { flex-direction: column; }
  .contact-box { padding: 56px 20px; }
}

/* Wordmark */
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 500; color: #4f95ff; }
