/* ==========================================================
   CAPTIVEWIFI.AI — CORE DESIGN SYSTEM
   Modern, Sleek, Linear-Style, Purple Brand
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Type */
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Layout */
  --wrap: 1240px;
  --wrap-wide: 1400px;
  --gutter: 28px;

  /* Purples */
  --purple: #8B5CF6;
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;
  --purple-700: #6D28D9;
  --purple-900: #1E1B4B;
  --purple-glow: rgba(139, 92, 246, 0.12);
  --purple-glow-soft: rgba(139, 92, 246, 0.04);

  /* Accents */
  --green: #10B981;
  --amber: #F59E0B;
  --indigo: #6366F1;

  /* Surfaces (light theme) */
  --bg: #FFFFFF;
  --bg-1: #F9FAFB;
  --bg-2: #F3F4F6;
  --bg-3: #E5E7EB;
  --bg-4: #D1D5DB;

  /* Lines */
  --line: rgba(15, 23, 42, 0.06);
  --line-2: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.14);

  /* Text */
  --fg: #0F172A;        /* Dark Slate */
  --fg-2: #334155;      /* Slate-700 */
  --fg-3: #64748B;      /* Slate-500 */
  --fg-4: #94A3B8;      /* Slate-400 */

  /* Shadows */
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --phone-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --contact-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);

  /* Header specific */
  --header-bg: rgba(255, 255, 255, 0.7);
  --header-bg-scrolled: rgba(255, 255, 255, 0.95);
  --header-border: var(--line);

  /* Buttons ghost */
  --btn-ghost-hover-bg: rgba(15, 23, 42, 0.03);

  /* Grid lines */
  --grid-line: rgba(15, 23, 42, 0.03);
}

:root.dark {
  /* Purples */
  --purple-glow: rgba(139, 92, 246, 0.35);
  --purple-glow-soft: rgba(139, 92, 246, 0.12);

  /* Surfaces (dark linear-style) */
  --bg: #0A0A0C;
  --bg-1: #0F0F12;
  --bg-2: #141419;
  --bg-3: #1C1C22;
  --bg-4: #25252D;

  /* Lines */
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.14);

  /* Text */
  --fg: #F5F5F7;
  --fg-2: #C8C8CE;
  --fg-3: #8B8B94;
  --fg-4: #787880;

  /* Shadows */
  --card-shadow: none;
  --card-hover-shadow: 0 12px 30px -10px rgba(0,0,0,0.5), 0 0 1px 1px rgba(139, 92, 246, 0.1) inset;
  --phone-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05), 0 0 40px 0 var(--purple-glow-soft);
  --contact-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);

  /* Header specific */
  --header-bg: rgba(10, 10, 12, 0.4);
  --header-bg-scrolled: rgba(10, 10, 12, 0.85);
  --header-border: rgba(255, 255, 255, 0.08);

  /* Buttons ghost */
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.02);

  /* Grid lines */
  --grid-line: rgba(255, 255, 255, 0.02);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: clip;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

/* Grid & Glow layout helpers */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
}

.purple-glow-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--purple-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Containers */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

em {
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
}

p {
  color: var(--fg-2);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Global Navigation Header */
header#nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s var(--ease);
}

header#nav-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom: 1px solid var(--header-border);
}

header#nav-header.scrolled .nav-container {
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: height 0.3s var(--ease), filter 0.3s var(--ease);
}

header#nav-header.scrolled .logo-img {
  height: 32px;
}

/* Invert logo text on light background while preserving purple hues */
html:not(.dark) .logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(0.15) contrast(1.1);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 15px var(--purple-glow);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
  fill: currentColor;
}

.logo span {
  font-weight: 400;
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
}

.btn-ghost {
  color: var(--fg-2);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--btn-ghost-hover-bg);
}

.btn-solid {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px -6px var(--purple-glow);
}

.btn-solid:hover {
  background: var(--purple-600);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px var(--purple-glow);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--r-lg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg-2);
  margin: 4px 0;
  transition: all 0.3s var(--ease);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 40px var(--gutter);
  gap: 40px;
  transition: right 0.4s var(--ease);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--fg-3);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
}

.mobile-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-2);
}

.mobile-links a:hover,
.mobile-links a.active {
  color: var(--purple);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 99px;
  color: var(--purple);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--purple);
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero .hero-sub {
  font-size: 18px;
  color: var(--fg-2);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
  font-family: var(--mono);
}

.meta-item svg {
  color: var(--purple);
}

/* Feature Showcase Grid */
.feature-showcase {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-head .kicker {
  font-family: var(--mono);
  color: var(--purple);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}

.section-head h2 {
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--purple);
  margin-bottom: 24px;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 21px;
}

