/* ==========================================================================
   HOME — Page-Specific Styles
   Premium Apple-style homepage
   ========================================================================== */

/* ── HERO ─────────────────────────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 140px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 0%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
    z-index: 0;
    animation: mesh-shift 20s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

/* ── HERO LEFT ── */

.hero-left {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    margin-bottom: 28px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-title em {
    font-style: normal;
}

.hero-sub {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-sub strong {
    color: var(--gray-700);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── HERO RIGHT — Card ── */

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 340px;
    padding: 32px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.hero-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gray-900);
}

.hero-card-role {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.hero-card-divider {
    height: 1px;
    background: var(--gray-200);
    margin-bottom: 20px;
}

.hero-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.hero-card-stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--gray-900);
    display: block;
}

.hero-card-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-top: 4px;
    display: block;
}

.hero-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tag--cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.tag--violet {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.tag--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.tag--emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── FLOATING BADGES ── */

.floating {
    position: absolute;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    top: -10px;
    right: -30px;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 20px;
    left: -20px;
    animation-delay: -3s;
}

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

.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.floating-icon {
    font-size: 1.1rem;
}

/* ── SCROLL INDICATOR ── */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ── MARQUEE ──────────────────────────────────────────────────────────── */

.marquee {
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 0 20px;
}

.marquee-sep {
    color: var(--gray-300);
    font-size: 0.7rem;
    padding: 0 5px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── STATS ────────────────────────────────────────────────────────────── */

.stats {
    padding: 100px 5%;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--gray-200);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.stat-number--infinity {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    font-weight: 500;
}

/* ── VENTURES BENTO ───────────────────────────────────────────────────── */

.ventures {
    padding: 120px 5%;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--gray-200);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.04);
}

.bento-card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: 24px;
}

.bento-card:hover .bento-card-glow {
    opacity: 1;
}

.bento-card--orbitech .bento-card-glow {
    background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.bento-card--lbo .bento-card-glow {
    background: radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.bento-card-content {
    position: relative;
    z-index: 1;
    padding: 40px;
}

.bento-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bento-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card-icon--cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.bento-card-icon--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.bento-card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--gray-100);
    color: var(--gray-500);
    letter-spacing: 0.02em;
}

.bento-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--gray-900);
}

.bento-card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.bento-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.feature-tag {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.bento-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.bento-card-link:hover {
    gap: 14px;
}

.bento-card-link svg {
    transition: transform 0.3s ease;
}

.bento-card-link:hover svg {
    transform: translateX(4px);
}

/* ── ABOUT ────────────────────────────────────────────────────────────── */

.about {
    padding: 120px 5%;
}

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.about-quote {
    padding: 24px 28px;
    border-left: 3px solid var(--accent);
    background: var(--gray-50);
    border-radius: 0 16px 16px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 28px 0;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateX(4px);
}

.about-card-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 12px;
    flex-shrink: 0;
}

.about-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.about-card-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
}

/* ── CTA ──────────────────────────────────────────────────────────────── */

.cta {
    padding: 120px 5%;
    position: relative;
    overflow: hidden;
    background: #171717;
    color: white;
}

.cta-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: #171717;
}

.cta .btn-primary:hover {
    background: var(--gray-100);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.cta .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.cta .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* ── DARK MODE OVERRIDES ──────────────────────────────────────────────── */
/* Gray scale is inverted in dark mode, so var(--gray-900) = light text.
   Most text colors auto-fix. Only cosmetic & CTA overrides remain. */

[data-theme="dark"] .hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .hero-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] .hero-eyebrow {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hero-card-divider {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .stat:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .marquee {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bento-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bento-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .bento-card-badge,
[data-theme="dark"] .feature-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .about-card-icon {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .about-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent);
}

/* ── CTA: intentionally light bg in dark mode (hardcoded) ── */

[data-theme="dark"] .cta {
    background: #f5f5f5;
}

[data-theme="dark"] .cta-content h2 {
    color: #171717;
}

[data-theme="dark"] .cta-content p {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .cta .btn-primary {
    background: #171717;
    color: #fafafa;
}

[data-theme="dark"] .cta .btn-primary:hover {
    background: #262626;
}

[data-theme="dark"] .cta .btn-ghost {
    color: #171717;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cta .btn-ghost:hover {
    border-color: rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.05);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */

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

    .hero-left {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-sub {
        max-width: 100%;
    }

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

    .hero-right {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 5% 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .stat:nth-child(2)::after {
        display: none;
    }

    .stat:nth-child(1)::after,
    .stat:nth-child(3)::after {
        top: 15%;
        height: 70%;
    }

    .stat {
        padding: 30px 15px;
    }

    .stat:nth-child(1),
    .stat:nth-child(2) {
        border-bottom: 1px solid var(--gray-200);
    }

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

    .bento-card-content {
        padding: 28px;
    }

    .ventures,
    .about,
    .cta {
        padding: 80px 5%;
    }

    .scroll-indicator {
        display: none;
    }

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

    .cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 4% 50px;
    }

    .hero-eyebrow {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .stat-number {
        font-size: 2rem;
    }
}
