:root {
    --color-text: #1f2230;
    --color-text-muted: #5e6275;
    --color-surface: #ffffff;
    --color-surface-soft: #f4f5fb;
    --color-border: #e7e8f0;
    --color-accent: #3478f6;
    --color-accent-strong: #2a5ec5;
    --color-accent-soft: rgba(52, 120, 246, 0.08);
    --color-purple: #6b4cb1;
    --color-purple-soft: rgba(107, 76, 177, 0.08);
    --gradient-hero: linear-gradient(135deg, #2a5ec5 0%, #6b4cb1 65%, #b65eb6 100%);
    --gradient-cta: linear-gradient(135deg, #1f3a8a 0%, #4d2a8b 100%);
    --shadow-soft: 0 4px 18px rgba(31, 34, 48, 0.06);
    --shadow-strong: 0 14px 40px rgba(31, 34, 48, 0.12);
    --radius-card: 16px;
    --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    color: var(--color-text);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-strong); }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Header / Nav ----- */
header {
    background: var(--color-surface);
    position: relative;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

header nav ul li a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

header nav ul li a:hover {
    color: var(--color-text);
}

.btn-link {
    background: var(--color-accent);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
}
.btn-link:hover { background: var(--color-accent-strong); }

/* ----- Hero ----- */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 96px 0 112px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.18), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78em;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.eyebrow-light { color: rgba(255,255,255,0.85); }

.hero h1 {
    font-size: clamp(2.2em, 5vw, 3.4em);
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin: 0 auto 22px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.15em;
    max-width: 640px;
    margin: 0 auto 36px;
    color: rgba(255,255,255,0.92);
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 14px 26px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.98em;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: #fff;
    color: var(--color-accent-strong);
}
.btn-primary:hover { transform: translateY(-1px); color: var(--color-accent-strong); }

.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

.btn-large {
    font-size: 1.05em;
    padding: 16px 32px;
}

/* ----- Sections ----- */
.section { padding: 88px 0; }
.section h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: clamp(1.8em, 3.4vw, 2.4em);
    color: var(--color-text);
    letter-spacing: -0.015em;
}

.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 56px;
    font-size: 1.05em;
}

.long-text {
    color: var(--color-text-muted);
    max-width: 760px;
    margin: 0 auto 16px;
    font-size: 1.05em;
    text-align: center;
}

.bg-light {
    background-color: var(--color-surface-soft);
}

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

.feature-item {
    background: var(--color-surface);
    padding: 28px 26px;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-item h3 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 1.12em;
    letter-spacing: -0.005em;
}
.feature-item p {
    color: var(--color-text-muted);
    font-size: 0.96em;
}

/* ----- How It Works (steps) ----- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.step-item {
    background: var(--color-surface);
    padding: 28px;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-purple-soft);
    color: var(--color-purple);
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 14px;
}

.step-item h3 {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 1.12em;
}

.step-item p {
    color: var(--color-text-muted);
    font-size: 0.96em;
}

/* ----- App Preview Grid ----- */
.app-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 22px;
    align-items: start;
    margin-top: 16px;
}

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

.preview-item img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: var(--shadow-strong);
    background: var(--color-surface-soft);
}

.preview-item figcaption {
    margin-top: 14px;
    color: var(--color-text-muted);
    font-size: 0.95em;
    font-weight: 500;
}

/* ----- Scroll Fade ----- */
.fade-in-element {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- CTA ----- */
.cta-section {
    background: var(--gradient-cta);
    color: #fff;
    text-align: center;
    padding: 96px 0 100px;
}
.cta-section h2 { color: #fff; }
.cta-section p {
    font-size: 1.08em;
    max-width: 560px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.92);
}
.cta-section .small-text {
    margin-top: 16px;
    font-size: 0.88em;
    opacity: 0.78;
}

/* ----- Footer ----- */
footer {
    background: #0f1117;
    color: rgba(255,255,255,0.7);
    padding: 44px 0 36px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    margin: 0;
}

.footer-tagline {
    margin-top: 2px;
    font-size: 0.9em;
    color: rgba(255,255,255,0.6);
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.95em;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 0.86em;
    color: rgba(255,255,255,0.45);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
}

/* ----- Responsive ----- */
@media (max-width: 720px) {
    .nav-row {
        justify-content: center;
        text-align: center;
    }
    header nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero { padding: 72px 0 84px; }
    .section { padding: 64px 0; }
}
