/* =====================
   HERO SECTION
   ===================== */

#hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- orb background --- */

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.hero-orb-1 {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(104, 90, 255, 0.32) 0%, transparent 70%);
    top: -160px;
    left: -80px;
    animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    bottom: -120px;
    right: -60px;
    animation: orbFloat2 17s ease-in-out infinite;
}

.hero-orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(91, 35, 255, 0.22) 0%, transparent 70%);
    top: 38%;
    left: 52%;
    animation: orbFloat3 11s ease-in-out infinite;
}

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

/* --- content --- */

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(104, 90, 255, 0.1);
    border: 1px solid rgba(104, 90, 255, 0.25);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 36px;
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.05s;
}

.hero-badge::before {
    content: "✦";
    font-size: 9px;
    opacity: 0.7;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(46px, 7.5vw, 100px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -2px;
    color: #f2f2f2;
    margin-bottom: 28px;
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.18s;
}

.hero-title-gradient {
    background: linear-gradient(130deg, #c4bcff 0%, var(--accent) 45%, #3b82f6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.18s,
               gradientShift 5s ease-in-out infinite 1s;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.8vw, 19px);
    font-weight: 400;
    color: var(--text-dim);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 48px;
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.3s;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 0.42s;
}

.hero-btn-primary {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    color: #fbfbfb;
    background: linear-gradient(135deg, #7b6dff 0%, var(--accent-dark) 100%);
    padding: 14px 34px;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(104, 90, 255, 0.4),
                0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 220ms ease;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 36px rgba(104, 90, 255, 0.55),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.hero-btn-secondary {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px 34px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: color 200ms, background-color 200ms, border-color 200ms,
                transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-btn-secondary:hover {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

/* --- scroll indicator --- */

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 0.6s ease both 1.1s;
}

.hero-scroll-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    transform-origin: top;
    animation: scrollLine 2.2s ease-in-out infinite 1.4s;
}

/* --- orb keyframes --- */

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0)      scale(1);    }
    33%       { transform: translate(50px, -35px) scale(1.05); }
    66%       { transform: translate(-25px, 45px) scale(0.96); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0)       scale(1);    }
    40%       { transform: translate(-55px, 35px) scale(1.07); }
    75%       { transform: translate(35px, -25px) scale(0.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0)     scale(1);   }
    50%       { transform: translate(40px, 55px) scale(1.1); }
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
    49%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
