:root {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --frame: #1e293b;
    --gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.25);
    --shadow-md: 0 18px 40px -24px rgba(15, 23, 42, 0.25);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-full: 999px;
    --container: 1200px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-alt {
    background: var(--bg-soft);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gradient);
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border-color: rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(10px);
}

.hero {
    padding-top: 170px;
    padding-bottom: 70px;
    text-align: center;
}

.hero-content {
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.03;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 18px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.store-btn--hero {
    background: var(--gradient);
}

.showcase {
    padding-top: 20px;
    padding-bottom: 130px;
}

.showcase-stack {
    position: relative;
    height: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}

.iphone {
    position: absolute;
    width: 320px;
    height: 650px;
    background: #000;
    border: 14px solid var(--frame);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    will-change: transform;
}

.iphone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 120px;
    height: 32px;
    transform: translateX(-50%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background: var(--frame);
    z-index: 3;
}

.iphone-screen {
    width: 100%;
    height: 100%;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-center {
    z-index: 3;
    transform: translate3d(0, 0, 0) scale(1);
}

.iphone-left {
    z-index: 1;
    transform: translate3d(-210px, 32px, -80px) rotate(-10deg) scale(0.92);
    opacity: 0.88;
    filter: saturate(0.9);
}

.iphone-right {
    z-index: 2;
    transform: translate3d(210px, 32px, -80px) rotate(10deg) scale(0.92);
    opacity: 0.88;
    filter: saturate(0.9);
}

.showcase-stack.is-visible .iphone-center {
    animation: phoneFloatCenter 6s ease-in-out infinite;
}

.showcase-stack.is-visible .iphone-left {
    animation: phoneFloatLeft 7.2s ease-in-out infinite;
}

.showcase-stack.is-visible .iphone-right {
    animation: phoneFloatRight 7.8s ease-in-out infinite;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 6px 20px -14px rgba(15, 23, 42, 0.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -22px rgba(15, 23, 42, 0.22);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: var(--gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted);
}

.watch-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
}

.watch-copy {
    flex: 1 1 480px;
    max-width: 530px;
}

.watch-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 22px;
}

.watch-copy p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.device-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 6px;
}

.watch-visual {
    position: relative;
    flex: 1 1 420px;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    background: var(--gradient);
    opacity: 0.14;
    filter: blur(90px);
}

.apple-watch {
    position: relative;
    width: 245px;
    height: 300px;
    border: 14px solid var(--frame);
    border-radius: 52px;
    background: #000;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 2;
}

.apple-watch::before {
    content: "";
    position: absolute;
    right: -11px;
    top: 66px;
    width: 10px;
    height: 36px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    background: #334155;
}

.apple-watch::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 126px;
    width: 6px;
    height: 50px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #334155;
}

.watch-screen {
    width: 100%;
    height: 100%;
}

.watch-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-inner {
    text-align: center;
    max-width: 780px;
}

.cta h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin-bottom: 18px;
}

.cta p {
    color: var(--muted);
    font-size: 1.18rem;
    margin-bottom: 36px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    text-align: center;
    color: var(--muted);
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* animations */
@keyframes phoneFloatCenter {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -14px, 0) scale(1);
    }
}

@keyframes phoneFloatLeft {
    0%, 100% {
        transform: translate3d(-210px, 32px, -80px) rotate(-10deg) scale(0.92);
    }
    50% {
        transform: translate3d(-210px, 18px, -80px) rotate(-10deg) scale(0.92);
    }
}

@keyframes phoneFloatRight {
    0%, 100% {
        transform: translate3d(210px, 32px, -80px) rotate(10deg) scale(0.92);
    }
    50% {
        transform: translate3d(210px, 18px, -80px) rotate(10deg) scale(0.92);
    }
}

@keyframes watchFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.reveal.is-visible .apple-watch {
    animation: watchFloat 6.6s ease-in-out infinite;
}

/* responsive */
@media (max-width: 1100px) {
    .showcase-stack {
        height: 680px;
    }

    .iphone {
        width: 290px;
        height: 590px;
    }

    .iphone-left {
        transform: translate3d(-175px, 28px, -80px) rotate(-9deg) scale(0.9);
    }

    .iphone-right {
        transform: translate3d(175px, 28px, -80px) rotate(9deg) scale(0.9);
    }

    @keyframes phoneFloatLeft {
        0%, 100% {
            transform: translate3d(-175px, 28px, -80px) rotate(-9deg) scale(0.9);
        }
        50% {
            transform: translate3d(-175px, 14px, -80px) rotate(-9deg) scale(0.9);
        }
    }

    @keyframes phoneFloatRight {
        0%, 100% {
            transform: translate3d(175px, 28px, -80px) rotate(9deg) scale(0.9);
        }
        50% {
            transform: translate3d(175px, 14px, -80px) rotate(9deg) scale(0.9);
        }
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .watch-layout {
        gap: 48px;
    }
}

@media (max-width: 820px) {
    .nav-actions {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    .showcase {
        padding-top: 0;
        padding-bottom: 90px;
    }

    .showcase-stack {
        height: auto;
        display: grid;
        gap: 24px;
        justify-items: center;
        perspective: none;
    }

    .iphone {
        position: relative;
        width: 280px;
        height: 570px;
    }

    .iphone-left,
    .iphone-center,
    .iphone-right {
        transform: none;
        opacity: 1;
        filter: none;
        animation: none !important;
    }

    .watch-layout {
        flex-direction: column;
        text-align: center;
    }

    .watch-copy {
        max-width: 700px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: min(100%, 300px);
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding-bottom: 40px;
    }

    .hero h1 {
        letter-spacing: -0.05em;
    }

    .iphone {
        width: 250px;
        height: 510px;
        border-width: 10px;
        border-radius: 40px;
    }

    .iphone::before {
        width: 100px;
        height: 24px;
    }

    .apple-watch {
        width: 210px;
        height: 258px;
    }

    .feature-card {
        padding: 28px;
    }
}