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

:root {
    --bg-color: #fff;
    --text-color: #333;
    --secondary-text: #666;
    --header-bg: #fff;
    --header-shadow: rgba(0,0,0,0.1);
    --section-bg: #f8f9fa;
    --plan-bg: #f8f9fa;
    --border-color: #ddd;
    --footer-bg: #333;
    --footer-text: #fff;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e4e4e4;
    --secondary-text: #b0b0b0;
    --header-bg: #222;
    --header-shadow: rgba(0,0,0,0.5);
    --section-bg: #242424;
    --plan-bg: #242424;
    --border-color: #444;
    --footer-bg: #111;
    --footer-text: #e4e4e4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

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

nav ul li a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem;
}

nav a:hover {
    color: #667eea;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(0);
    border-color: #667eea;
}

body.dark-mode .theme-toggle .sun {
    display: none;
}

body:not(.dark-mode) .theme-toggle .moon {
    display: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    background: linear-gradient(135deg, #4c5fd5 0%, #5a3a7a 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta:hover {
    transform: translateY(-2px);
}

section {
    padding: 4rem 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--secondary-text);
}

.plan {
    background: var(--plan-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s, background-color 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #333;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
}

.plan ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.plan ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.plan.featured ul li:before {
    color: #ffd700;
}

.btn {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #5568d3;
}

.plan.featured .btn {
    background: #fff;
    color: #667eea;
}

#waitlist {
    text-align: center;
    background: var(--section-bg);
    padding: 4rem 2rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

#waitlist p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    align-items: stretch;
}

input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

button:hover {
    transform: translateY(-2px);
}

#message {
    margin-top: 1rem;
    font-weight: 600;
}

#message.success {
    color: #28a745;
}

#message.error {
    color: #dc3545;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem;
    margin-top: 4rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }

    .theme-toggle {
        order: 3;
    }

    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        padding-top: 80px;
        flex-direction: column;
        background: var(--header-bg);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px var(--header-shadow);
        gap: 0;
        order: 4;
        z-index: 99;
    }

    nav ul.active {
        left: 0;
    }

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

    h2 {
        font-size: 2rem;
    }

    form {
        flex-direction: column;
        padding: 0 1rem;
        align-items: center;
    }

    form input[type="email"] {
        width: 100%;
    }

    form button {
        width: 100%;
        max-width: 300px;
    }

    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
}