:root {
    /* Colors - Light Theme (default) */
    --background-primary: #fafafa;
    --text-logo: rgba(19, 19, 19, 0.15);
    --text-heading: rgba(27, 34, 26, 0.5);
    --text-body: rgba(0, 0, 0, 0.5);
    --text-muted: rgba(0, 0, 0, 0.4);
    --text-subtle: rgba(0, 0, 0, 0.25);

    --border-default: rgba(0, 0, 0, 0.3);
    --border-subtle: rgba(50, 50, 50, 0.5);
    --border-faint: rgba(0, 0, 0, 0.08);

    --accent-primary: #6366f1;

    /* Card backgrounds */
    --card-bg: rgba(255, 255, 255, 0.4);
    --card-bg-hover: rgba(255, 255, 255, 0.6);
    --privacy-bg: rgba(0, 0, 0, 0.02);
    --tos-tldr-bg: rgba(0, 0, 0, 0.03);
    --button-bg: rgba(0, 0, 0, 0.04);
    --button-bg-hover: rgba(0, 0, 0, 0.08);
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --close-hover-bg: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-logo: "Kohinoor Devanagari", system-ui, -apple-system, sans-serif;
    --font-body:
        system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;

    /* Spacing & Borders */
    --radius-small: 7px;
    --radius-medium: 10px;
    --radius-large: 13px;

    /* Effects */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --top-fade: linear-gradient(
        180deg,
        #fafafa 50.299%,
        rgba(255, 255, 255, 0) 83.617%
    );
}

/* Dark Theme */
[data-theme="dark"] {
    --background-primary: #121212;
    --text-logo: rgba(255, 255, 255, 0.12);
    --text-heading: rgba(255, 255, 255, 0.7);
    --text-body: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-subtle: rgba(255, 255, 255, 0.3);

    --border-default: rgba(255, 255, 255, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.25);
    --border-faint: rgba(255, 255, 255, 0.08);

    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --privacy-bg: rgba(255, 255, 255, 0.03);
    --tos-tldr-bg: rgba(255, 255, 255, 0.05);
    --button-bg: rgba(255, 255, 255, 0.06);
    --button-bg-hover: rgba(255, 255, 255, 0.1);
    --modal-overlay: rgba(0, 0, 0, 0.9);
    --close-hover-bg: rgba(255, 255, 255, 0.1);

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --top-fade: linear-gradient(
        180deg,
        #121212 50.299%,
        rgba(18, 18, 18, 0) 83.617%
    );
}

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

html {
    transition: background-color 0.3s ease;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-primary);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Top Fade Effect */
.top-fade {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--top-fade);
    pointer-events: none;
    z-index: 100;
}

header {
    padding: 120px 0 60px;
    text-align: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    opacity: 0.15;
    margin-bottom: 20px;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo-icon {
    filter: invert(1);
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 72px;
    font-weight: 400;
    color: var(--text-logo);
    line-height: 1;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 20px;
    color: var(--text-heading);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto 16px;
}

.privacy-mention {
    font-size: 14px;
    color: var(--text-subtle);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Demo Video */
.demo-video-container {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.demo-video {
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius-large);
    border: 1px solid var(--border-faint);
    box-shadow: var(--shadow-card-hover);
}

/* Download Section */
.hero-actions {
    text-align: center;
    margin-bottom: 100px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--button-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-small);
    color: var(--text-heading);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.download-button:hover {
    background: var(--button-bg-hover);
    transform: translateY(-1px);
}

.system-req {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.tos-agreement {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-subtle);
}

.tos-link {
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}

/* Sections */
section {
    margin-bottom: 120px;
}

h2 {
    font-size: 32px;
    color: var(--text-heading);
    font-weight: 500;
    margin-bottom: 48px;
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 17px;
    color: var(--text-body);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-large);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    background: var(--card-bg-hover);
}

.feature-icon {
    color: var(--text-heading);
    margin-bottom: 20px;
    opacity: 0.6;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Why Lupa - Clean List */
.comparison-list {
    max-width: 600px;
    margin: 0 auto;
}

.comparison-item {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-faint);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    width: 120px;
    flex-shrink: 0;
    padding-top: 4px;
}

.comparison-content h3 {
    font-size: 18px;
    color: var(--text-heading);
    margin-bottom: 8px;
    font-weight: 500;
}

.comparison-content p {
    font-size: 15px;
    color: var(--text-body);
}

/* Roadmap Timeline */
.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border-subtle);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -36.5px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--background-primary);
    border: 1px solid var(--border-default);
}

.timeline-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.timeline-content h3 {
    font-size: 17px;
    color: var(--text-heading);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-body);
}

/* Privacy Banner */
.privacy-highlight {
    text-align: center;
    padding: 60px 40px;
    background: var(--privacy-bg);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-faint);
}

.privacy-highlight i {
    margin-bottom: 24px;
    opacity: 0.4;
}

.privacy-highlight h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.privacy-highlight p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-body);
}

/* Support Section */
.support-notice {
    max-width: 500px;
    margin: 40px auto 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.support-notice a {
    color: var(--text-heading);
    text-decoration: underline;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--background-primary);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--radius-large);
    padding: 40px;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-modal);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--close-hover-bg);
}

.tos-body {
    font-size: 14px;
    color: var(--text-body);
}

.tos-body h2 {
    font-size: 20px;
    text-align: left;
    margin: 32px 0 16px;
}

.tos-tldr {
    background: var(--tos-tldr-bg);
    padding: 24px;
    border-radius: var(--radius-small);
    margin-bottom: 32px;
}

.tos-tldr h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.tos-tldr ul {
    list-style: none;
}

.tos-tldr li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tos-tldr li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.5;
}

/* Footer */
footer {
    padding: 80px 0 100px;
    text-align: center;
}

.maker-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.maker-link:hover {
    color: var(--text-heading);
}

.maker-link strong {
    font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 101;
    background: var(--button-bg);
    border: 1px solid var(--border-faint);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    color: var(--text-muted);
}

.theme-toggle:hover {
    background: var(--button-bg-hover);
    transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Responsive */
@media (max-width: 640px) {
    .logo-text {
        font-size: 56px;
    }
    header {
        padding: 80px 0 60px;
    }
    .comparison-item {
        flex-direction: column;
        gap: 8px;
    }
    .comparison-label {
        width: auto;
    }
    .modal-content {
        padding: 30px 20px;
        width: 90%;
    }
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}