.feature-card p {
  color: var(--fg-3);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Zig Zag Layouts */
.zigzag-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.zigzag-section:nth-of-type(even) {
  background: var(--bg-1);
}

.zigzag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.zigzag-image-panel {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  box-shadow: var(--card-hover-shadow);
}

.zigzag-image-panel .glow-spot {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 65%);
}

.zigzag-features-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zigzag-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-2);
}

.zigzag-features-list li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Phone Mockup on Hero */
.hero-phone-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

.phone-shell {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: #000;
  border-radius: 40px;
  border: 12px solid #1a1a1f;
  box-shadow: var(--phone-shadow);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0f0f13;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 14px;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #1a1a1f;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.splash-preview {
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #121217 0%, #08080a 100%);
}

.splash-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
}

.splash-logo-circle {
  width: 18px;
  height: 18px;
  background: var(--purple);
  border-radius: 4px;
}

.splash-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.splash-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.splash-promo-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.promo-kicker {
  font-family: var(--mono);
  color: var(--purple);
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.promo-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.splash-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  text-align: left;
}

.splash-btn {
  width: 100%;
  padding: 12px;
  background: var(--purple);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Interactive Gamification Widget Mockup */
.gamification-stage {
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--contact-shadow);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.gamification-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.gamification-sub {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 24px;
}

.scratch-card {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
}

.scratch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.5s var(--ease);
}

.scratch-overlay svg {
  margin-bottom: 10px;
  animation: bounce 1.5s infinite;
}

.scratch-prize {
  color: #fff;
}

.scratch-prize-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
  text-shadow: 0 0 15px var(--purple-glow);
}

/* Pricing Grid Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
  align-items: flex-start;
}

.pricing-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--purple);
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, var(--bg-1) 70%);
  box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
}

.popular-badge {
  position: absolute;
  top: 24px;
  right: 40px;
  background: var(--purple);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  border-radius: 99px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.pricing-desc {
  font-size: 14.5px;
  color: var(--fg-3);
  margin-bottom: 32px;
  min-height: 48px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
  font-weight: 700;
}

.price-currency {
  font-size: 28px;
  color: var(--fg-2);
}

.price-val {
  font-size: 52px;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 14px;
  color: var(--fg-4);
  font-weight: 400;
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: 40px;
}

.pricing-features-head {
  font-size: 13px;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--fg-3);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--fg-2);
}

.pricing-features-list li svg {
  color: var(--purple);
  flex-shrink: 0;
}

/* Call to Action Contact Section */
.contact-section {
  padding: 120px 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 70%), var(--bg-1);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.contact-section .bg-grid {
  opacity: 0.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-info {
  max-width: 560px;
}

.contact-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 17px;
  color: var(--fg-2);
  margin-bottom: 36px;
}

.contact-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--fg-2);
}

.contact-bullets li svg {
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card-wrap {
  position: relative;
  width: 100%;
}

.contact-card-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--purple), transparent, var(--purple));
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.contact-card {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--contact-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form.hidden {
  display: none;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-2);
}

.contact-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  transition: all 0.2s var(--ease);
}

.contact-input::placeholder {
  color: var(--fg-4);
}

.contact-input:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--bg-4);
  box-shadow: 0 0 0 3px var(--purple-glow-soft);
}

.contact-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.4s var(--ease);
}

.contact-success.active {
  display: flex;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.contact-success h3 {
  font-size: 24px;
  color: var(--fg);
  margin-bottom: 12px;
}

.contact-success p {
  color: var(--fg-3);
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .contact-info {
    margin: 0 auto;
  }
  .contact-bullets {
    align-items: center;
    text-align: left;
  }
  .contact-card-wrap {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Footer */
footer {
  background: var(--bg-1);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-3);
  max-width: 320px;
}

.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: var(--fg-3);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col ul a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--fg-3);
  transition: color 0.2s var(--ease);
}

.footer-col ul a:hover {
  color: var(--purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--fg-4);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--fg-4);
  transition: color 0.2s var(--ease);
}

.footer-socials a:hover {
  color: var(--purple);
}

/* Animations */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-copy {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .zigzag-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .zigzag-image-panel {
    order: 2;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .zigzag-section:nth-of-type(even) .zigzag-image-panel {
    order: 2;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--fg-2);
  transition: all 0.2s var(--ease);
}

.theme-toggle-btn:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--btn-ghost-hover-bg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toggle visibility based on dark mode class on html */
html:not(.dark) .theme-toggle-btn .sun-icon {
  display: none;
}

html.dark .theme-toggle-btn .moon-icon {
  display: none;
}

