:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-bg-dark: #111111;
    --color-text: #1d1d1f;
    --color-text-light: #86868b;
    --color-text-inverse: #f5f5f7;
    --color-primary: #000000;
    --color-accent: #2997ff;
    /* Apple-like blue accent */
    --color-border: #d2d2d7;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

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

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

.mt-medium {
    margin-top: var(--spacing-md);
}

.mt-large {
    margin-top: var(--spacing-lg);
}

.mb-medium {
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

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

.btn-outline {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

/* Hero */
.hero-section {
    padding-top: calc(var(--spacing-xl) + 40px);
    min-height: auto;
    display: block;
    padding-bottom: var(--spacing-xl);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    margin: 0 auto var(--spacing-md);
    max-width: 700px;
    color: var(--color-text-light);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.trust-line {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light);
}

.hero-visual {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Placeholders */
.img-placeholder {
    background-color: #e5e5e5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
    text-align: center;
    padding: var(--spacing-md);
    border: 2px dashed #ccc;
}

/* Problem Section */
.problem-section {
    background-color: var(--color-bg-alt);
}

.problem-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.problem-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.problem-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}

.problem-conclusion {
    font-size: 1.25rem;
    margin-top: var(--spacing-md);
}

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.feature-item i {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.step-card {
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-xs);
}

/* Design Section */
.dark-theme {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.dark-theme h2,
.dark-theme p,
.dark-theme li {
    color: var(--color-text-inverse);
}

.dark-theme .img-placeholder {
    background-color: #222;
    border-color: #444;
    color: #666;
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: center;
}

.spec-list li {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-sm);
}

/* Software Section */
.software-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.feature-list {
    margin-top: var(--spacing-md);
}

.feature {
    margin-bottom: var(--spacing-md);
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.use-case-card {
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform 0.2s;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Privacy */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-primary);
}

/* Specs */
.specs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.spec-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

/* Kickstarter */
.kickstarter-section {
    background: linear-gradient(to bottom, var(--color-bg) 0%, #eefbf7 100%);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tier-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.tier-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tier-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.tier-discount {
    color: #059669;
    /* Green */
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.tier-features {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.tier-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Roadmap */
.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100px;
}

.marker {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--color-border);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
}

.timeline-item.done .marker {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.timeline-item.active .marker {
    border-color: var(--color-primary);
}

.content {
    font-size: 0.8rem;
    font-weight: 500;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.faq-item {
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
}

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

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-container,
    .problem-container,
    .solution-grid,
    .design-grid,
    .software-container,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-sub {
        margin: 0 auto var(--spacing-md);
    }

    .hero-cta {
        justify-content: center;
    }

    .nav-links {
        display: none;
        /* Simple hide for now, would add hamburger in full implementation */
    }

    .timeline {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        left: 10px;
        top: 0;
    }

    .timeline-item {
        display: flex;
        width: 100%;
        text-align: left;
        gap: var(--spacing-sm);
    }

    .marker {
        margin: 0;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grids */
.steps-grid .step-card:nth-child(2) {
    transition-delay: 0.1s;
}

.steps-grid .step-card:nth-child(3) {
    transition-delay: 0.2s;
}

.steps-grid .step-card:nth-child(4) {
    transition-delay: 0.3s;
}

.use-cases-grid .use-case-card:nth-child(2) {
    transition-delay: 0.1s;
}

.use-cases-grid .use-case-card:nth-child(3) {
    transition-delay: 0.2s;
}

.use-cases-grid .use-case-card:nth-child(4) {
    transition-delay: 0.3s;
}

.privacy-grid .privacy-item:nth-child(2) {
    transition-delay: 0.1s;
}

.privacy-grid .privacy-item:nth-child(3) {
    transition-delay: 0.2s;
}

.privacy-grid .privacy-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* Lifestyle Section */
.lifestyle-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
}

.lifestyle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.lifestyle-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.lifestyle-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.connection-points {
    list-style: none;
    padding: 0;
}

.connection-points li {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
    position: relative;
}

.connection-points li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.connection-points strong {
    color: var(--color-text);
    display: block;
    margin-bottom: 0.2rem;
}

.connection-points p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .lifestyle-container {
        grid-template-columns: 1fr;
    }

    .lifestyle-visual {
        order: -1;
        /* Image first on mobile */
    }
}

/* Pricing Section */
.pricing-section {
    background-color: var(--color-bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.pricing-card.retail {
    opacity: 0.8;
    background-color: transparent;
    border: 1px dashed var(--color-border);
}

.card-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.save-badge {
    display: inline-block;
    background-color: #e6f4ea;
    color: #1e8e3e;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}


/* Mobile Optimization Overrides */
@media (max-width: 768px) {
    :root {
        /* Reduce spacing on mobile */
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
        /* Reduce side padding */
    }

    section {
        padding: var(--spacing-lg) 0;
        /* Reduce vertical section padding */
    }

    .hero-section {
        padding-top: calc(var(--spacing-lg) + 60px);
        /* Adjust for fixed nav */
        padding-bottom: var(--spacing-lg);
    }

    h1 {
        font-size: 2.5rem;
        /* Keep readable but not huge */
    }

    h2 {
        font-size: 2rem;
    }

    /* Pricing Card Optimization */
    .pricing-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: var(--spacing-md);
    }

    .pricing-card {
        padding: var(--spacing-md);
        /* Reduce padding from 4rem to 2rem */
    }

    .price {
        font-size: 2rem;
        /* Slightly smaller price text */
    }

    /* FAQ Optimization */
    .faq-grid {
        gap: var(--spacing-sm);
    }

    .faq-item {
        padding: var(--spacing-sm);
    }

    /* Ensure video and images are responsive */
    video,
    img {
        max-width: 100%;
        height: auto;
    }

    /* Adjust buttons for easier tapping */
    .btn {
        width: 100%;
        /* Full width buttons on mobile often work better */
        justify-content: center;
        padding: 14px 24px;
        /* Larger touch target */
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

.card-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.5;
}

.card-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.card-features li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.card-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

/* Why Pre-order */
.why-preorder {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.benefit-item {
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.benefit-item h4 {
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

.pricing-cta h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.2rem;
}

/* Comparison Table Styles */
.comparison-section {
    background-color: var(--color-bg);
    padding-bottom: var(--spacing-xl);
}

.comparison-visual {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.comparison-table-container {
    overflow-x: auto;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-bg-alt);
    min-width: 600px;
    /* Ensure it doesn't squish too much on mobile */
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background-color: var(--color-surface);
    font-weight: 600;
    color: var(--color-text);
    position: sticky;
    top: 0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--color-text-light);
    width: 25%;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    width: 37.5%;
}

@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
}