/* GRANDAXIN — Design System */
:root {
  --gx-ink: #0A1F4D;
  --gx-deep: #0D2B73;
  --gx-primary: #1E40AF;
  --gx-electric: #3B82F6;
  --gx-cyan: #22D3EE;
  --gx-cyan-soft: #A5F3FC;
  --gx-accent: #06B6D4;
  --gx-bg: #F4F7FB;
  --gx-bg-2: #EAF1FB;
  --gx-surface: #FFFFFF;
  --gx-line: #E2E8F0;
  --gx-line-soft: #EDF2F9;
  --gx-text: #0F172A;
  --gx-text-muted: #475569;
  --gx-text-soft: #64748B;
  --gx-success: #10B981;
  --gx-warn: #F59E0B;
  --gx-danger: #EF4444;

  --gx-radius-sm: 10px;
  --gx-radius: 16px;
  --gx-radius-lg: 24px;
  --gx-radius-xl: 32px;

  --gx-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --gx-shadow: 0 8px 24px -8px rgba(13, 43, 115, .12), 0 2px 6px rgba(13, 43, 115, .04);
  --gx-shadow-lg: 0 24px 60px -20px rgba(13, 43, 115, .25), 0 8px 20px -8px rgba(13, 43, 115, .08);
  --gx-shadow-glow: 0 20px 50px -16px rgba(59, 130, 246, .45);

  --gx-grad-primary: linear-gradient(135deg, #0D2B73 0%, #1E40AF 45%, #06B6D4 100%);
  --gx-grad-soft: linear-gradient(135deg, #EAF1FB 0%, #DCEAFD 100%);
  --gx-grad-cyan: linear-gradient(135deg, #3B82F6 0%, #22D3EE 100%);

  --gx-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--gx-font);
  color: var(--gx-text);
  background: var(--gx-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--gx-cyan-soft); color: var(--gx-ink); }

/* ---------- Logo capsule ---------- */
.gx-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--gx-ink);
}
.gx-logo-mark {
  width: 44px;
  height: 28px;
  border-radius: 999px;
  background: var(--gx-grad-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 6px 14px -6px rgba(13, 43, 115, .55);
  overflow: hidden;
}
.gx-logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 50%);
  pointer-events: none;
}
.gx-logo-mark .gx-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gx-cyan-soft);
  top: 4px;
  right: 5px;
  box-shadow: 0 0 8px var(--gx-cyan);
}
.gx-logo-text { font-size: 18px; }
.gx-logo-text sup { font-size: 9px; color: var(--gx-electric); margin-left: 1px; }

.gx-logo--lg .gx-logo-mark { width: 64px; height: 40px; font-size: 11px; }
.gx-logo--lg .gx-logo-text { font-size: 24px; }

/* ---------- Navbar ---------- */
.gx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, .6);
}
.gx-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gx-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gx-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gx-text-muted);
  transition: all .2s ease;
}
.gx-nav-links a:hover {
  color: var(--gx-ink);
  background: var(--gx-bg);
}
.gx-nav-links a.active {
  color: white;
  background: var(--gx-grad-primary);
  box-shadow: 0 6px 14px -6px rgba(30, 64, 175, .55);
}
.gx-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gx-locale {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid var(--gx-line);
  color: var(--gx-text-muted);
  text-transform: uppercase;
  transition: all .2s ease;
}
.gx-locale:hover { border-color: var(--gx-electric); color: var(--gx-electric); }
.gx-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--gx-grad-cyan);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Mobile nav: hamburger + drawer ---------- */
.gx-nav-burger {
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.gx-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gx-ink);
  border-radius: 2px;
}
.gx-nav-mobile {
  position: fixed; inset: 0;
  background: rgba(10, 31, 77, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  animation: gxFadeIn .2s ease;
}
.gx-nav-mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: white;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -10px rgba(0, 0, 0, .35);
  animation: gxSlideRight .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes gxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gxSlideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.gx-nav-mobile-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gx-bg);
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--gx-text-muted);
  cursor: pointer;
  margin-bottom: 18px;
  transition: background .15s ease;
}
.gx-nav-mobile-close:hover { background: var(--gx-bg-2); }
.gx-nav-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gx-nav-mobile-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--gx-text);
}
.gx-nav-mobile-links a:hover { background: var(--gx-bg); }
.gx-nav-mobile-links a.active {
  background: var(--gx-grad-primary);
  color: white;
  box-shadow: 0 6px 14px -6px rgba(30, 64, 175, .55);
}

