/* THE EASIER — shared styles for every page.
   Brand: Keyframe Ascent v1.0. Sora for headings, Inter for text.
   Electric Blue #0361EC, Signal Blue #138FEA, Keyframe Cyan #25E9E6, Deep Navy #001024. */

:root {
  color-scheme: dark;
  --bg: #000814;
  --navy: #001024;
  --glow: #012A5F;
  --surface: #0B0F16;
  --surface-2: #101318;
  --line: #1C2330;
  --line-2: #2B3A52;
  --text: #F3F6FA;
  --muted: #A3AFBF;
  --muted-2: #8B97A8;
  --blue: #0361EC;
  --signal: #138FEA;
  --cyan: #25E9E6;
  --sky: #7FB4E6;
  --danger: #FF7B7F;
  --warn: #FFC46B;
  --grad: linear-gradient(90deg, #0361EC, #25E9E6);
  --grad-text: linear-gradient(90deg, #3B8BFF, #25E9E6);
  /* Button fill stays dark enough for white text (4.5:1 or better across the gradient) */
  --grad-btn: linear-gradient(135deg, #0257D6, #0B78E3);
  --heading: 'Sora', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { flex: 1; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--heading); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Small uppercase label used for eyebrows, tabs and meta text */
.label { font: 600 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); }
/* The keyframe motif: a clip and its keyframe dot */
.eyebrow::before {
  content: ""; width: 22px; height: 8px; flex: none;
  background: radial-gradient(circle at 18px 4px, var(--cyan) 3.5px, transparent 4px), linear-gradient(var(--cyan), var(--cyan)) 0 0 / 12px 8px no-repeat;
  border-radius: 4px; opacity: .9;
}
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons: pill shaped, per the brand kit */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font: 600 14px/1 var(--heading); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .25s, background-color .25s, color .25s;
}
.btn .ic { font-size: 16px; transition: transform .3s var(--spring); }
.btn:hover .ic-arrow-right { transform: translateX(3px); }
.btn-primary {
  overflow: hidden; isolation: isolate; background: var(--grad-btn); color: #fff;
  box-shadow: 0 0 22px rgba(3, 97, 236, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
/* A light sweep crosses primary buttons on hover */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(3, 97, 236, .65), 0 0 0 1px rgba(37, 233, 230, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: #DBE6F5; }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(37, 233, 230, .55); background: rgba(37, 233, 230, .06); color: #fff; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 8, 20, .72); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(0, 8, 20, .88); }
.header-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }
.primary-nav { display: flex; gap: 6px; font-size: 14px; }
.primary-nav a, .nav-account {
  position: relative; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.primary-nav a:hover, .nav-account:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.primary-nav a[aria-current="true"] { color: #fff; }
.primary-nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.header-actions { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.header-actions .btn { min-height: 40px; padding: 0 18px; font-size: 13px; }
.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; font-size: 20px;
}
#mobileMenu { border-top: 1px solid var(--line); background: rgba(0, 8, 20, .98); animation: drop-in .3s var(--ease); }
#mobileMenu nav { display: grid; padding: 8px var(--gutter) 20px; }
#mobileMenu a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
#mobileMenu a.btn { margin-top: 16px; border: 0; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { position: relative; margin-top: auto; padding: 64px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: linear-gradient(180deg, transparent, rgba(1, 42, 95, .18)); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--grad); opacity: .5; transform-origin: left; animation: line-grow 2.4s var(--ease) both; }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { width: 170px; }
.footer-brand p { margin-top: 16px; max-width: 300px; }
.footer-tag { margin-top: 18px; color: var(--sky); }
.footer-col h2 { margin-bottom: 16px; color: var(--text); font: 600 12px/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }

/* Inner pages: contact and legal */
.page-hero { position: relative; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, rgba(3, 97, 236, .32), transparent 70%);
  animation: glow-breathe 8s ease-in-out infinite;
}
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s, gap .3s var(--ease); }
.back-link:hover { color: var(--cyan); gap: 12px; }
.page-hero h1 { margin-top: 16px; font-size: clamp(36px, 6vw, 60px); letter-spacing: -.03em; animation: rise .8s var(--ease) both .1s; }
.page-hero .eyebrow { animation: rise .8s var(--ease) both; }
.prose { margin-bottom: 96px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(16, 19, 24, .9), rgba(11, 15, 22, .7)); animation: rise .8s var(--ease) both .2s; }
.prose h2 { margin: 34px 0 10px; font-size: 21px; }
.prose h2:first-child, .prose .notice + h2 { margin-top: 0; }
.prose .notice + h2 { margin-top: 30px; }
.prose p { color: var(--muted); }
.notice { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid rgba(255, 196, 107, .32); border-radius: 12px; background: rgba(255, 196, 107, .06); }
.notice > .ic { margin-top: 3px; color: var(--warn); font-size: 18px; }
.notice.is-info { border-color: rgba(37, 233, 230, .3); background: rgba(37, 233, 230, .05); }
.notice.is-info > .ic { color: var(--cyan); }
.notice strong { display: block; margin-bottom: 4px; font-family: var(--heading); font-weight: 600; }
.notice p { color: var(--muted); font-size: 15px; }
.prose .notice { margin: 24px 0; }

/* Shared motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* Responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .primary-nav, .nav-account { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 640px) {
  .header-row { height: 64px; }
  .brand img { width: 128px; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .page-hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
