/* ══════════════════════════════════════════════════════════
   hero.css  —  Hero Section  |  Android DEX Landing Page
   Layout: full-viewport responsive, laptop + phone companion,
   floating chips on desktop / sleek badge grid on mobile.
   Matches: sample.png (Aerium-style warm monochrome dark)
══════════════════════════════════════════════════════════ */

/* ── Hero Wrapper ─────────────────────────────────────── */
.hero {
    position: relative;
    padding-top: 110px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

/* Aerium signature white spotlight beaming from top behind heading onto dark background */
.hero::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(950px, 100vw);
    height: 600px;
    background: radial-gradient(ellipse 70% 55% at 50% 30%, rgba(255, 255, 255, 0.16) 0%, rgba(180, 195, 220, 0.04) 55%, transparent 80%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Editorial Heading — Bold sans + italic serif block ── */
.hero-h1 {
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    padding: 0 10px;
}

/* Second line is italic serif — exact Aerium pattern */
.hero-h1 em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    display: block;
    line-height: 1.15;
}

/* ── Hero Stage ─────────────────────────────────────── */
.hero-stage {
    position: relative;
    width: 100%;
    max-width: 820px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 24px;
    padding-bottom: 8px;
    user-select: none;
}

/* ── 1. Pro Laptop Workspace Frame (Behind) ────────────────── */
.laptop-wrap {
    position: relative;
    width: 100%;
    max-width: 635px;
    margin: 0 auto;
    z-index: 5;
    /* Behind phone (z:10), above chips (z:2) */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: heroLaptopEnter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.15s;
}

@keyframes heroLaptopEnter {
    0%   { opacity: 0; transform: translateY(40px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0px)  scale(1);    }
}

/* Anodized Metallic Screen Lid */
.laptop-lid {
    width: 100%;
    border-radius: 16px 16px 2px 2px;
    background: linear-gradient(135deg, #7b8494 0%, #4c5361 50%, #2b303c 100%);
    padding: 3.5px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.7),
        0 30px 75px -5px rgba(0, 0, 0, 0.95);
    position: relative;
    overflow: hidden;
}

/* Glass Reflection Overlay */
.laptop-lid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 35%, transparent 40%);
    pointer-events: none;
    z-index: 5;
}

/* Inner Uniform Black Screen Bezel */
.laptop-black-bezel {
    width: 100%;
    height: 100%;
    background: #0b0c0f;
    padding: 10px 10px 12px 10px;
    border-radius: 13px 13px 0 0;
}