@media (max-width: 900px) {
  .gx-nav-links { display: none; }
  .gx-nav-burger { display: inline-flex; }
  .gx-nav-inner { padding: 14px 18px; }
  .gx-locale { display: none; }
}

/* ---------- Buttons ---------- */
.gx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  transition: all .2s ease;
  white-space: nowrap;
}
.gx-btn--primary {
  background: var(--gx-grad-primary);
  color: white;
  box-shadow: var(--gx-shadow-glow);
}
.gx-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px -16px rgba(59, 130, 246, .55);
}
.gx-btn--ghost {
  background: var(--gx-surface);
  color: var(--gx-ink);
  border: 1px solid var(--gx-line);
}
.gx-btn--ghost:hover { border-color: var(--gx-electric); color: var(--gx-electric); }
.gx-btn--soft {
  background: var(--gx-bg-2);
  color: var(--gx-deep);
}
.gx-btn--soft:hover { background: #DCEAFD; }
.gx-btn--lg { padding: 18px 32px; font-size: 16px; }
.gx-btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Form fields ---------- */
.gx-field { display: flex; flex-direction: column; gap: 8px; }
.gx-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gx-text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gx-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--gx-radius);
  border: 1.5px solid var(--gx-line);
  background: var(--gx-surface);
  font-size: 15px;
  color: var(--gx-text);
  transition: all .2s ease;
  outline: none;
}
.gx-input:focus {
  border-color: var(--gx-electric);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}
.gx-input::placeholder { color: var(--gx-text-soft); }

.gx-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gx-text-muted);
  cursor: pointer;
  user-select: none;
}
.gx-checkbox input { display: none; }
.gx-checkbox-box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--gx-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.gx-checkbox input:checked + .gx-checkbox-box {
  background: var(--gx-grad-primary);
  border-color: var(--gx-deep);
}
.gx-checkbox input:checked + .gx-checkbox-box::after {
  content: '';
  width: 10px; height: 6px;
  border: 2px solid white;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------- Cards ---------- */
.gx-card {
  background: var(--gx-surface);
  border-radius: var(--gx-radius-lg);
  border: 1px solid var(--gx-line-soft);
  box-shadow: var(--gx-shadow);
}

/* ---------- Utility ---------- */
.gx-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}
.gx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gx-bg-2);
  color: var(--gx-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gx-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gx-electric);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(59, 130, 246, .04); }
}
.gx-h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
.gx-h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.gx-h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.gx-lead { font-size: 18px; line-height: 1.55; color: var(--gx-text-muted); margin: 0; }

.gx-mesh-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(34, 211, 238, .25), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(59, 130, 246, .22), transparent 60%),
    linear-gradient(180deg, var(--gx-bg) 0%, var(--gx-bg-2) 100%);
}

/* ---------- Page transitions ---------- */
/* fade only — NO transform: a persistent transform here would make this a
   containing block for the position:fixed navbar, dropping it ~padding-top px
   below the viewport top (white band above the nav). */
.gx-page-enter { animation: pageIn .4s ease-out both; }
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Stories rail ---------- */
.gx-stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 16px;
}
.gx-stories::-webkit-scrollbar { display: none; }
.gx-story {
  flex-shrink: 0;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  padding: 3px;
  background: var(--gx-grad-primary);
  cursor: pointer;
  transition: transform .25s ease;
}
.gx-story:hover { transform: scale(1.05); }
.gx-story.viewed { background: var(--gx-line); }
.gx-story-inner {
  width: 100%; height: 100%;
  border-radius: 999px;
  background: white;
  padding: 3px;
}
.gx-story-img {
  width: 100%; height: 100%;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
}

/* ---------- Footer ---------- */
.gx-footer {
  background: var(--gx-grad-primary);
  color: white;
  border-radius: var(--gx-radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gx-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(34, 211, 238, .35), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(255, 255, 255, .12), transparent 60%);
  pointer-events: none;
}
.gx-footer > * { position: relative; }
.gx-footer-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
}
.gx-footer-warn {
  margin: 28px auto;
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.gx-footer-info {
  font-size: 13px;
  line-height: 1.7;
  opacity: .82;
  max-width: 700px;
  margin: 0 auto;
}
