/* =============================================
   CHROMOBYTES — Home Page Styles
   ============================================= */

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(3, 40, 127, 0.55) 0%, #050E2A 65%);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(1, 118, 250, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 118, 250, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: var(--nav-height);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(54, 172, 252, 0.3);
    border-radius: 100px;
    background: rgba(1, 118, 250, 0.08);
    backdrop-filter: blur(8px);
    font-family: var(--font-brand);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
    animation: fadeSlideDown 0.8s ease 0.1s both;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s ease 0.25s both;
}

.hero-title .line-1 { display: block; color: var(--color-white); }
.hero-title .line-2 {
    display: block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 60%, #7ED5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(247, 251, 255, 0.6);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease 0.55s both;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: fadeIn 1s ease 1.2s both;
}

.scroll-label {
    font-family: var(--font-brand);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-bar {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ── Services ─────────────────────────────── */
.services {
    background: #050E2A;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(1,118,250,0.3), transparent);
}

.services-header {
    text-align: center;
    margin-bottom: 64px;
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 36px 28px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(1,118,250,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: rgba(1, 118, 250, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(1,118,250,0.12);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(1, 118, 250, 0.1);
    border: 1px solid rgba(1, 118, 250, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: box-shadow var(--transition);
}

.service-card:hover .service-icon {
    box-shadow: var(--glow-primary);
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-white);
}

.service-card p {
    font-size: 0.88rem;
    color: rgba(247, 251, 255, 0.5);
    line-height: 1.65;
}

.service-number {
    position: absolute;
    top: 20px; right: 22px;
    font-family: var(--font-brand);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(54, 172, 252, 0.2);
}

/* ── Stats ────────────────────────────────── */
.stats {
    background: linear-gradient(180deg, #050E2A 0%, #071F5C 50%, #050E2A 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(1,118,250,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

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

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%;
    height: 60%; width: 1px;
    background: rgba(255,255,255,0.07);
}

.stat-number {
    font-family: var(--font-brand);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-white), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(247, 251, 255, 0.45);
    letter-spacing: 0.05em;
}

/* ── About snippet ────────────────────────── */
.about-snap {
    background: #050E2A;
    position: relative;
}

.about-snap-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-orb {
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(54,172,252,0.18) 0%, rgba(1,118,250,0.08) 40%, transparent 70%);
    border: 1px solid rgba(54,172,252,0.12);
    position: relative;
    animation: orbFloat 6s ease-in-out infinite;
}

.about-orb::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1,118,250,0.15) 0%, transparent 70%);
    border: 1px solid rgba(1,118,250,0.2);
}

.orb-text {
    position: absolute;
    font-family: var(--font-brand);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    background: linear-gradient(135deg, var(--color-white), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.about-text .section-subtitle { margin-bottom: 32px; }

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: rgba(247, 251, 255, 0.75);
}

.feature-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    flex-shrink: 0;
}

/* ── CTA Band ─────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    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);
    background-size: 40px 40px;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--color-white);
    margin-bottom: 16px;
    position: relative;
}

.cta-band p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    position: relative;
}

.cta-band .btn-outline {
    position: relative;
    border-color: rgba(255,255,255,0.5);
    color: var(--color-white);
}

.cta-band .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-white);
    box-shadow: 0 0 24px rgba(255,255,255,0.15);
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ── Keyframes ────────────────────────────── */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 0.5; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--color-accent); }
    50%       { opacity: 0.5; box-shadow: none; }
}

@keyframes scrollPulse {
    0%   { transform: scaleY(1); opacity: 1; }
    50%  { transform: scaleY(0.5); opacity: 0.4; }
    100% { transform: scaleY(1); opacity: 1; }
}

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

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }

    .stat-item + .stat-item::before { display: none; }
    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .stat-item:nth-child(n+3) { border-bottom: none; }

    .about-snap-inner { grid-template-columns: 1fr; gap: 48px; }
    .about-visual     { order: -1; }
    .about-orb        { width: 240px; height: 240px; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.4rem; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
}
