/* CSS Variables */
:root {
    color-scheme: light;
    --color-bg-main: #f3f3f3;
    --color-bg-section: #ebebeb;
    --color-bg-card: rgba(255, 255, 255, 0.86);
    --color-band-bg: rgba(234, 238, 245, 0.66);
    --color-accent: #0e639c;
    --color-accent2: #1177bb;
    --color-accent-soft: rgba(14, 99, 156, 0.16);
    --color-text-main: #1f2328;
    --color-text-secondary: #3b4654;
    --color-text-tertiary: #5a6775;
    --color-text-muted: #707d8b;
    --color-card-border: rgba(111, 132, 154, 0.3);
    --color-card-border-hover: rgba(17, 119, 187, 0.42);
    --color-footer-bg: rgba(234, 234, 234, 0.88);
    --color-button-text: #f7fbff;
    --header-bg: rgba(243, 243, 243, 0.88);
    --header-bg-solid: rgba(243, 243, 243, 0.97);
    --page-gradient:
        radial-gradient(circle at 8% 8%, rgba(0, 120, 212, 0.12), transparent 28%),
        radial-gradient(circle at 92% 16%, rgba(14, 99, 156, 0.1), transparent 26%),
        linear-gradient(180deg, #f3f3f3 0%, #ececec 52%, #e6e6e6 100%);
    --radius-card: 16px;
    --shadow-card: 0 10px 30px rgba(37, 51, 66, 0.1);
    --shadow-card-hover: 0 18px 42px rgba(15, 56, 88, 0.18);
    --section-padding: 100px 0;
    --container-max-width: 1200px;
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --color-bg-main: #1e1e1e;
    --color-bg-section: #252526;
    --color-bg-card: rgba(43, 43, 43, 0.84);
    --color-band-bg: rgba(35, 35, 35, 0.78);
    --color-accent: #4fc1ff;
    --color-accent2: #3794ff;
    --color-accent-soft: rgba(79, 193, 255, 0.18);
    --color-text-main: #e6edf3;
    --color-text-secondary: #c1cad4;
    --color-text-tertiary: #9da8b4;
    --color-text-muted: #7d8893;
    --color-card-border: rgba(143, 157, 171, 0.24);
    --color-card-border-hover: rgba(79, 193, 255, 0.46);
    --color-footer-bg: rgba(24, 24, 24, 0.9);
    --color-button-text: #08111a;
    --header-bg: rgba(30, 30, 30, 0.84);
    --header-bg-solid: rgba(30, 30, 30, 0.97);
    --page-gradient:
        radial-gradient(circle at 8% 8%, rgba(79, 193, 255, 0.16), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(55, 148, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #1e1e1e 0%, #202225 48%, #1b1d20 100%);
    --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.22);
    --shadow-card-hover: 0 20px 46px rgba(79, 193, 255, 0.18);
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    background-image: var(--page-gradient);
    overflow-x: hidden;
    transition: background-color 0.35s ease, color 0.35s ease;
}

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

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-card-border);
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.logo {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.1rem;
    margin-left: auto;
    margin-right: 0.35rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.theme-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--color-card-border);
    background: var(--color-bg-card);
    color: var(--color-text-main);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.theme-toggle:hover {
    border-color: var(--color-card-border-hover);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.theme-toggle-icon {
    display: none;
}

.theme-toggle[data-theme-preference='light'] .theme-toggle-icon-light,
.theme-toggle[data-theme-preference='dark'] .theme-toggle-icon-dark,
.theme-toggle[data-theme-preference='auto'] .theme-toggle-icon-system {
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ── */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent2) 100%);
    color: var(--color-button-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.cta-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

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

/* ── Section Shared ── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Hero ── */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--color-bg-section) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-card-border);
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text p {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-placeholder {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.placeholder-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ── Features ── */
.features {
    padding: var(--section-padding);
    background: var(--color-band-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

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

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

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── How It Works / Architecture ── */
.how-it-works {
    padding: var(--section-padding);
}

.architecture {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.arch-step {
    flex: 1;
    text-align: center;
    position: relative;
}

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

.arch-step h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.arch-step p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.arch-connector {
    position: absolute;
    top: 1.8rem;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: var(--color-card-border);
}

.arch-step:last-child .arch-connector { display: none; }

/* ── Screenshots ── */
.screenshots {
    padding: var(--section-padding);
    background: var(--color-band-bg);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.screenshot-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-card-border-hover);
    box-shadow: var(--shadow-card-hover);
}

.screenshot-card img {
    width: 100%;
    display: block;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 10;
    background: var(--color-bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.screenshot-info {
    padding: 1.25rem;
}

.screenshot-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.screenshot-info p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ── Technical Highlights ── */
.tech-highlights {
    padding: var(--section-padding);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-item {
    padding: 1.5rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-card);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.tech-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Requirements ── */
.requirements {
    padding: var(--section-padding);
    background: var(--color-band-bg);
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.req-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

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

.req-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.req-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ── Get It ── */
.get-it {
    padding: var(--section-padding);
}

.get-it-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.store-badge {
    margin-bottom: 2rem;
}

.store-placeholder {
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--color-bg-card);
    border: 2px solid var(--color-card-border);
    border-radius: 16px;
    padding: 1.5rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.coming-soon {
    color: var(--color-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.get-it-note {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Footer ── */
footer {
    padding: 50px 0 30px;
    background: var(--color-footer-bg);
    border-top: 1px solid var(--color-card-border);
    backdrop-filter: blur(16px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.footer-section p, .footer-section a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.footer-section a:hover { color: var(--color-accent); }

.footer-credit {
    margin-top: 0.5rem;
    font-size: 0.85rem !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-card-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-company {
    margin-top: 1rem;
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem !important;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .req-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 0.85rem; }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { max-width: none; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-image { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg-solid);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--color-card-border);
    }
    .nav-links.nav-open { display: flex; }
    .nav-toggle { display: block; }
    .nav-actions {
        margin-left: auto;
        margin-right: 3.25rem;
    }
    .nav-actions .cta-button { display: none; }
    .theme-toggle { width: 2.2rem; height: 2.2rem; }

    .features-grid,
    .screenshot-grid,
    .tech-grid { grid-template-columns: 1fr; }
    .req-grid { grid-template-columns: repeat(2, 1fr); }

    .architecture {
        flex-direction: column;
        align-items: center;
    }
    .arch-connector {
        display: none;
    }

    .section-header h2 { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .container { padding: 0 15px; }
    .req-grid { grid-template-columns: 1fr; }
    .nav-actions {
        margin-right: 3rem;
    }
    .theme-toggle { width: 2.1rem; height: 2.1rem; }
}
