/* CSS Variables & Tokens */
:root {
    --primary-bg: #ffffff;
    --primary-bg-alt: #f8f9fa;
    --accent-color: #8a2be2; /* Ametics Purple */
    --accent-hover: #7b2cbf;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    
    /* Dark Mode variables */
    --dark-bg: #1a1a24;
    --dark-bg-alt: #221e2d;
    --dark-text: #f3f4f6;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 1.2s ease, color 1.2s ease;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
}

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

/* Interactive Canvas */
#mesh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.8s ease;
}

body.dark-mode #mesh-canvas {
    opacity: 0.3;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(26, 26, 36, 0.8);
}

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

.logo-img {
    height: 32px;
}

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

.logo-text span {
    color: var(--accent-color);
}

body.dark-mode .logo-text {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.nav-cta {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

body.dark-mode .nav-cta {
    color: var(--dark-text);
}

.nav-cta:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .hero-subtitle {
    color: #b0b0b0;
}

/* Vision Section */
.vision {
    padding: 8rem 0;
    background-color: var(--primary-bg-alt);
    border-radius: 40px;
    margin: 0 1rem;
}

body.dark-mode .vision {
    background-color: rgba(255, 255, 255, 0.03);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.vision-card {
    background: rgba(138, 43, 226, 0.06); /* Soft elegant purple background */
    border: 1px solid rgba(138, 43, 226, 0.1);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.05); /* Softer tinted shadow */
    transition: var(--transition);
}

body.dark-mode .vision-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

body.dark-mode .vision-card p {
    color: #b0b0b0;
}

/* Teaser Section */
.teaser {
    padding: 12rem 0;
    position: relative;
    overflow: hidden;
}

.teaser-pre {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.teaser-title {
    font-size: clamp(4rem, 8vw, 8rem);
    margin-bottom: 2rem;
    letter-spacing: -3px;
    position: relative;
    z-index: 2;
}

.teaser-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #a0a0a0; /* Always light since this section triggers dark mode */
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138,43,226,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Waitlist Section */
.waitlist {
    padding: 8rem 0;
}

.waitlist h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.waitlist p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

body.dark-mode .waitlist p {
    color: #b0b0b0;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #fff;
}

body.dark-mode .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.5em;
}

.success-text { color: #10b981; }
.error-text { color: #ef4444; }

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    color: var(--text-muted);
}

body.dark-mode .footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #6b7280;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #d1d5db;
    margin: 0;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .vision-card {
        padding: 2rem 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
