@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   Design Tokens & Theme Variables
   ========================================================================== */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --color-brand-cyan: #49e6cd;
  --color-brand-blue: #394eff;
  --color-brand-purple: #9768ff;
  --color-brand-teal: #56b8ad;
  --color-brand-sky: #3bb4ec;
  --color-creator: #ffc83b;

  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
}

/* Dark Theme (Default) */
[data-sds-mode="dark"],
:root:not([data-sds-mode="light"]) {
  color-scheme: dark;
  --bg-color: #060810;
  --bg-gradient: radial-gradient(circle at 75% 20%, #12183a 0%, #080a14 50%, #04050a 100%);
  --text-primary: #f5f6fa;
  --text-secondary: #9aa1bc;
  --text-muted: #626a88;
  
  --gb-card-background: rgba(255, 255, 255, 0.04);
  --gb-card-border: rgba(255, 255, 255, 0.08);
  --gb-card-border-hover: rgba(73, 230, 205, 0.35);
  --gb-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --gb-card-shadow-hover: 0 8px 36px rgba(73, 230, 205, 0.12);

  --footer-border: rgba(255, 255, 255, 0.08);
  --social-bg: rgba(255, 255, 255, 0.04);
  --social-border: rgba(255, 255, 255, 0.08);
  --social-hover-bg: rgba(73, 230, 205, 0.12);
  --social-hover-border: rgba(73, 230, 205, 0.35);

  --glow-accent: rgba(73, 230, 205, 0.2);
  --glow-creator: rgba(255, 200, 59, 0.35);
}

/* Light Theme (Crisp Celestial) */
[data-sds-mode="light"] {
  color-scheme: light;
  --bg-color: #f7f9fd;
  --bg-gradient: radial-gradient(circle at 80% 15%, #dce5fc 0%, #edf3fc 45%, #f7f9fd 100%);
  --text-primary: #121522;
  --text-secondary: #4a5270;
  --text-muted: #7e87a2;
  
  --gb-card-background: rgba(255, 255, 255, 0.75);
  --gb-card-border: rgba(0, 0, 0, 0.08);
  --gb-card-border-hover: rgba(57, 78, 255, 0.3);
  --gb-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --gb-card-shadow-hover: 0 8px 30px rgba(57, 78, 255, 0.1);

  --footer-border: rgba(0, 0, 0, 0.08);
  --social-bg: rgba(0, 0, 0, 0.03);
  --social-border: rgba(0, 0, 0, 0.08);
  --social-hover-bg: rgba(57, 78, 255, 0.08);
  --social-hover-border: rgba(57, 78, 255, 0.25);

  --glow-accent: rgba(57, 78, 255, 0.12);
  --glow-creator: rgba(255, 180, 0, 0.25);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* ==========================================================================
   Background Space Art & Canvas Layer
   ========================================================================== */
.space-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cosmic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.celestial-svg {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 110vw;
  max-width: 1500px;
  height: 110vh;
  max-height: 1100px;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 65% 35%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  mask-image: radial-gradient(circle at 65% 35%, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  animation: floatSpace 28s ease-in-out infinite alternate;
  transition: opacity var(--transition-smooth);
}

[data-sds-mode="light"] .celestial-svg {
  mix-blend-mode: multiply;
  opacity: 0.35;
  filter: saturate(1.15);
}

@keyframes floatSpace {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.03) translate(-15px, 15px); }
  100% { transform: scale(0.99) translate(10px, -10px); }
}

/* ==========================================================================
   Layout Container
   ========================================================================== */
.wrapper, .gb-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

/* ==========================================================================
   Top Header (Flush with Viewport Edge)
   ========================================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.85;
}

.brand-icon {
  width: 28px;
  height: 28px;
  transition: transform var(--transition-smooth);
}

.brand:hover .brand-icon {
  transform: rotate(45deg);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--social-bg);
  border: 1px solid var(--social-border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--social-hover-border);
  background: var(--social-hover-bg);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Hero Section (Pure, Minimal, Uncluttered Focal Point)
   ========================================================================== */
.hero {
  padding: 64px 0 80px;
  max-width: 860px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 35%, var(--color-brand-cyan) 85%, var(--color-brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: fit-content;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
}

/* ==========================================================================
   Grid & Typography Utilities (From Original Parking Page)
   ========================================================================== */
.gb-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.gb-row--center {
  justify-content: center;
}

.gb-row--middle {
  align-items: center;
}

.gb-row--gutter-sm {
  margin-left: -8px;
  margin-right: -8px;
}

.gb-row--gutter-sm > [class*="gb-col"] {
  padding-left: 8px;
  padding-right: 8px;
}

.gb-col {
  flex: 1 0 0%;
  padding-left: 12px;
  padding-right: 12px;
}

.gb-col-auto {
  flex: 0 0 auto;
  width: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.gb-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 960px) {
  .gb-col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.gb-mb-1 { margin-bottom: 8px !important; }
.gb-mb-2 { margin-bottom: 16px !important; }
.gb-mb-4 { margin-bottom: 32px !important; }

.gb-text-uppercase { text-transform: uppercase; }
.gb-text-smallest {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.gb-d-block { display: block; }

/* ==========================================================================
   gb-card Component (Original Design System)
   ========================================================================== */
.gb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gb-card-background);
  border: 1px solid var(--gb-card-border);
  border-radius: 12px;
  box-shadow: var(--gb-card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gb-card:hover {
  transform: translateY(-4px);
  border-color: var(--gb-card-border-hover);
  box-shadow: var(--gb-card-shadow-hover);
}

.gb-card__container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

/* ==========================================================================
   sps-parkingpage__tools Section (Original Headings & Styles)
   ========================================================================== */
.sps-parkingpage__heading {
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.sps-parkingpage__tools {
  padding-top: 64px;
  padding-bottom: 64px;
}

.sps-parkingpage__tools-title {
  margin-bottom: 64px;
}

.sps-parkingpage__tools .gb-card {
  height: 100%;
  max-width: none;
}

.sps-parkingpage__tools-card-title {
  font-size: 1.25rem;
  line-height: 1.625rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
}

.sps-parkingpage__tools-card-text {
  min-height: 3rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   sps-parkingpage__faq Section (Original Structure & Styles)
   ========================================================================== */
.sps-parkingpage__faq {
  padding-top: 96px;
  padding-bottom: 96px;
}

.sps-parkingpage__faq-wrapper {
  margin: 0 auto;
  max-width: 854px;
}

.sps-parkingpage__faq-title {
  margin-bottom: 64px;
}

.sps-parkingpage__faq-question {
  font-size: 1.25rem;
  line-height: 1.625rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0 0 10px;
}

.sps-parkingpage__faq-answer {
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   Subtle Hidden Easter Egg Toast (Appears only upon typing)
   ========================================================================== */
.hidden-key-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gb-card-background);
  border: 1px solid var(--gb-card-border);
  border-radius: 9999px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-brand-cyan);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, border-color 0.3s ease;
  z-index: 100;
}

.hidden-key-toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Creator Mode Activated */
body.creator-mode {
  --color-brand-cyan: #ffc83b;
  --glow-accent: var(--glow-creator);
}

body.creator-mode .hero-title {
  background: linear-gradient(135deg, #ffffff 25%, #ffc83b 75%, #ff9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.creator-mode .hidden-key-toast {
  color: #ffc83b;
  border-color: rgba(255, 200, 59, 0.4);
  box-shadow: 0 0 25px rgba(255, 200, 59, 0.3);
  font-weight: 600;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Refined Footer Design (High-Craft Typography & Social Nodes)
   ========================================================================== */
.footer {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid var(--footer-border);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-primary);
  opacity: 0.9;
}

.footer-divider {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--social-bg);
  border: 1px solid var(--social-border);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.social-icon-link:hover {
  color: var(--text-primary);
  border-color: var(--social-hover-border);
  background: var(--social-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--glow-accent);
}

.social-icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .gb-col-12.gb-col-md-auto {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .wrapper, .gb-container {
    padding: 16px 20px 36px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .sps-parkingpage__tools {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .sps-parkingpage__faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
