.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    align-items: center;
    gap: 42px;
    padding: 118px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 74px;
    color: white;
    background:
        radial-gradient(circle at 82% 34%, rgba(61, 122, 188, 0.18), transparent 28%),
        radial-gradient(circle at 20% 80%, rgba(59, 184, 217, 0.06), transparent 30%),
        linear-gradient(135deg, #07111f 0%, #0d1a2b 58%, #08111f 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.88;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(255,255,255,0.04), transparent 48%);
    background-size: 120px 120px, auto;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 46%, rgba(0,0,0,0.32) 100%);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 12%, rgba(255,255,255,0.055) 36%, transparent 58%);
    transform: translateX(-6%);
    animation: heroSweep 10s var(--ease) infinite;
}

.hero-content,
.hero-wafer {
    position: relative;
    z-index: 1;
}

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

.hero-kicker {
    color: #8bd5ec;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 640px;
    color: #fff;
    font-size: clamp(42px, 5.8vw, 76px);
    line-height: 1.08;
    font-weight: 820;
    margin-bottom: 32px;
    text-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(31, 95, 191, 0.35);
    touch-action: manipulation;
    transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease, background 0.24s ease;
    opacity: 0;
    transform: translateY(22px);
    animation: heroTextIn 0.78s var(--ease) 0.36s forwards;
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(31, 95, 191, 0.45);
}

.hero-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(31, 95, 191, 0.30);
}

.hero p:not(.hero-kicker) {
    max-width: 640px;
    color: rgba(235,246,255,0.82);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.85;
}

.hero-kicker,
.hero h1,
.hero p:not(.hero-kicker) {
    opacity: 0;
    transform: translateY(22px);
    animation: heroTextIn 0.78s var(--ease) forwards;
}

.hero h1 {
    animation-delay: 0.12s;
}

.hero p:not(.hero-kicker) {
    animation-delay: 0.24s;
}

.hero-wafer {
    justify-self: end;
    width: min(640px, 46vw);
    margin-right: -52px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    opacity: 0;
    transform:
        translateX(34px)
        translateY(16px)
        scale(0.96);
    transform-style: preserve-3d;
    overflow: visible;
    animation: waferIntro 1.15s var(--ease-out) 0.18s forwards;
}

.hero-wafer img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 52%;
    backface-visibility: hidden;
    filter: saturate(0.94) contrast(1.06);
    animation: waferFloat 22s cubic-bezier(0.45, 0, 0.2, 1) 1.35s infinite;
    will-change: transform;
}

.product-preview {
    padding-top: 78px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.preview-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px 18px 22px;
    border: 1px solid rgba(216, 222, 232, 0.94);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--soft-shadow);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease, border-color 0.28s ease;
}

.preview-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(31, 95, 191, 0.04) 45%,
        rgba(31, 95, 191, 0.08) 50%,
        rgba(31, 95, 191, 0.04) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.preview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(31, 95, 191, 0.30);
    box-shadow: 0 20px 48px rgba(16, 34, 58, 0.12);
}

.preview-card:hover::before {
    transform: translateX(40%);
}

.preview-image {
    height: 268px;
    margin-bottom: 20px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.18)),
        linear-gradient(180deg, #f8fafc, #eef3f8);
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.32s var(--ease-out);
}

.preview-card:hover .preview-image img {
    transform: scale(1.03);
}

.preview-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 760;
    overflow-wrap: anywhere;
}

.preview-card p {
    color: var(--muted);
    line-height: 1.75;
}

.product-link {
    margin-top: 24px;
}

.company-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1fr);
    gap: 34px;
    align-items: stretch;
    padding-top: 20px;
}

.intro-copy {
    padding: 38px 40px;
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(59, 184, 217, 0.06), transparent 40%),
        linear-gradient(135deg, #0b1728, #132640);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro-copy::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 184, 217, 0.3), transparent);
}

.intro-copy .eyebrow {
    color: #8bd5ec;
}

.intro-copy h2 {
    margin: 12px 0 20px;
    color: #fff;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.15;
    font-weight: 760;
}

.intro-copy p:not(.eyebrow) {
    color: rgba(255,255,255,0.80);
    line-height: 2.05;
    font-size: 15.2px;
    text-align: justify;
    overflow-wrap: anywhere;
}

.intro-media {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #e9edf3;
}

.intro-media img {
    width: 100%;
    height: 100%;
    min-height: 456px;
    object-fit: cover;
    object-position: center 45%;
}

@keyframes heroTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waferIntro {
    0% {
        opacity: 0;
        transform:
            translateX(34px)
            translateY(16px)
            scale(0.96);
    }
    100% {
        opacity: 1;
        transform:
            translateX(34px)
            scale(1);
    }
}

@keyframes waferFloat {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotateZ(0.7deg) scale(1.015);
    }
    50% {
        transform: translateY(-4px) rotateZ(-0.35deg) scale(1.008);
    }
    75% {
        transform: translateY(-10px) rotateZ(0.45deg) scale(1.018);
    }
}

@keyframes heroSweep {
    0%, 100% {
        opacity: 0.18;
        transform: translateX(-6%);
    }
    50% {
        opacity: 0.44;
        transform: translateX(4%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wafer,
    .hero-wafer img,
    .hero-kicker,
    .hero h1,
    .hero p,
    .hero-cta {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 980px) {
    .hero,
    .company-intro {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 108px var(--gutter) 66px;
        justify-items: center;
        text-align: center;
    }

    .hero-wafer {
        justify-self: center;
        width: min(76vw, 430px);
        max-height: none;
        margin-right: 0;
        transform: translateX(0) translateY(10px) scale(0.96);
        animation-name: waferIntroMobile;
    }

    .hero p:not(.hero-kicker) {
        margin-left: auto;
        margin-right: auto;
    }

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

    .company-intro {
        gap: 24px;
    }
}

@media (max-width: 620px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero {
        gap: 28px;
    }

    .hero-wafer {
        width: min(82vw, 360px);
    }

    .hero-wafer img {
        animation-name: waferFloatMobile;
    }

    .preview-image {
        height: 224px;
    }

    .intro-copy {
        padding: 28px 24px;
    }

    .intro-media img {
        min-height: 300px;
    }
}

@keyframes waferIntroMobile {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(14px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

@keyframes waferFloatMobile {
    0%, 100% {
        transform: translateX(0) translateY(0) rotateZ(0deg) scale(1);
    }
    50% {
        transform: translateX(0) translateY(-7px) rotateZ(0.35deg) scale(1.01);
    }
}