/* Display Viewport */
.laptop-screen {
    height: 100%;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Anodized Aluminium Base Chassis */
.laptop-base {
    width: 105%;
    height: 18px;
    background: linear-gradient(to bottom, #383d48 0%, #21242c 60%, #15171e 100%);
    border-radius: 2px 2px 14px 14px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.laptop-notch {
    width: 68px;
    height: 5px;
    background: #121317;
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
}

/* Contact Shadow beneath Laptop Base to ground it naturally */
.laptop-base::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 2%;
    right: 2%;
    height: 24px;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* ── 2. Mobile Companion Phone (In Front, Overlapping Left Side) ── */
.phone-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Outer physical side buttons */
.phone-btn {
    position: absolute;
    background: linear-gradient(to right, #9ca6b6, #677180);
    border-radius: 3px;
    z-index: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-vol-up {
    left: -5px;
    top: 75px;
    width: 5px;
    height: 32px;
}

.btn-vol-down {
    left: -5px;
    top: 118px;
    width: 5px;
    height: 32px;
}

.btn-power {
    right: -5px;
    top: 90px;
    width: 5px;
    height: 48px;
}

/* Layer 1: Outer Metallic Rim */
.phone-frame {
    width: 215px;
    border-radius: 31px;
    padding: 4px;
    background: linear-gradient(145deg, #a8b2c1 0%, #727c8b 50%, #4f5765 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 35px 80px -10px rgba(0, 0, 0, 0.90),
        0 15px 30px -5px rgba(0, 0, 0, 0.60);
    position: relative;
    z-index: 1;
}

/* Layer 2: Black Inner Screen Bezel */
.phone-black-bezel {
    width: 100%;
    height: 100%;
    border-radius: 27px;
    background: #000000;
    padding: 4.5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Layer 3: Display Screen Container */
.phone-screen-container {
    flex: 1;
    border-radius: 22.5px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Top Status Header */
.phone-header {
    height: 31px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    position: relative;
    flex-shrink: 0;
    z-index: 5;
}

.phone-time {
    font-size: 0.65rem;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--f-sans);
    letter-spacing: -0.02em;
}

/* Phone Notch Cutout */
.phone-notch {
    width: 60px;
    height: 17px;
    background: #000000;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 10;
}

.notch-speaker {
    width: 21px;
    height: 3px;
    background: #1c1d22;
    border-radius: 2px;
}

.notch-cam {
    width: 5.5px;
    height: 5.5px;
    background: #090a0d;
    border: 1px solid #1a1c23;
    border-radius: 50%;
}

.phone-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1e293b;
}

/* Screen Image Area */
.phone-screen {
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
    display: block;
    aspect-ratio: 9 / 17;
}

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

/* Bottom Home Bar Indicator */
.phone-home-bar {
    height: 17px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-home-bar::after {
    content: '';
    width: 63px;
    height: 3.5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
}

.hero-phone-front {
    position: absolute;
    bottom: 0;
    left: 6.5%;
    z-index: 10;
    animation: heroPhoneEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
}

@keyframes heroPhoneEnter {
    0%   { opacity: 0; transform: rotate(-5deg) translateY(60px); }
    100% { opacity: 1; transform: rotate(-5deg) translateY(0px);  }
}

.hero-phone-front .phone-frame {
    box-shadow:
        0 0 0 1.5px rgba(0, 0, 0, 0.75),
        -20px 22px 60px rgba(0, 0, 0, 0.92),
        0 35px 80px rgba(0, 0, 0, 0.95);
}

/* ── Floating Glass Chips (Desktop) ───────── */
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(18, 19, 24, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    font-size: 0.80rem;
    font-weight: 500;
    color: var(--text-soft);
    white-space: nowrap;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.hero-chip:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.75),
        0 0 20px rgba(255, 255, 255, 0.08);
}

.hero-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    flex-shrink: 0;
}

/* Chip positions on Desktop */
.hero-chip-tl {
    top: 25px;
    left: 10px;
    animation: chipFloat 6s ease-in-out infinite;
    animation-delay: 0s;
}

.hero-chip-bl {
    bottom: 75px;
    left: 15px;
    animation: chipFloat 6s ease-in-out infinite;
    animation-delay: 3s;
}

.hero-chip-tr {
    top: 25px;
    right: 15px;
    animation: chipFloat 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.hero-chip-br {
    bottom: 75px;
    right: 15px;
    animation: chipFloat 6s ease-in-out infinite;
    animation-delay: 4.5s;
}

@keyframes chipFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ── Responsive Hero Styles for Tablets & Mobile (Android) ─────────────────── */
@media (max-width: 1024px) {
    .hero-stage {
        max-width: 720px;
    }

    .hero-chip-tl {
        left: 0px;
    }

    .hero-chip-bl {
        left: 0px;
    }

    .hero-chip-tr {
        right: 0px;
    }

    .hero-chip-br {
        right: 0px;
    }

    .hero-phone-front .phone-frame {
        width: 185px;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-top: 85px;
        padding-bottom: 30px;
    }

    .hero-stage {
        flex-direction: column;
        align-items: center;
        margin-top: 16px;
        max-width: 580px;
    }

    .hero-phone-front {
        left: 4%;
        bottom: 0;
    }

    .hero-phone-front .phone-frame {
        width: 155px;
        border-radius: 24px;
        padding: 3px;
    }

    .phone-black-bezel {
        border-radius: 21px;
        padding: 3.5px;
    }

    .phone-screen-container {
        border-radius: 17.5px;
    }

    .phone-header {
        height: 24px;
        padding: 0 10px;
    }

    .phone-time {
        font-size: 0.55rem;
    }

    .phone-notch {
        width: 46px;
        height: 13px;
        border-radius: 0 0 7px 7px;
    }

    .notch-speaker {
        width: 16px;
        height: 2px;
    }

    .notch-cam {
        width: 4px;
        height: 4px;
    }

    .phone-home-bar {
        height: 13px;
    }

    .phone-home-bar::after {
        width: 48px;
        height: 3px;
    }

    .btn-vol-up {
        top: 55px;
        height: 24px;
        width: 4px;
        left: -4px;
    }

    .btn-vol-down {
        top: 88px;
        height: 24px;
        width: 4px;
        left: -4px;
    }

    .laptop-wrap {
        max-width: 520px;
    }

    .laptop-black-bezel {
        padding: 8px 8px 10px 8px;
    }

    .laptop-base {
        height: 14px;
    }

    /* Transform chips into a clean 2x2 badge grid below stage on tablet/mobile */
    .hero-chip {
        position: static;
        animation: none;
        width: 100%;
        justify-content: flex-start;
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .hero-stage {
        display: grid;
        grid-template-areas:
            "visual visual"
            "c1 c2"
            "c3 c4";
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .hero-stage > .laptop-wrap {
        grid-area: visual;
        margin-bottom: 12px;
        width: 100%;
    }

    .hero-chip-tl { grid-area: c1; }
    .hero-chip-bl { grid-area: c2; }
    .hero-chip-tr { grid-area: c3; }
    .hero-chip-br { grid-area: c4; }
}

@media (max-width: 540px) {
    .hero {
        padding-top: 72px;
        padding-bottom: 24px;
    }

    .hero-h1 {
        font-size: 1.65rem;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .hero-phone-front {
        left: 2%;
        bottom: -2px;
    }

    .hero-phone-front .phone-frame {
        width: 120px;
        border-radius: 19px;
        padding: 2.5px;
    }

    .phone-black-bezel {
        border-radius: 16px;
        padding: 2.5px;
    }

    .phone-screen-container {
        border-radius: 13.5px;
    }

    .phone-header {
        height: 18px;
        padding: 0 6px;
    }

    .phone-time {
        font-size: 0.46rem;
    }

    .phone-notch {
        width: 36px;
        height: 10px;
        border-radius: 0 0 5px 5px;
    }

    .phone-icons i {
        transform: scale(0.75);
    }

    .phone-home-bar {
        height: 10px;
    }

    .phone-home-bar::after {
        width: 34px;
        height: 2px;
    }

    .btn-vol-up {
        top: 42px;
        height: 18px;
        width: 3px;
        left: -3px;
    }

    .btn-vol-down {
        top: 66px;
        height: 18px;
        width: 3px;
        left: -3px;
    }

    .laptop-lid {
        border-radius: 10px 10px 2px 2px;
        padding: 2.5px;
    }

    .laptop-black-bezel {
        padding: 5px 5px 6px 5px;
        border-radius: 8px 8px 0 0;
    }

    .laptop-base {
        height: 10px;
        border-radius: 1px 1px 8px 8px;
    }

    .laptop-notch {
        width: 38px;
        height: 3px;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        grid-template-areas:
            "visual"
            "c1"
            "c2"
            "c3"
            "c4";
        gap: 6px;
    }

    .hero-chip {
        padding: 7px 12px;
        font-size: 0.74rem;
        border-radius: var(--radius-md);
    }

    .hero-chip-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .hero-h1 {
        font-size: 1.45rem;
    }

    .hero-phone-front .phone-frame {
        width: 100px;
        border-radius: 16px;
    }
}