:root {
    --white: #ffffff;
    --off-white: #f9f9f8;
    --rule: #e8e8e5;
    --muted: #999993;
    --text: #1a1a18;
    --accent: #1a73e8;
    --accent-dark: #1557b0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text);
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ─── HEADER ─── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: Cambria, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--text);
}

.logo span {
    display: block;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: white;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
    background: #333330;
    transform: translateY(-1px);
}

/* ─── HERO ─── */
#hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    width: 100%;
}

.hero-title {
    font-family: Cambria, 'Times New Roman', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 28px;
}

.hero-title em {
    font-style: italic;
    color: var(--muted);
}

.hero-body {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 440px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.18s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:hover {
    background: #333330;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-play svg {
    flex-shrink: 0;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
}

/* Hero phone arrangement */
.hero-phones {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-wrap {
    position: absolute;
    transition: transform 0.4s ease;
}

.phone-wrap:hover {
    transform: translateY(-6px) !important;
    z-index: 10 !important;
}

.phone-wrap.front {
    z-index: 3;
    transform: rotate(-1.5deg);
}

.phone-wrap.back {
    z-index: 2;
    transform: rotate(5deg) translateX(80px) translateY(20px);
}

.phone-shell {
    width: 210px;
    background: #111;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 2px 0 #555 inset,
        0 -2px 0 #555 inset,
        0 30px 80px rgba(0,0,0,0.22),
        0 0 0 1px rgba(0,0,0,0.3);
}

.phone-screen {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    display: block;
    background: #fff;
}

.phone-screen img {
    width: 100%;
    display: block;
}

/* ─── DIVIDER ─── */
.section-divider {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-divider hr {
    border: none;
    border-top: 1px solid var(--rule);
}

/* ─── FEATURES ─── */
#features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 32px;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
    align-items: end;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.section-title {
    font-family: Cambria, 'Times New Roman', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.features-intro {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 300;
    padding-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
    background: var(--rule);
}

.feature-cell {
    background: var(--white);
    padding: 40px 36px;
    transition: background 0.2s ease;
}

.feature-cell:hover {
    background: var(--off-white);
}

.feature-number {
    font-family: Cambria, 'Times New Roman', serif;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    display: block;
}

.feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.feature-name {
    font-family: Cambria, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ─── SCREENSHOTS ─── */
#screenshots {
    background: var(--off-white);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 100px 0;
    overflow: hidden;
}

.screenshots-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.screenshots-header {
    text-align: center;
    margin-bottom: 72px;
}

.screenshots-row {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    justify-content: center;
}

.ss-item {
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.ss-item:hover {
    transform: translateY(-8px);
}

.ss-item.tall {
    margin-bottom: 0;
}

.ss-item.mid {
    transform: translateY(24px);
}

.ss-item.mid:hover {
    transform: translateY(16px);
}

.ss-item.short {
    transform: translateY(40px);
}

.ss-item.short:hover {
    transform: translateY(32px);
}

.ss-shell {
    background: #111;
    border-radius: 32px;
    padding: 9px;
    box-shadow:
        0 24px 64px rgba(0,0,0,0.16),
        0 0 0 1px rgba(0,0,0,0.25);
}

.ss-screen {
    border-radius: 24px;
    overflow: hidden;
    display: block;
}

.ss-screen img {
    display: block;
    width: 100%;
}

.ss-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ─── CTA BANNER ─── */
#cta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 32px;
    text-align: center;
}

.cta-title {
    font-family: Cambria, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 44px;
    font-weight: 300;
}

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--rule);
    padding: 40px 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: Cambria, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
    color: var(--text);
}

.footer-logo span { display: block; }

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    #hero {
        grid-template-columns: 1fr;
        gap: 64px;
        padding-top: 72px;
        text-align: center;
    }

    .hero-body { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-phones { height: 400px; }
    .phone-shell { width: 160px; }
    .phone-wrap.back { transform: rotate(5deg) translateX(60px) translateY(15px); }

    .features-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-row {
        gap: 20px;
    }

    .ss-shell {
        border-radius: 24px;
        padding: 7px;
    }

    .ss-screen { border-radius: 18px; }
}

@media (max-width: 600px) {
    .header-inner { padding: 0 20px; }
    #hero { padding: 60px 20px 64px; }
    #features { padding: 72px 20px; }
    .screenshots-inner { padding: 0 20px; }
    #cta { padding: 72px 20px; }
    .footer-inner { padding: 0 20px; flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }

    .hero-phones { height: 300px; }
    .phone-shell { width: 130px; border-radius: 28px; padding: 8px; }
    .phone-wrap.back { transform: rotate(5deg) translateX(48px) translateY(12px); }

    .screenshots-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .ss-item { flex-shrink: 0; }
}

/* ─── FADE-IN ON LOAD ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title   { animation: fadeUp 0.6s 0.1s ease both; }
.hero-body    { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
.hero-phones  { animation: fadeUp 0.7s 0.15s ease both; }
