/* ==========================================================================
   FreeAPI.org Launching Soon — Cyber-Luminescent Design System
   Award-Winning, High Performance, Mobile-Responsive & Accessible
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette (Deep Cyber Dark) */
  --bg-primary: #07090e;
  --bg-secondary: #0d121c;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(24, 32, 50, 0.85);
  --bg-glass: rgba(13, 18, 28, 0.75);
  --bg-input: rgba(10, 14, 22, 0.85);

  /* Luminescent Accents */
  --accent-cyan: #00d2ff;
  --accent-green: #00f5a0;
  --accent-purple: #9d4edd;
  --accent-orange: #ff9e00;
  --accent-pink: #ff007f;
  --accent-blue: #3a86ff;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f5a0 0%, #00d2ff 50%, #7928ca 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #00f5a0 60%, #00d2ff 100%);
  --grad-cyan-glow: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(7, 9, 14, 0) 70%);
  --grad-green-glow: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, rgba(7, 9, 14, 0) 70%);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #07090e;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 245, 160, 0.35);
  --border-cyan-glow: rgba(0, 210, 255, 0.35);
  --shadow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 35px rgba(0, 245, 160, 0.25);
  --shadow-cyan: 0 0 35px rgba(0, 210, 255, 0.25);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace, Consolas, monospace;

  /* Transitions & Animation Timings */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --- Utility Classes --- */
.hidden {
  display: none !important;
}

/* --- Interactive Canvas Backgrounds --- */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  background: rgba(7, 9, 14, 0.95);
  display: none;
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  pointer-events: none;
}

/* --- Ambient Light Orbs --- */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  left: 15%;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.25) 0%, transparent 70%);
}

.orb-2 {
  width: 600px;
  height: 600px;
  top: 35%;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22) 0%, transparent 70%);
  animation-delay: -7s;
}

.orb-3 {
  width: 500px;
  height: 500px;
  bottom: 5%;
  left: -80px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.2) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* --- Custom Cursor (Pointer Devices) --- */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, rgba(0, 210, 255, 0.04) 45%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  }
  
  .cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan), 0 0 20px var(--accent-green);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: transform 0.08s ease-out;
  }
}

@media (hover: none) or (pointer: coarse) {
  .cursor-glow, .cursor-dot {
    display: none !important;
  }
}

/* --- Page Wrapper --- */
.page-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  group: logo;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring);
}

.brand-logo:hover .logo-icon {
  transform: scale(1.08) rotate(3deg);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-tld {
  color: var(--accent-cyan);
}

.brand-version-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 245, 160, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 160, 0.3);
  letter-spacing: 0.02em;
}

/* Telemetry Badge */
.telemetry-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: telemetryPulse 2s infinite;
}

@keyframes telemetryPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-green); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.telemetry-label {
  font-weight: 500;
  color: var(--text-muted);
}

.telemetry-val {
  color: var(--accent-cyan);
  font-weight: 600;
}

.telemetry-ping {
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(24, 32, 50, 0.9);
  color: var(--accent-cyan);
  border-color: var(--border-cyan-glow);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.btn-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #121826;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.icon-btn:hover .btn-tooltip {
  opacity: 1;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-smooth);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.48rem 1rem;
}

.btn-glow-primary {
  background: var(--grad-primary);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.3);
}

.btn-glow-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 245, 160, 0.5);
}

.btn-primary {
  background: #ffffff;
  color: #07090e;
}
.btn-primary:hover {
  background: var(--accent-green);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* --- Main Layout --- */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 6rem;
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0 4rem;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(18, 24, 38, 0.75);
  border: 1px solid rgba(0, 245, 160, 0.3);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.1);
  margin-bottom: 1.8rem;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { border-color: rgba(0, 245, 160, 0.25); box-shadow: 0 0 15px rgba(0, 245, 160, 0.08); }
  100% { border-color: rgba(0, 210, 255, 0.5); box-shadow: 0 0 25px rgba(0, 210, 255, 0.2); }
}

.pill-sparkle {
  font-size: 0.95rem;
}

.pill-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-green);
  color: var(--text-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 980px;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 2.8rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

/* --- Countdown Card --- */
.countdown-card {
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.countdown-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.05em;
}

.radar-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.launch-target-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  max-width: 140px;
}

.unit-box {
  width: 100%;
  aspect-ratio: 1.15;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.unit-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.4);
}

