/* Base Variables - Light Theme */
:root {
  --color-primary: #2563EB;
  --color-secondary: #FFD700;
  --color-accent: #FF3366;
  --color-success: #00FF66;
  --color-dark: #1A1A1A;
  --color-white: #FFFFFF;

  --bg-light: #F8F9FA;
  --bg-gray: #F3F4F6;
  --bg-yellow: #FFF9C4;
  --bg-green: #E8F5E9;

  /* Theme-aware tokens */
  --bg-body: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-surface-alt: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-navbar: #FFFFFF;
  --bg-footer: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-visual: #E5E7EB;
  --bg-case-img: #D1D5DB;

  --text-primary: #1A1A1A;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;

  --border-color: #000000;
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-light: rgba(0, 0, 0, 0.1);

  --shadow-brutal: 4px 4px 0px 0px var(--border-color);
  --shadow-brutal-hover: 6px 6px 0px 0px var(--border-color);
  --shadow-btn: 3px 3px 0px 0px var(--border-color);
  --shadow-btn-hover: 5px 5px 0px 0px var(--border-color);

  --card-yellow: #FEF9C3;
  --card-green: #D1FAE5;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --border-brutal: 3px solid var(--border-color);
  --border-brutal-thin: 2px solid var(--border-color);
  --radius-sm: 4px;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-body: #0F0F0F;
  --bg-surface: #181818;
  --bg-surface-alt: #1E1E1E;
  --bg-card: #1E1E1E;
  --bg-navbar: #141414;
  --bg-footer: #141414;
  --bg-input: #252525;
  --bg-visual: #2A2A2A;
  --bg-case-img: #333333;

  --text-primary: #F0F0F0;
  --text-secondary: #BFBFBF;
  --text-muted: #999999;
  --text-faint: #777777;

  --border-color: #F0F0F0;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  --card-yellow: #3D3520;
  --card-green: #1A3328;

  --color-primary: #5B8DEF;
  --color-secondary: #FFD700;
  --color-accent: #FF5C8A;
  --color-success: #00FF66;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.bg-light {
  background-color: var(--bg-surface);
}

.bg-white {
  background-color: var(--bg-card);
}

.bg-gray {
  background-color: var(--bg-surface-alt);
}

.bg-blue {
  background-color: var(--color-primary);
  color: white;
}

.text-blue {
  color: var(--color-primary);
}

/* Neo Brutalist Components */
.neo-brutalist {
  border: var(--border-brutal);
  box-shadow: var(--shadow-brutal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: var(--border-brutal-thin);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-btn-hover);
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--border-color);
}

.btn-blue {
  background-color: var(--color-primary);
  color: white;
}

.btn-pink {
  background-color: var(--color-accent);
  color: white;
}

.btn-yellow {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-yellow {
  background-color: var(--color-secondary);
  color: var(--color-dark);
}

.badge-green {
  background-color: var(--color-success);
  color: var(--color-dark);
}

/* Navbar */
.navbar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-navbar);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: var(--border-brutal-thin);
  background: var(--bg-card);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
}

.theme-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-btn-hover);
}

.theme-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--border-color);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: var(--border-brutal-thin);
  background: var(--bg-card);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  padding: 0;
  gap: 5px;
  transition: all 0.2s ease;
}

.hamburger:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-btn-hover);
}

.hamburger:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--border-color);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-content {
  flex: 1;
}

.hero-content .badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.waitlist-form {
  display: flex;
  max-width: 450px;
  gap: 16px;
}

.neo-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
  background-color: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Hero Visual */
.hero-visual {
  flex: 1;
  position: relative;
}

.visual-wrapper {
  background-color: var(--bg-visual);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-status-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  padding: 10px 16px;
  z-index: 10;
  font-size: 0.8rem;
}

/* Steps Section */
.steps-section {
  padding: 100px 0;
  border-top: var(--border-brutal-thin);
  border-bottom: var(--border-brutal-thin);
}

.section-header {
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  padding: 40px 32px;
  border-radius: 2px;
}

.card-white {
  background-color: var(--bg-card);
}

.card-yellow {
  background-color: var(--card-yellow);
}

.card-green {
  background-color: var(--card-green);
}

.step-icon {
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 16px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Use Cases Section */
.use-cases-section {
  padding: 100px 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-img-wrapper {
  aspect-ratio: 16/9;
  margin-bottom: 24px;
  overflow: hidden;
  background-color: var(--bg-case-img);
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.case-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-light);
  transition: background-color 0.3s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

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

.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.social-icons a {
  color: var(--text-faint);
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--text-primary);
}

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

/* ===================== */
/* Responsive Breakpoints */
/* ===================== */

/* Tablet */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .waitlist-form {
    margin: 0 auto;
  }

  .steps-grid,
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-navbar);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
    z-index: 200;
  }

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

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.visible {
    display: block;
    opacity: 1;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-form .neo-btn {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .steps-section,
  .use-cases-section {
    padding: 60px 0;
  }

  .steps-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 28px 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-right,
  .social-icons {
    text-align: center;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .steps-section,
  .use-cases-section {
    padding: 48px 0;
  }

  .step-card {
    padding: 24px 20px;
  }

  .step-card h3 {
    font-size: 1.25rem;
  }
}