:root {
  /* Default: Light Theme */
  --color-bg: #f8fafc;
  --color-bg-alt: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-accent: #00997a; /* Darker green/cyan for visibility on light bg */
  --color-accent-hover: #007a61;
  --color-hype: #8b32cc; /* Darker purple */
  --color-border: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

[data-theme="dark"] {
  /* Dark Theme */
  --color-bg: #0b132b;
  --color-bg-alt: #1c2541;
  --color-text: #ffffff;
  --color-text-muted: #a0aec0;
  --color-accent: #00ffcc;
  --color-accent-hover: #00e6b8;
  --color-hype: #b142ff;
  --color-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before, body::after {
  content: '';
  position: fixed;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.15;
  animation: float-blob 20s infinite alternate ease-in-out;
}

body::before {
  background: var(--color-hype);
  top: -20%;
  left: -10%;
}

body::after {
  background: var(--color-accent);
  bottom: -20%;
  right: -10%;
  animation-delay: -10s;
  animation-direction: alternate-reverse;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15%, 25%) scale(1.1); }
  66% { transform: translate(-10%, 15%) scale(0.9); }
  100% { transform: translate(20%, -10%) scale(1.2); }
}

/* Floating Background Shapes */
.floating-shapes {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  color: var(--color-text-muted);
  opacity: 0.08; /* Very subtle */
  font-weight: 900;
  font-family: monospace;
  animation: float-shape 25s infinite linear;
}
.shape-1 { top: 15%; left: 8%; font-size: 4rem; animation-duration: 35s; }
.shape-2 { top: 75%; left: 85%; font-size: 5rem; animation-direction: reverse; animation-duration: 40s; opacity: 0.05; }
.shape-3 { top: 40%; left: 90%; font-size: 3rem; animation-duration: 30s; }
.shape-4 { top: 85%; left: 12%; font-size: 4.5rem; animation-direction: reverse; animation-duration: 45s; }
.shape-5 { top: 25%; left: 75%; font-size: 3.5rem; animation-duration: 28s; }
.shape-6 { top: 60%; left: 5%; font-size: 4rem; animation-duration: 38s; opacity: 0.04; }

@keyframes float-shape {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-80px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-md); }
.mt-2 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }

/* Buttons (Touch-friendly sizes) */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn-hype {
  background: linear-gradient(135deg, var(--color-accent), var(--color-hype));
  color: white;
  box-shadow: 0 4px 15px rgba(177, 66, 255, 0.4);
}

.btn-hype:hover {
  box-shadow: 0 6px 20px rgba(177, 66, 255, 0.6);
  transform: translateY(-2px);
  color: #fff !important;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--color-hype), var(--color-accent));
  color: var(--color-bg);
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  font-size: 0.9rem;
}
.announcement-bar a {
  color: var(--color-bg);
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Header */
.site-header {
  background-color: var(--color-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem; /* touch target */
}
.nav-links a:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  padding: var(--spacing-xl) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}
.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards */
.card {
  background-color: var(--color-bg-alt);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
}
.card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

/* Hype Section */
.hype-section {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-hype);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(177, 66, 255, 0.15);
}
.hype-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, var(--color-hype) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}
.hype-content {
  position: relative;
  z-index: 1;
}
.hype-badge {
  display: inline-block;
  background-color: rgba(177, 66, 255, 0.2);
  color: var(--color-hype);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.hype-section h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}
.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: var(--spacing-lg) auto 0;
}
.input {
  flex: 1;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}
.input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-alt);
  padding: var(--spacing-lg) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-xl);
}

/* Floating Theme Toggle */
.theme-toggle-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle-floating:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* CSS Graphics for Redesign */
.css-graphic-hero {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.css-cube {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(177, 66, 255, 0.1);
  border: 2px solid var(--color-hype);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(177, 66, 255, 0.4), inset 0 0 20px rgba(177, 66, 255, 0.2);
  backdrop-filter: blur(5px);
  animation: float 6s ease-in-out infinite;
}
.cube-1 { transform: translateZ(-100px) rotateY(20deg) rotateX(15deg); left: 10%; top: 20%; animation-delay: 0s; }
.cube-2 { width: 160px; height: 160px; background: rgba(0, 255, 204, 0.1); border-color: var(--color-accent); box-shadow: 0 0 30px rgba(0, 255, 204, 0.4), inset 0 0 20px rgba(0, 255, 204, 0.2); transform: translateZ(50px) rotateY(-20deg) rotateX(-10deg); right: 10%; top: 40%; animation-delay: 1.5s; z-index: 2; }
.cube-3 { width: 80px; height: 80px; transform: translateZ(150px) rotateY(40deg); left: 40%; bottom: 10%; animation-delay: 3s; z-index: 3; }
.css-data-line {
  position: absolute;
  width: 150%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: rotate(-15deg);
  opacity: 0.5;
  animation: scan 4s linear infinite;
}
@keyframes float {
  0% { transform: translateY(0) rotateX(10deg); }
  50% { transform: translateY(-30px) rotateX(-10deg); }
  100% { transform: translateY(0) rotateX(10deg); }
}
@keyframes scan {
  0% { top: -20%; }
  100% { top: 120%; }
}

/* CSS Dashboard */
.css-dashboard {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(177, 66, 255, 0.1);
  backdrop-filter: blur(15px);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  width: 100%;
  max-width: 550px;
}
.css-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.dash-header {
  background: rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.dash-dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.dash-dot.red { background: #ff5f56; }
.dash-dot.yellow { background: #ffbd2e; }
.dash-dot.green { background: #27c93f; }
.dash-title { margin-left: 20px; color: var(--color-text-muted); font-size: 0.9rem; font-weight: bold; letter-spacing: 1px; }
.dash-body { padding: 30px; }
.dash-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  margin-bottom: 30px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 10px;
}
.dash-bar {
  width: 15%;
  background: rgba(177, 66, 255, 0.3);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: height 1s ease;
  box-shadow: 0 -5px 15px rgba(177, 66, 255, 0.2);
}
.dash-bar.active {
  background: var(--color-accent);
  box-shadow: 0 -5px 15px rgba(0, 255, 204, 0.5);
}
.dash-metrics {
  display: flex;
  justify-content: space-between;
}
.dash-metric {
  background: var(--color-bg);
  padding: 20px;
  border-radius: var(--radius-md);
  flex: 1;
  margin: 0 10px;
  text-align: center;
}
.dash-metric:first-child { margin-left: 0; }
.dash-metric:last-child { margin-right: 0; border: 1px solid var(--color-hype); }
.dash-metric .value { font-size: 2rem; font-weight: bold; color: var(--color-text); }

.flex-responsive {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column !important;
        text-align: center !important;
        gap: 40px;
    }
    .flex-responsive > div {
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    
    .waitlist-form {
        flex-direction: column;
    }
    
    .hero { padding: 150px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--color-text);
        cursor: pointer;
        padding: 10px;
        margin-left: auto;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .card {
        padding: 1.2rem;
    }
    .card h3 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .css-graphic-hero {
        height: 200px !important;
        transform: scale(0.6);
        transform-origin: top center;
    }
    
    .hype-section {
        padding: 30px 15px !important;
    }
    
    .dash-metrics {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .dash-metric {
        margin: 0 !important;
        padding: 15px !important;
        flex: 1 1 100% !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .pricing-highlight {
        transform: scale(1.05);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
    }
}
