/* Design Tokens - Updated v2 */
:root {
    --bg-gradient: linear-gradient(135deg, #a8e6cf 0%, #6dd5a3 25%, #3cba7e 50%, #c4f0db 75%, #e8f8f0 100%);
    --surface: rgba(255, 255, 255, 0.97);
    --surface-2: rgba(255, 255, 255, 0.88);
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(60, 186, 126, 0.22);
    --text: #0a1f14;
    --text-2: #1e4032;
    --muted: #4a6b5a;
    --border: rgba(60, 186, 126, 0.18);
    --accent: #1fa861;
    --accent-hover: #17814d;
    --shadow: rgba(10, 31, 20, 0.1);
    --shadow-2: rgba(10, 31, 20, 0.2);
    --radius: 12px;
    --maxw: 1100px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: linear-gradient(135deg, #0c1e15 0%, #112a1c 50%, #0e2318 100%);
        --surface: rgba(20, 35, 26, 0.92);
        --surface-2: rgba(20, 35, 26, 0.78);
        --glass-bg: rgba(18, 32, 24, 0.88);
        --glass-border: rgba(60, 186, 126, 0.25);
        --text: #f0faf5;
        --text-2: #c8e6d7;
        --muted: #8eb8a0;
        --border: rgba(60, 186, 126, 0.28);
        --accent: #3cba7e;
        --accent-hover: #4fd094;
        --shadow: rgba(0, 0, 0, 0.45);
        --shadow-2: rgba(0, 0, 0, 0.65);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-gradient);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(60, 186, 126, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(109, 213, 163, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 230, 207, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.brand {
    text-decoration: none;
    display: block;
    line-height: 0;
}

.brand img {
    height: 48px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

nav a:focus-visible,
.brand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.75rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-2);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.015em;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.25rem;
    color: var(--text);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Products Section */
.products {
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 12px 32px var(--shadow-2);
    transform: translateY(-6px);
    border-color: var(--accent);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.card-description {
    color: var(--text-2);
    line-height: 1.6;
}

.tool-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-list li {
    padding: 0.75rem 0;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.tool-list li:last-child {
    border-bottom: none;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

/* How it Works Section */
.how-it-works {
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.steps {
    list-style: none;
    counter-reset: step-counter;
    max-width: 700px;
    margin: 0 auto;
}

.steps li {
    counter-increment: step-counter;
    margin-bottom: 2.5rem;
    padding-left: 3.5rem;
    position: relative;
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--accent);
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.steps strong {
    display: block;
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.steps p {
    color: var(--text-2);
    line-height: 1.7;
}

/* About Section */
.about {
    background: transparent;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-2);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact p {
    text-align: center;
    color: var(--text-2);
    font-size: 1.1rem;
}

.contact .note {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: var(--text);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .brand img {
        height: 40px;
    }

    nav {
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtext {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    section {
        padding: 3.5rem 0;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

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

    section h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}
