.hero {
    position: relative;
    padding: 56px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #00A896 0%, #008F7F 45%, #007A6E 70%, #F37021 120%);
    z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-bg::before {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -100px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-bg::after {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -80px;
    background: rgba(255, 204, 0, 0.15);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-copy h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-copy h1 .highlight {
    background: linear-gradient(90deg, #FFCC00 0%, #FFE566 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.hero-cta .btn-hero-primary {
    background: #fff;
    color: var(--primary-dark);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta .btn-hero-primary:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.hero-cta .btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

.hero-cta .btn-hero-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    padding-top: 8px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-trust-item svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Device mockup — raw UI screenshots at correct 9:19.5 aspect */
.device {
    background: #1E293B;
    border-radius: 28px;
    padding: 10px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.32),
        0 8px 20px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-screen {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #F5FAF9;
    aspect-ratio: 9 / 19.5;
}

.device-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.device--sm { width: 148px; }
.device--md { width: 172px; }
.device--lg { width: 200px; }
.device--xl { width: 248px; }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    perspective: 1200px;
}

.hero-device-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.35) 0%, rgba(0, 168, 150, 0.2) 45%, transparent 70%);
    filter: blur(24px);
    z-index: 0;
}

.device-stack {
    position: relative;
    z-index: 1;
    width: 300px;
    height: 400px;
}

.device-stack .device--back {
    position: absolute;
    top: 24px;
    right: -8px;
    width: 210px;
    transform: rotate(8deg) scale(0.92);
    opacity: 0.88;
    z-index: 1;
}

.device-stack .device--front {
    position: absolute;
    top: 0;
    left: 0;
    width: 248px;
    transform: rotate(-4deg);
    z-index: 2;
    transition: transform 0.45s ease;
}

.device-stack:hover .device--front {
    transform: rotate(0deg) translateY(-6px);
}

.device-stack:hover .device--back {
    transform: rotate(12deg) scale(0.9) translateX(8px);
}

.use-cases {
    max-width: 1140px;
    margin: -32px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.use-case-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.use-case-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    transition: background 0.18s ease;
}

.use-case-item:hover {
    background: var(--primary-light);
}

.use-case-art {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.use-case-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.use-case-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.use-case-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.steps {
    padding: 88px 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 168, 150, 0.4);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.features {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 88px 24px;
}

.features-inner {
    max-width: 1140px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 168, 150, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-art {
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}

.feature-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    padding: 0 28px;
    margin-top: 22px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    padding: 0 28px 28px;
}

.screenshots {
    padding: 88px 24px;
}

.screenshots-inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* Desktop: fanned phone gallery */
.phone-fan {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    min-height: 420px;
    padding: 24px 0 0;
}

.phone-fan-item {
    text-align: center;
    margin: 0 -20px;
    transition: transform 0.35s ease;
}

.phone-fan-item figcaption {
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.phone-fan-item--far-left {
    transform: rotate(-12deg) translateY(28px) scale(0.82);
    z-index: 1;
}

.phone-fan-item--left {
    transform: rotate(-6deg) translateY(12px) scale(0.9);
    z-index: 2;
}

.phone-fan-item--center {
    transform: translateY(-8px) scale(1);
    z-index: 4;
}

.phone-fan-item--right {
    transform: rotate(6deg) translateY(12px) scale(0.9);
    z-index: 2;
}

.phone-fan:hover .phone-fan-item--center {
    transform: translateY(-16px) scale(1.03);
}

.phone-fan:hover .phone-fan-item--left {
    transform: rotate(-8deg) translateY(6px) scale(0.92);
}

.phone-fan:hover .phone-fan-item--right {
    transform: rotate(8deg) translateY(6px) scale(0.92);
}

/* Mobile: horizontal scroll snap */
.phone-scroll {
    display: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 24px;
    margin: 0 -4px;
}

.phone-scroll-item {
    flex: 0 0 200px;
    scroll-snap-align: center;
    text-align: center;
}

.phone-scroll-item figcaption {
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cta-band {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 72px 24px;
    color: #fff;
}

.cta-band-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #007A6E 0%, #00A896 50%, #F37021 150%);
    z-index: 0;
}

.cta-band-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-band-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-band p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 28px;
}

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

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-copy > p { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .store-badge-row { justify-content: center; }
    .device-stack { margin: 0 auto; }
    .device-stack .device--back { right: 0; }
    .use-case-strip { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .phone-fan { display: none; }
    .phone-scroll { display: flex; }
}

@media (max-width: 520px) {
    .hero { padding-bottom: 64px; }
    .use-cases { margin-top: -24px; }
    .phone-scroll-item { flex: 0 0 180px; }
    .device-stack { width: 260px; height: 360px; }
    .device-stack .device--front { width: 220px; }
    .device-stack .device--back { width: 188px; }
}
