/* ── Design Tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0A0F1E;
  --ink-2:      #111826;
  --surface:    #1C2438;
  --text:       #E8E8E2;
  --text-muted: #7B84A0;
  --pink:       #EC50DA;
  --indigo:     #5072EC;
  --blue:       #5072EC;
  --blue-dim:   rgba(80,114,236,0.1);
  --blue-line:  rgba(80,114,236,0.3);
  --orange:     #EC50DA;
  --grad:       linear-gradient(135deg, #EC50DA 0%, #5072EC 100%);
  --light-bg:   #F4F4F0;
  --dark-text:  #141424;
  --mid-text:   #4A4A6A;
  --border:     rgba(255,255,255,0.07);
  --border-l:   rgba(20,20,36,0.1);
  --r:          4px;
  --font:       'Plus Jakarta Sans', sans-serif;
  --mono:       'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--ink); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ── Skip link ──────────────────────────────────────────── */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--orange); color: #fff; padding: 8px 16px; border-radius: var(--r); font-size: 14px; font-weight: 700; text-decoration: none; z-index: 999; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

/* ── Focus ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── Grad text ──────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, #EC50DA 0%, #5072EC 50%, #EC50DA 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShimmer 6s ease-in-out infinite;
}
@keyframes gradShimmer { 0%,100%{background-position:0% center} 50%{background-position:100% center} }
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; background-size: 100% auto; } }

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px max(24px, calc((100% - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, border-bottom 0.3s;
}
nav.scrolled { background: rgba(10,15,30,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; position: relative; }
.nav-links a { font-size: 14px; font-weight: 500; color: #B0BAD0; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="true"]:not(.nav-cta) { color: var(--text); }

.nav-cta { background: linear-gradient(135deg, #C030B4 0%, #3D57E0 100%) !important; color: #fff !important; padding: 9px 20px; border-radius: var(--r); font-weight: 700 !important; font-size: 13px !important; transition: opacity 0.2s !important; }
.nav-cta:hover { opacity: 0.88 !important; }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: flex; align-items: center; gap: 5px; }
.nav-drop > a::after { content: ''; display: block; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; transition: transform 0.2s; }
.nav-drop:hover > a::after,
.nav-drop:focus-within > a::after { transform: rotate(-135deg) translateY(-2px); }

.drop-menu {
  position: absolute; top: calc(100% + 16px); left: -16px;
  background: var(--ink-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 8px 0; min-width: 200px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.drop-menu::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu { opacity: 1; pointer-events: auto; transform: none; }
.drop-menu a { display: block; padding: 9px 16px; font-size: 13px; color: #B0BAD0; white-space: nowrap; }
.drop-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 200; position: relative; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary { background: linear-gradient(135deg, #C030B4 0%, #3D57E0 100%); color: #fff; padding: 14px 28px; border-radius: var(--r); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.2s, transform 0.2s; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost { color: var(--text); padding: 14px 28px; border-radius: var(--r); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 8px; transition: border-color 0.2s, background 0.2s; }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-dim); }

/* ── SECTION COMMON ─────────────────────────────────────── */
.sec-eye { font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; color: var(--blue); }
.sec-eye.warm { color: var(--orange); }
.sec-head { font-size: clamp(30px,4vw,48px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 60px; color: var(--dark-text); }
.sec-head.light { color: var(--text); }

/* ── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  padding: 160px max(24px, calc((100% - 1200px) / 2)) 80px;
  background: var(--ink);
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(80,114,236,0.12) 0%, transparent 70%); pointer-events: none; }
.page-hero-eye { font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.page-hero-eye::before { content: ''; display: block; width: 24px; height: 1px; background: var(--blue); }
.page-hero h1 { font-size: clamp(36px,5.5vw,72px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; color: var(--text); max-width: 760px; margin-bottom: 24px; }
.page-hero p { font-size: 18px; color: var(--text-muted); max-width: 540px; line-height: 1.75; margin-bottom: 40px; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: #060a14; border-top: 1px solid var(--border); padding: 44px max(24px, calc((100% - 1200px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.flogo { display: flex; align-items: center; text-decoration: none; flex: 1; }
.flogo img { height: 22px; width: auto; display: block; }
.flegal { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.6; }
.flinks { display: flex; gap: 24px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.flinks a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.flinks a:hover { color: var(--text); }

/* ── FADE UP ─────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; } }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 36px; z-index: 150; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; }
  .drop-menu { position: static; opacity: 1; pointer-events: auto; transform: none; background: transparent; border: none; padding: 0; }
  .drop-menu a { font-size: 16px; padding: 6px 0; }
  .page-hero { padding: 120px 24px 60px; }
  footer { padding: 36px 24px; flex-direction: column; text-align: center; }
  .flinks { flex-wrap: wrap; justify-content: center; }
}
