/* ─────────────────────────────────────────────
   NQR — Design System
   Powered by Neverno
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── COLOR TOKENS ── */
:root {
  --c-primary:      #080E22;
  --c-navy:         #0F1636;
  --c-navy-deep:    #080E22;
  --c-red:          #D90429;
  --c-red-soft:     rgba(217, 4, 41, 0.15);
  --c-red-glow:     rgba(217, 4, 41, 0.35);
  --c-blue-mid:     #0F1636;
  --c-blue-light:   #0F1636;
  --c-surface:      rgba(255,255,255,0.04);
  --c-surface-2:    rgba(255,255,255,0.07);
  --c-surface-3:    rgba(255,255,255,0.10);
  --c-border:       rgba(255,255,255,0.08);
  --c-border-2:     rgba(255,255,255,0.14);
  --c-text:         #F0F2FA;
  --c-text-2:       rgba(240,242,250,0.65);
  --c-text-3:       rgba(240,242,250,0.38);
  --c-white:        #FFFFFF;

  /* ── GRADIENTS ── */
  --g-bg:           radial-gradient(ellipse 100% 80% at 50% -20%, #0D1225 0%, #080E22 45%, #05070A 100%);
  --g-card:         linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  --g-red:          linear-gradient(135deg, #D90429 0%, #9a0320 100%);
  --g-blue:         linear-gradient(135deg, #080E22 0%, #0F1636 100%);
  --g-hero:         radial-gradient(ellipse 80% 60% at 50% 50%, var(--c-red-glow) 0%, transparent 70%);
  --g-glass:        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  /* ── TYPOGRAPHY ── */
  --font-display:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* ── SPACING ── */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 5rem;
  --sp-4xl: 8rem;

  /* ── RADII ── */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* ── TRANSITIONS ── */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  450ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ── INTERACTION FIX: REMOVE CONFUSING AUTO-FOCUS GLOW ── */
html:focus, body:focus {
  outline: none !important;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-navy-deep);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── SELECTION ── */
::selection { background: rgba(217,4,41,0.3); color: var(--c-white); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-navy-deep); }
::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: var(--r-pill); }

/* ────────────────────────────────────────────
   TYPOGRAPHY SCALE
   ─────────────────────────────────────────── */
.t-hero   { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.t-h1     { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.t-h2     { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.t-h3     { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.25; }
.t-h4     { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.t-large  { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; font-weight: 300; }
.t-body   { font-size: 0.975rem; line-height: 1.7; }
.t-small  { font-size: 0.85rem; line-height: 1.6; }
.t-mono   { font-family: var(--font-mono); font-size: 0.875rem; }
.t-label  { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.text-muted  { color: var(--c-text-2); }
.text-muted2 { color: var(--c-text-3); }
.text-red    { color: var(--c-red); }
.text-center { text-align: center; }

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(217,4,41,0.9) 60%, #D90429 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #FFFFFF 0%, #3B5BDB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ────────────────────────────────────────────
   LAYOUT
   ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 760px; }

.section { padding: var(--sp-3xl) 0; }
.section--sm { padding: var(--sp-2xl) 0; }
.section--lg { padding: var(--sp-4xl) 0; }

@media (min-width: 768px) {
  .section { padding: var(--sp-4xl) 0; }
  .section--sm { padding: var(--sp-3xl) 0; }
  .section--lg { padding: calc(var(--sp-4xl) * 1.5) 0; }
}

.grid { display: grid; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.gap-xl { gap: var(--sp-xl); }
.gap-2xl { gap: var(--sp-2xl); }

/* ── SPACING UTILITIES ── */
.p-xs { padding: var(--sp-xs); }
.p-sm { padding: var(--sp-sm); }
.p-md { padding: var(--sp-md); }
.p-lg { padding: var(--sp-lg); }
.p-xl { padding: var(--sp-xl); }

.m-xs { margin: var(--sp-xs); }
.m-sm { margin: var(--sp-sm); }
.m-md { margin: var(--sp-md); }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }

.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.mb-2xl { margin-bottom: var(--sp-2xl); }

.ml-xs { margin-left: var(--sp-xs); }
.mr-xs { margin-right: var(--sp-xs); }

/* ────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────── */
/* Scroll Progress Tracker */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 2px;
  z-index: 2000;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--c-red);
  box-shadow: 0 0 12px var(--c-red), 0 0 4px var(--c-red);
  transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--g-red);
  color: var(--c-white);
  box-shadow: 0 0 30px var(--c-red-glow), 0 4px 16px rgba(0,0,0,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px var(--c-red-glow), 0 8px 24px rgba(0,0,0,0.5);
}
.btn--primary:active {
  transform: scale(0.96);
  box-shadow: 0 0 15px var(--c-red-glow), 0 2px 8px rgba(0,0,0,0.5);
}

.btn--secondary {
  background: var(--c-surface-2);
  color: var(--c-text);
  border: 1px solid var(--c-border-2);
  backdrop-filter: blur(12px);
}
.btn--secondary:hover {
  background: var(--c-surface-3);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn--secondary:active {
  transform: scale(0.96);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { 
  color: var(--c-white); 
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.btn--ghost:active { transform: scale(0.96); }

/* Shimmer Animation for Premium Feel */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.btn--primary {
  background: var(--g-red);
  color: var(--c-white);
  box-shadow: 0 0 30px var(--c-red-glow), 0 4px 16px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px var(--c-red-glow), 0 8px 24px rgba(0,0,0,0.5);
}

.btn--lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn--icon { padding: 0.7rem; border-radius: var(--r-md); }

/* ────────────────────────────────────────────
   GLASS CARDS
   ─────────────────────────────────────────── */
.card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero__glow--1 {
  width: 70vw; height: 70vh;
  background: radial-gradient(circle, var(--c-red-glow) 0%, transparent 70%);
  top: -20%; left: 50%;
  transform: translateX(-50%);
}
.card:hover {
  border-color: var(--c-border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.card--glow:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px var(--c-red-glow);
  border-color: rgba(217,4,41,0.25);
}
.card--static { transition: none; }
.card--static:hover { transform: none; }

.card-inner { padding: var(--sp-xl); }
.card-inner--lg { padding: var(--sp-2xl); }

/* ── PREMIUM UTILITIES ── */
.premium-glass {
  background: var(--g-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
}

.premium-border { border: 1px solid rgba(255,255,255,0.1); }

.glow-text-red {
  text-shadow: 0 0 15px rgba(217,4,41,0.4);
}

.bg-dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ────────────────────────────────────────────
   FORM ELEMENTS
   ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-sm); }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-2);
}
.form-input {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  width: 100%;
}
.form-input::placeholder { color: var(--c-text-3); }
.form-input:focus {
  outline: none;
  border-color: var(--c-red);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px var(--c-red-soft);
}
.form-input:focus.has-error { border-color: var(--c-red); box-shadow: 0 0 0 3px var(--c-red-soft); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { appearance: none; }

/* ────────────────────────────────────────────
   NAV
   ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
}
/* Scanning Data Line */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(217, 4, 41, 0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: navScan 6s linear infinite;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
@keyframes navScan {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nav.scrolled {
  background: rgba(6, 8, 16, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
}
.nav.scrolled::after {
  opacity: 0.6;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-xl);
  height: 72px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.nav__logo-mark {
  width: 36px; height: 36px;
  background: var(--g-red);
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  box-shadow: 0 0 20px var(--c-red-glow);
  overflow: hidden;
}
.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav__logo-powered {
  font-size: 0.65rem;
  color: var(--c-text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-2);
  transition: all var(--dur-fast);
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; width: 0;
  height: 1px;
  background: var(--c-red);
  box-shadow: 0 0 8px var(--c-red);
  transition: all var(--dur-base) var(--ease-out);
  transform: translateX(-50%);
}
.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--c-white); }
.nav__link.active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: var(--sp-sm); }
.nav__hamburger { display: none; }

/* ────────────────────────────────────────────
   SECTION HEADER
   ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-red-soft);
  border: 1px solid rgba(217,4,41,0.3);
  color: #ff6b7a;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}
.section-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 8px var(--c-red);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ────────────────────────────────────────────
   DIVIDER / SEPARATOR
   ─────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-2), transparent);
  margin: var(--sp-2xl) 0;
}

/* ────────────────────────────────────────────
   TAG / BADGE
   ─────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--red    { background: var(--c-red-soft); color: #ff6b7a; border: 1px solid rgba(217,4,41,0.25); }
.tag--blue   { background: rgba(32,48,111,0.4); color: #a0b4ff; border: 1px solid rgba(32,48,111,0.5); }
.tag--green  { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.25); }
.tag--gray   { background: rgba(255,255,255,0.06); color: var(--c-text-2); border: 1px solid var(--c-border); }

/* ────────────────────────────────────────────
   ICON WRAPPER
   ─────────────────────────────────────────── */
.icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-wrap--red   { background: var(--c-red-soft); border: 1px solid rgba(217,4,41,0.2); color: #ff6b7a; }
.icon-wrap--blue  { background: rgba(32,48,111,0.3); border: 1px solid rgba(32,48,111,0.4); color: var(--c-blue-light); }
.icon-wrap--sm    { width: 36px; height: 36px; border-radius: var(--r-sm); }
.icon-wrap--lg    { width: 64px; height: 64px; border-radius: var(--r-lg); }

/* ────────────────────────────────────────────
   QR PREVIEW COMPONENT
   ─────────────────────────────────────────── */
.qr-preview-box {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.qr-preview-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(217,4,41,0.4), rgba(59,91,219,0.4));
  border-radius: inherit;
  z-index: -1;
}

/* ────────────────────────────────────────────
   TABS
   ─────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--c-surface);
  border-radius: var(--r-pill);
  padding: 3px;
  border: 1px solid var(--c-border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--c-text-2);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--c-text); background: var(--c-surface-2); }
.tab-btn.active {
  background: var(--g-red);
  color: var(--c-white);
  box-shadow: 0 0 20px var(--c-red-soft);
}

/* ────────────────────────────────────────────
   PROGRESS BAR
   ─────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--g-red);
  transition: width 0.4s var(--ease-out);
}

/* ────────────────────────────────────────────
   SWITCH / TOGGLE
   ─────────────────────────────────────────── */
.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--c-surface-3);
  border: 1px solid var(--c-border-2);
  cursor: pointer;
  transition: background var(--dur-base);
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-text-2);
  top: 2px; left: 2px;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.switch input:checked + .switch-slider { background: var(--c-red); border-color: var(--c-red); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); background: white; }

/* ────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────── */
.footer {
  background: var(--c-navy-deep);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}
.footer__brand p {
  font-size: 0.875rem;
  color: var(--c-text-2);
  margin-top: var(--sp-md);
  line-height: 1.7;
  max-width: 260px;
}
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: var(--sp-md);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__link {
  font-size: 0.875rem;
  color: var(--c-text-2);
  transition: color var(--dur-fast);
}
.footer__link:hover { color: var(--c-text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-3);
}
.footer__powered {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.footer__powered-dot {
  width: 6px; height: 6px;
  background: var(--c-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c-red);
}

/* ────────────────────────────────────────────
   ANIMATIONS
   ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px var(--c-red-glow); }
  50%       { box-shadow: 0 0 60px var(--c-red-glow), 0 0 100px rgba(217,4,41,0.15); }
}
@keyframes scanLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}
@keyframes rotateSlowly {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.anim-fade-up          { animation: fadeUp 0.6s var(--ease-out) both; }
.anim-fade-up--d1      { animation-delay: 0.1s; }
.anim-fade-up--d2      { animation-delay: 0.2s; }
.anim-fade-up--d3      { animation-delay: 0.3s; }
.anim-fade-up--d4      { animation-delay: 0.4s; }
.anim-fade-up--d5      { animation-delay: 0.5s; }
.anim-float            { animation: floatY 6s ease-in-out infinite; }
.anim-glow             { animation: glowPulse 3s ease-in-out infinite; }
.anim-scale-in         { animation: scaleIn 0.5s var(--ease-out) both; }

/* ────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav__links { display: none !important; }
  .nav__cta { display: none !important; }
  .nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 4px;
    cursor: pointer;
  }
  .nav__hamburger span {
    height: 2px;
    background: var(--c-text-2);
    border-radius: 2px;
    transition: all var(--dur-base);
  }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--sp-sm); text-align: center; }

  .section { padding: var(--sp-2xl) 0; }
  .section--lg { padding: var(--sp-2xl) 0; }
  .container { padding: 0 var(--sp-md); }
  
  /* Prevent horizontal scroll from long single words/URLs */
  p, h1, h2, h3, h4, .t-large, .t-body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .tabs { padding: 2px; }
}

/* ────────────────────────────────────────────
   MOBILE NAV OVERLAY
   ─────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8,14,34,0.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-text-2);
  transition: color var(--dur-fast);
}
.mobile-nav__link:hover { color: var(--c-text); }
.mobile-nav__close {
  position: absolute;
  top: var(--sp-xl);
  right: var(--sp-xl);
  font-size: 1.5rem;
  color: var(--c-text-2);
  cursor: pointer;
}

/* ────────────────────────────────────────────
   UTILITY OVERRIDES
   ─────────────────────────────────────────── */
.mt-sm  { margin-top: var(--sp-sm); }
.mt-md  { margin-top: var(--sp-md); }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }

/* ────────────────────────────────────────────
   FLOATING BACK BUTTON
   ─────────────────────────────────────────── */
.floating-back-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e2e1;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.floating-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.floating-back-btn:active {
  transform: translateX(-4px) scale(0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.mt-2xl { margin-top: var(--sp-2xl); }
.mb-sm  { margin-bottom: var(--sp-sm); }
.mb-md  { margin-bottom: var(--sp-md); }
.mb-lg  { margin-bottom: var(--sp-lg); }
.mb-xl  { margin-bottom: var(--sp-xl); }
.mb-2xl { margin-bottom: var(--sp-2xl); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.relative{ position: relative; }
.absolute{ position: absolute; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ── PASSWORD TOGGLE BUTTON & ANIMATION ── */
:root {
  --transition-speed: 0.6s;
  --easing: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--c-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--c-red);
}

.eye-icon {
  width: 20px;
  height: 20px;
}

/* Slash Animation Logic */
.slash {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  opacity: 0;
  transition: stroke-dashoffset var(--transition-speed) var(--easing), 
              opacity 0.3s ease;
  transform-origin: center;
}

/* State: Password Hidden (Slash Visible) */
.toggle-password.hidden .slash {
  opacity: 1;
  stroke-dashoffset: 0;
  animation: loop-in var(--transition-speed) var(--easing);
}

/* State: Password Visible (Slash Fading Out) */
.toggle-password:not(.hidden) .slash {
  opacity: 0;
  stroke-dashoffset: -30;
  transition: stroke-dashoffset 0.4s ease-in, opacity 0.4s ease-in;
}

/* Looping Animation Keyframes */
@keyframes loop-in {
  0% {
    stroke-dashoffset: 30;
    transform: rotate(0deg) scale(0.8);
    opacity: 0;
  }
  50% {
    stroke-dashoffset: 15;
    transform: rotate(180deg) scale(1.1);
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    transform: rotate(0deg) scale(1);
  }
}

.pupil {
  transition: transform 0.4s var(--easing);
  transform-origin: center;
}

.toggle-password.hidden .pupil {
  transform: scale(0.8);
  opacity: 0.7;
}