.unit-number-wrapper {
  z-index: 2;
}

.unit-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.unit-glow {
  position: absolute;
  bottom: -30px;
  width: 80%;
  height: 50px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.unit-separator {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  margin-top: -1.2rem;
}

.unit-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.countdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* --- Notify Form Section --- */
.notify-container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.notify-form {
  width: 100%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.input-wrapper:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  min-width: 0;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  background: var(--grad-primary);
  color: var(--text-dark);
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 18px rgba(0, 245, 160, 0.4);
}

.btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.btn-submit:hover .btn-arrow {
  transform: translateX(3px);
}

.form-feedback {
  font-size: 0.85rem;
  min-height: 1.4rem;
  margin-top: 0.4rem;
  transition: all 0.2s ease;
}

.form-feedback.success {
  color: var(--accent-green);
}

.form-feedback.error {
  color: #ff5e57;
}

.perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.perk-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.perk-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
}

/* Spinner Loader */
.spinner {
  width: 18px;
  height: 18px;
  animation: rotateSpinner 1s linear infinite;
}
.spinner .path {
  stroke-linecap: round;
  animation: dashSpinner 1.5s ease-in-out infinite;
}

@keyframes rotateSpinner {
  100% { transform: rotate(360deg); }
}

@keyframes dashSpinner {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* --- Section Headers --- */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.badge-capsule {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Terminal Console Section --- */
.terminal-section {
  padding: 4rem 0 5rem;
}

.terminal-container {
  max-width: 960px;
  margin: 0 auto;
  background: #0c1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 210, 255, 0.08);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #121824;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.control-dot.close { background: #ff5f56; }
.control-dot.min { background: #ffbd2e; }
.control-dot.max { background: #27c93f; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.term-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.terminal-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.meta-tag.ssl {
  color: var(--accent-green);
  background: rgba(0, 245, 160, 0.1);
}

.terminal-endpoints-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: rgba(14, 20, 30, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
}

.bar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.endpoint-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.endpoint-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.endpoint-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.method {
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.method.get { background: rgba(0, 245, 160, 0.15); color: var(--accent-green); }
.method.post { background: rgba(255, 158, 0, 0.15); color: var(--accent-orange); }
.method.special { background: rgba(157, 78, 221, 0.25); color: #d8b4fe; }

.easter-btn {
  border-color: rgba(157, 78, 221, 0.4);
}
.easter-btn:hover {
  background: rgba(157, 78, 221, 0.2);
  border-color: var(--accent-purple);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.prompt-user { color: var(--accent-cyan); font-weight: 600; }
.prompt-sep { color: var(--text-muted); }
.prompt-path { color: #f59e0b; }
.prompt-char { color: var(--accent-green); font-weight: 700; }
.prompt-cmd { color: #ffffff; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-green);
  vertical-align: middle;
  animation: blinkCursor 1s step-start infinite;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

.response-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: rgba(18, 24, 38, 0.8);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-pill {
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.status-200 {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 245, 160, 0.3);
}

.response-metrics {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text-secondary);
}

.metric-key { color: var(--text-muted); }
.metric-val { color: var(--text-primary); font-weight: 600; }
.text-green { color: var(--accent-green) !important; }

.copy-json-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-json-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.copy-json-btn svg {
  width: 13px;
  height: 13px;
}

.terminal-output {
  background: #090c12;
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 380px;
}

.json-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: #e2e8f0;
  display: block;
}

/* Syntax Highlighting */
.json-key { color: #38bdf8; font-weight: 500; }
.json-str { color: #4ade80; }
.json-num { color: #fbbf24; font-weight: 600; }
.json-bool { color: #f472b6; font-weight: 600; }
.json-null { color: #94a3b8; font-style: italic; }

/* --- Features Grid Section --- */
.features-section {
  padding: 4rem 0 5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 160, 0.35);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 160, 0.12);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 245, 160, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover .card-icon-box {
  transform: scale(1.08) rotate(4deg);
}

.card-icon-box svg {
  width: 26px;
  height: 26px;
}

.card-icon-box.cyan { background: rgba(0, 210, 255, 0.1); color: var(--accent-cyan); border-color: rgba(0, 210, 255, 0.25); }
.card-icon-box.green { background: rgba(0, 245, 160, 0.1); color: var(--accent-green); border-color: rgba(0, 245, 160, 0.25); }
.card-icon-box.purple { background: rgba(157, 78, 221, 0.1); color: var(--accent-purple); border-color: rgba(157, 78, 221, 0.25); }
.card-icon-box.orange { background: rgba(255, 158, 0, 0.1); color: var(--accent-orange); border-color: rgba(255, 158, 0, 0.25); }
.card-icon-box.blue { background: rgba(58, 134, 255, 0.1); color: var(--accent-blue); border-color: rgba(58, 134, 255, 0.25); }
.card-icon-box.pink { background: rgba(255, 0, 127, 0.1); color: var(--accent-pink); border-color: rgba(255, 0, 127, 0.25); }

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-tech {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* --- Launch Roadmap Section --- */
.roadmap-section {
  padding: 4rem 0 5rem;
}

.roadmap-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.roadmap-progress-bar {
  position: absolute;
  top: 24px;
  left: 24px;
  bottom: 24px;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  z-index: 1;
}

.roadmap-progress-fill {
  width: 100%;
  background: var(--grad-primary);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent-cyan);
  transition: height 1s ease;
}

.roadmap-milestones {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: relative;
  z-index: 2;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
}

.milestone-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0e1420;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.milestone-item.completed .milestone-dot {
  background: rgba(0, 245, 160, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
}
.milestone-item.completed .milestone-dot svg {
  width: 20px;
  height: 20px;
}

.milestone-item.in-progress .milestone-dot {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  position: relative;
}

.pulsing-beacon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: beaconPulse 1.5s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

.milestone-item.pending .milestone-dot {
  background: #0c1017;
  border-color: rgba(255, 255, 255, 0.1);
}
.milestone-item.pending .dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.milestone-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  flex: 1;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease;
}

.milestone-content:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.milestone-phase {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}

.text-cyan { color: var(--accent-cyan) !important; }

.milestone-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.milestone-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Modal & Digital Ticket --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.modal-card {
  background: #0e1422;
  border: 1px solid rgba(0, 245, 160, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 245, 160, 0.2);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  text-align: center;
  animation: modalPop 0.35s var(--ease-spring);
}

@keyframes modalPop {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  background: rgba(0, 245, 160, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 245, 160, 0.3);
  margin-bottom: 1.2rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

/* Digital Ticket */
.digital-ticket {
  background: #090c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  text-align: left;
  margin-bottom: 1.8rem;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.ticket-notch {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #0e1422;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.notch-left { left: -11px; }
.notch-right { right: -11px; }

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  margin-bottom: 1.2rem;
}

.ticket-brand .t-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.ticket-brand .t-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ticket-barcode {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
}

.barcode-line {
  width: 2px;
  height: 100%;
  background: var(--text-muted);
}
.barcode-line.w-2 { width: 4px; }
.barcode-line.w-3 { width: 6px; }

.ticket-middle, .ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.field-val {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.field-val.highlight {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

.text-right {
  text-align: right;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

/* --- Keyboard HUD --- */
.keyboard-hud {
  position: fixed;
  bottom: 1.5rem;
  right: 1.75rem;
  z-index: 90;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
}

@media (min-width: 900px) {
  .keyboard-hud {
    display: block;
  }
}

.hud-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
}

.hud-title {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070a;
  padding: 4rem 1.75rem 2.5rem;
  margin-top: auto;
  position: relative;
  z-index: 3;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.footer-brand {
  max-width: 480px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.logo-symbol {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-green);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 17px;
  height: 17px;
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .telemetry-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 1.5rem 1.2rem 4rem;
  }
  
  .hero-section {
    padding: 1.5rem 0 3rem;
  }

  .countdown-card {
    padding: 1.6rem 1.2rem;
    border-radius: 18px;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .unit-box {
    border-radius: 12px;
  }

  .unit-separator {
    font-size: 1.4rem;
  }

  .input-wrapper {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .input-icon {
    display: none;
  }

  .email-input {
    width: 100%;
    padding: 0.4rem 0.2rem;
    text-align: center;
  }

  .desk-break {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .milestone-item {
    gap: 1rem;
  }

  .roadmap-progress-bar {
    left: 20px;
  }

  .milestone-dot {
    width: 42px;
    height: 42px;
  }

  .milestone-content {
    padding: 1.1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .countdown-footer {
    gap: 0.8rem;
  }
  
  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .modal-card {
    padding: 1.8rem 1.2rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
