/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 2rem);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
    animation: glow-drift 16s ease-in-out infinite alternate;
}

.hero-glow--1 {
    width: 60vw;
    max-width: 780px;
    height: 60vw;
    max-height: 780px;
    background: rgba(37, 99, 235, 0.11);
    top: -18%;
    right: -10%;
}

.hero-glow--2 {
    width: 45vw;
    max-width: 560px;
    height: 45vw;
    max-height: 560px;
    background: rgba(59, 130, 246, 0.07);
    bottom: 0;
    left: -12%;
    animation-delay: -8s;
}

.hero-glow--3 {
    width: 35vw;
    max-width: 460px;
    height: 35vw;
    max-height: 460px;
    background: rgba(37, 99, 235, 0.06);
    top: 35%;
    left: 30%;
    animation-delay: -4s;
}

.hero-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.4) 100%);
    pointer-events: none;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 80% at 50% 40%, transparent 25%, var(--bg-primary) 100%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-content {
    max-width: 580px;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.82;
    letter-spacing: -0.008em;
    margin-bottom: 2.875rem;
}

.hero-buttons {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* Trust badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.trust-badge svg {
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.7;
}

/* Device showcase */
.hero-visual {
    perspective: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-showcase {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 420px;
}

.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 65%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
}

/* MacBook — positioning handled by .macbook-wrap in premium.css */
.macbook {
    transform-style: preserve-3d;
}

.macbook-lid {
    position: relative;
    background: linear-gradient(145deg, #2a2a2e 0%, #141416 100%);
    border-radius: 14px 14px 0 0;
    padding: 10px 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.macbook-bezel {
    position: relative;
}

.macbook-camera {
    width: 5px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 0 1px #333, inset 0 0 2px rgba(255, 255, 255, 0.1);
}

.macbook-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.macbook-screen__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.macbook-hinge {
    height: 4px;
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    margin: 0 20px;
}

.macbook-base {
    height: 16px;
    background: linear-gradient(180deg, #3a3a3e 0%, #1e1e22 40%, #141416 100%);
    border-radius: 0 0 10px 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
}

.macbook-trackpad {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.macbook-shadow {
    position: absolute;
    bottom: -24px;
    left: 5%;
    width: 90%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
    filter: blur(12px);
    transform: translateZ(-10px);
}

/* iPhone — positioning handled by .iphone-wrap in premium.css */
.iphone {
    transform-style: preserve-3d;
}

.iphone-frame {
    background: linear-gradient(145deg, #3a3a3e, #1a1a1c);
    border-radius: 22px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.iphone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 10px;
    background: #1a1a1c;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

.iphone-screen {
    position: relative;
    aspect-ratio: 9 / 19.5;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
}

.iphone-screen__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.iphone-shadow {
    position: absolute;
    bottom: -12px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
    filter: blur(8px);
}

.screen-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 25%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 2;
}

.screen-shine--mobile {
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 45%
    );
}

/* Mock site inside devices */
.mock-site {
    height: 100%;
    background: #080c14;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

.mock-site__bar {
    display: flex;
    gap: 3px;
    padding: 4px 6px;
    background: #0f1420;
}

.mock-site__bar span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mock-site__bar span:first-child { background: #ff5f57; }
.mock-site__bar span:nth-child(2) { background: #febc2e; }
.mock-site__bar span:nth-child(3) { background: #28c840; }

.mock-site__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-site__nav--mini { padding: 4px 6px; }

.mock-site__nav--mobile { padding: 8px 6px 4px; }

.mock-site__logo {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
}

.mock-site__nav--mini .mock-site__logo { width: 18px; height: 3px; }

.mock-site__links {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.mock-site__hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
    gap: 4px;
}

.mock-site__tag {
    font-size: 4px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3B82F6;
}

.mock-site__hero h4 {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.mock-site--mobile .mock-site__hero h4 { font-size: 5.5px; }
.mock-site--mobile .mock-site__tag { font-size: 3px; }

.mock-site__cta {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: #2563EB;
    margin-top: 3px;
}

.mock-site--mobile .mock-site__cta {
    width: 22px;
    height: 5px;
}

.mock-site__cards {
    display: flex;
    gap: 3px;
    padding: 0 8px 8px;
}

.mock-site__cards > div {
    flex: 1;
    height: 18px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-site__cards--mobile {
    flex-direction: column;
    padding: 0 6px 6px;
}

.mock-site__cards--mobile > div { height: 12px; }

.mock-site--desktop .mock-site__hero {
    background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
}

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

    .hero-content { max-width: 640px; margin: 0 auto; }

    .hero-text { margin-left: auto; margin-right: auto; }

    .hero-buttons { justify-content: center; }

    .trust-badges {
        justify-content: center;
        border-top: none;
        padding-top: 0;
    }

    .device-showcase {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .device-showcase {
        height: 320px;
        max-width: 340px;
    }

    .iphone {
        width: 88px;
        right: -4px;
        bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
