/* css/style.css */

:root {
    --bg-body: #0a0a0c;
    --bg-surface: #111116;
    --bg-surface-border: rgba(255,255,255,0.07);
    --text-main: #f0f0f3;
    --text-muted: rgba(240,240,243,0.5);
    --text-faint: rgba(240,240,243,0.28);
    --accent: #0092BD;
    --accent-hover: #007da6;
    --accent-dim: rgba(0, 146, 189, 0.12);
    --border: rgba(255,255,255,0.08);

    --max-width: 1080px;
    --radius: 12px;
    --nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
a { text-decoration: none; color: var(--text-main); transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

main.container {
    flex: 1;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
}

/* ── HEADER / NAV ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    padding: 0 32px;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
a.logo { font-weight: 700; font-size: 1.1rem; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    opacity: 1;
}
.download-link {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
    border: 1px solid rgba(0, 146, 189, 0.35);
    padding: 6px 16px;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s !important;
}
.download-link:hover {
    background: var(--accent-dim);
    border-color: var(--accent) !important;
    opacity: 1 !important;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: opacity 0.2s;
}
.nav-toggle:hover { opacity: 0.6; }

@media (max-width: 640px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(10, 10, 12, 0.97);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-size: 1rem;
        padding: 14px 24px;
        border-radius: 0;
        color: var(--text-muted);
    }
    .download-link {
        border: none !important;
        border-radius: 0 !important;
        padding: 14px 24px !important;
    }
}

/* ── PAGE TITLES ── */
.page-title {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 600;
}

/* ── WHAT'S NEW ── */
.update-entry { margin-bottom: 40px; }
.update-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.update-entry h3 { margin-bottom: 12px; font-size: 1.1rem; }
.update-entry p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
.update-entry ul {
    margin: 16px 0;
    padding-left: 24px;
}
.update-entry li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.update-entry ul ul { margin: 8px 0; }

/* ── ROADMAP ── */
.roadmap-column { margin-bottom: 40px; }
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.roadmap-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.925rem;
    color: var(--text-muted);
    transition: border-color 0.2s;
}
.roadmap-card:hover { border-color: rgba(0, 146, 189, 0.25); color: var(--text-main); }
.roadmap-column h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.status-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-planned { background: var(--text-muted); }
.status-progress { background: var(--accent); }
.status-done { background: #34c759; }

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 36px 24px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo img {
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.3;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-faint);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); opacity: 1; }
.footer-copy {
    font-size: 0.78rem;
    color: var(--text-faint);
}

@media (max-width: 768px) {
    .roadmap-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ========================================= */
/* === HOME PAGE SPECIFIC (index.html)   === */
/* ========================================= */

.index-page header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    transition: background 0.3s, border-color 0.3s;
}
.index-page header.scrolled {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 60px) 24px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 146, 189, 0.13) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(0, 146, 189, 0.25);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 780px;
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.3s forwards;
}

.hero-actions {
    display: flex;
    align-items: stretch; /* Changed from center */
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.4s forwards;
    margin-bottom: 70px;
}

.btn-store {
    justify-content: center;
    width: 180px;                /* (adjust if needed) */

    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    opacity: 1;
}
.btn-store svg { width: 20px; height: 20px; fill: #000; flex-shrink: 0; }
.btn-store-text span { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.6; line-height: 1; }
.btn-store-text strong { display: block; font-size: 1rem; line-height: 1.2; margin-top: 1px; }

.btn-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;                /* (adjust if needed) */

    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 22px;
    border-radius: 12px;
    transition: color 0.2s, border-color 0.2s;
}
.btn-guide:hover { color: var(--text-main); border-color: rgba(255,255,255,0.25); opacity: 1; }

.hero-visual {
    width: 100%;
    max-width: 780px;
    opacity: 0;
    animation: riseUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    position: relative;
}
.hero-visual picture img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.platform-strip {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 20px 24px;
    display: flex;
    justify-content: center;
}
.platform-strip-inner {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.platform-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-faint);
    font-weight: 400;
}
.platform-item svg {
    width: 18px;
    height: 18px;
    fill: var(--text-faint);
    flex-shrink: 0;
}

.section {
    padding: 120px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-body {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-bullets {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.feature-bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 8px;
}
.feature-bullets li > span {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.feature-bullets li > span strong { color: var(--text-main); font-weight: 500; }

.feature-image {
    position: relative;
}
.feature-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 28px;
    /* filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.15)); */
    transition: transform 0.4s ease;
}
.feature-image:hover img { transform: translateY(-6px); }

.feature-image::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(0, 146, 189, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.devices-section {
    padding: 120px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.devices-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 146, 189, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.devices-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.devices-inner .section-title { max-width: 600px; margin: 0 auto 16px; }
.devices-inner .section-body { margin: 0 auto 60px; text-align: center; }
.devices-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.cards-section {
    padding: 120px 24px;
}
.cards-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 20px;
    padding: 28px 26px;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
    border-color: rgba(0, 146, 189, 0.25);
    transform: translateY(-3px);
}
.card-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
}

.cta-section {
    padding: 100px 24px 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,146,189,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,146,189,0.4), transparent);
}
.cta-inner {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.cta-inner .hero-eyebrow { animation: none; opacity: 1; margin-bottom: 20px; }
.cta-inner h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.cta-inner h2 em { font-style: italic; color: var(--accent); }
.cta-inner p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}
.cta-note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-faint);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes riseUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .index-page .hero h1 { font-size: 2.6rem; }
    .index-page .feature-split { grid-template-columns: 1fr; gap: 40px; }
    .index-page .feature-split.reverse { direction: ltr; }
    .index-page .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .index-page .hero h1 { font-size: 2.1rem; }
    .index-page .btn-store, .index-page .btn-guide { width: 100%; justify-content: center; }
    .index-page .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
}