/* ============================================================
   Code Cortex — Tech Noir Design System
   Deep navy canvas · electric purple accent · Geist + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --tech-navy: #0a0e1a;
    --tech-charcoal: #111827;
    --brand: #00d4ff;
    --brand-dark: #0099cc;
    --brand-light: #66e5ff;
    --accent: #e91e8c;
    --accent-light: #ff5cb8;
    --brand-soft: rgba(0, 212, 255, 0.12);
    --accent-soft: rgba(233, 30, 140, 0.12);
    --ink: #e8eaed;
    --muted: #9ca3af;
    --bg: #0a0e1a;
    --bg-alt: #111827;
    --bg-deep: #060a12;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #e91e8c 100%);
    --gradient-brand-h: linear-gradient(90deg, #00d4ff 0%, #e91e8c 100%);
}

html { scroll-behavior: smooth; font-size: 13px; }

body {
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Geist', 'Inter', sans-serif; }

::selection { background: var(--brand); color: #000; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 8px; }

/* ── Gradient text ────────────────────────────────────────── */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background: var(--gradient-brand-h);
    color: #000;
    font-weight: 700;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(233, 30, 140, 0.2);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.btn-outline:hover {
    background: var(--brand-soft);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--bg-deep);
    color: #fff;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.btn-dark:hover { transform: translateY(-2px); }

/* ── Navigation ──────────────────────────────────────────── */
.nav-link {
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .04em;
    color: var(--muted);
    transition: color .25s;
    position: relative;
}
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

/* ── Tech Card (charcoal + cyan accent bar) ──────────────── */
.tech-card {
    position: relative;
    background-color: var(--tech-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-brand-h);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.tech-card:hover, .tech-card.lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1), 0 0 60px rgba(233, 30, 140, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

/* ── Pill filters ────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .82rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    background: transparent;
    transition: all .3s;
    cursor: pointer;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.active {
    background: var(--brand);
    color: #000;
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 26px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.feature-visual {
    background: linear-gradient(135deg, rgba(0, 212, 255, .08) 0%, rgba(233, 30, 140, .05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* ── Logo marquee ───────────────────────────────────────── */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 3.5rem;
    animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--tech-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
    font-size: 1.02rem;
    white-space: nowrap;
    transition: all .3s;
}
.logo-chip:hover { color: var(--brand); border-color: rgba(0, 212, 255, 0.3); }

/* ── Reveal animation (progressive enhancement: visible without JS) ── */
.fade-up { opacity: 1; transform: none; }
.js .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}
.js .fade-up.in { opacity: 1; transform: translateY(0); }

/* ── Form fields ─────────────────────────────────────────── */
.input-glow {
    background: var(--tech-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color .3s, box-shadow .3s;
}
.input-glow:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.line-clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400; }

/* ── Sun-ray (wavy) circular image frame ─────────────────── */
.sun-rays {
    background: repeating-conic-gradient(#00d4ff 0 3deg, transparent 3deg 12deg);
    -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%);
    mask: radial-gradient(circle, transparent 57%, #000 58%);
    opacity: .5;
    animation: spin-slow 28s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.float-anim { animation: float-soft 6s ease-in-out infinite; }
@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.wavy-spin {
    transform-box: fill-box;
    transform-origin: center;
}
.wavy-spin path {
    fill: none;
    stroke: #00d4ff;
    stroke-width: 0.5;
    opacity: 0.6;
}

/* ── Text glow + service card link ───────────────────────── */
.tech-glow { text-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
.service-card .learn {
    display: inline-flex; align-items: center; gap: .25rem;
    font-weight: 600; font-size: .875rem; color: var(--brand);
}
.service-card:hover .learn span { transform: translateX(4px); }
.service-card .learn span { transition: transform .25s ease; }

/* ── Footprint band ─────────────────────────────────────── */
.footprint {
    background: linear-gradient(135deg, #0a0e1a 0%, #0d2a3a 50%, #1a0a20 100%);
}
.footprint .num { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.footprint .lbl { color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .6rem; }

/* ── Doctrine ───────────────────────────────────────────── */
.doctrine {
    background: var(--brand-soft);
    border: 1px solid rgba(0, 212, 255, 0.2);
}
.doctrine .step {
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.doctrine .step .ix {
    width: 3rem; height: 3rem; border-radius: 9999px;
    background: var(--gradient-brand-h); color: #000; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}

.trust-strip {
    background: var(--bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Team cards — circular shape with gradient ring + glow */
.team-card {
    position: relative;
    background: var(--gradient-brand);
    border-radius: 9999px;
    padding: 2px;
    transition: transform .35s ease, filter .35s ease;
}
.team-card:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 14px 34px rgba(0, 212, 255, 0.3));
}
.team-card-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #111827, #0a0e1a);
    border-radius: 9999px;
}
.team-card-inner::before {
    content: "";
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* ── Hero wave decoration ───────────────────────────────── */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}
.hero-waves svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}
