/* ============================================================
   CONSULTIN AI — Premium Dark Cyber Theme
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colours */
    --black: #000000;
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e16;
    --bg-card: #12121c;
    --bg-card-hover: #16162a;
    --surface: #1a1a2e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f0f0f5;
    --text-secondary: #9999b0;
    --text-muted: #666680;

    --cyan: #00e5ff;
    --cyan-dim: rgba(0, 229, 255, 0.15);
    --cyan-glow: rgba(0, 229, 255, 0.3);
    --violet: #7c4dff;
    --violet-dim: rgba(124, 77, 255, 0.15);
    --violet-glow: rgba(124, 77, 255, 0.3);
    --gradient: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --letter-tight: -0.03em;
    --letter-tighter: -0.04em;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 120px);
    --container: 1200px;
    --container-narrow: 800px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover { color: #fff; }

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

::selection {
    background: var(--cyan-dim);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: var(--letter-tighter);
    line-height: 1.15;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: var(--letter-tight);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    padding: 12px 28px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.btn-primary:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--cyan-glow), 0 0 60px rgba(0, 229, 255, 0.1);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    color: #fff;
    border-color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ---------- Sections ---------- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .dash-card, .hero-glow, .cta-glow, .scroll-line,
    .dash-network circle animate, .hero-grid {
        animation: none !important;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--duration) var(--ease), padding var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo:hover { color: var(--text-primary); }

.logo-mark {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.06em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hover);
    background: var(--bg-card);
}

.logo-accent {
    color: var(--cyan);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: var(--letter-tight);
}

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.header-cta {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow--1 {
    width: 600px;
    height: 600px;
    background: var(--cyan);
    top: -200px;
    right: -100px;
    opacity: 0.08;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--2 {
    width: 500px;
    height: 500px;
    background: var(--violet);
    bottom: -200px;
    left: -100px;
    opacity: 0.06;
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50% { opacity: 0.12; transform: scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    line-height: 1.08;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-icon {
    color: var(--cyan);
    flex-shrink: 0;
}

/* Hero Dashboard Visual */
.hero-visual {
    position: relative;
    height: 480px;
}

.dashboard-mock {
    position: relative;
    width: 100%;
    height: 100%;
}

.dash-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.dash-card {
    position: absolute;
    background: rgba(18, 18, 30, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    min-width: 200px;
    animation: floatCard 6s ease-in-out infinite;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dash-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dash-card--1 { top: 5%; left: 0; animation-delay: 0s; }
.dash-card--2 { top: 15%; right: 0; animation-delay: -1.5s; }
.dash-card--3 { bottom: 15%; left: 5%; animation-delay: -3s; }
.dash-card--4 { bottom: 5%; right: 5%; animation-delay: -4.5s; }

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

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dash-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.dash-dot--green { background: #4caf50; }
.dash-dot--cyan { background: var(--cyan); }
.dash-dot--violet { background: var(--violet); }

.dash-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.dash-bar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.dash-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.dash-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient);
    animation: barGrow 2s ease-out forwards;
    transform-origin: left;
}

@keyframes barGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.dash-stat {
    font-size: 0.7rem;
    color: var(--cyan);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.dash-chat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.dash-msg {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 8px;
    max-width: 160px;
}

.dash-msg--bot {
    background: rgba(0, 229, 255, 0.08);
    color: var(--text-secondary);
    align-self: flex-start;
}

.dash-msg--user {
    background: rgba(124, 77, 255, 0.1);
    color: var(--text-secondary);
    align-self: flex-end;
}

.dash-kpi-row {
    display: flex;
    gap: 20px;
}

.dash-kpi {
    display: flex;
    flex-direction: column;
}

.dash-kpi-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: var(--letter-tight);
}

.dash-kpi-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dash-integrations {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dash-chip {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.dash-chip--active {
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================================
   VALUE PROPOSITION
   ============================================================ */
.section-value {
    background: var(--bg-secondary);
}

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

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--duration) var(--ease);
}

.value-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.value-icon {
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.value-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   AI SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px 30px;
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.service-card-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    border-radius: 2px;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

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

.service-icon {
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.65;
}

.service-outcomes {
    margin-bottom: 20px;
}

.service-outcomes li {
    position: relative;
    padding-left: 18px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-outcomes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.6;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4caf50;
}

.badge-dot--cyan { background: var(--cyan); }
.badge-dot--violet { background: var(--violet); }

/* ============================================================
   IT SERVICES
   ============================================================ */
.section-it {
    background: var(--bg-secondary);
}

.it-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.it-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--duration) var(--ease);
}

.it-card:hover {
    border-color: rgba(124, 77, 255, 0.2);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.it-icon {
    margin-bottom: 16px;
}

.it-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.it-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   OUTCOMES
   ============================================================ */
.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.outcome-card {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
}

.outcome-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.outcome-challenge,
.outcome-result {
    flex: 1;
    padding: 24px;
}

.outcome-challenge {
    background: rgba(255, 255, 255, 0.01);
}

.outcome-result {
    background: rgba(0, 229, 255, 0.02);
}

.outcome-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.outcome-label--result {
    color: var(--cyan);
}

.outcome-challenge p,
.outcome-result p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.outcome-arrow {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: var(--cyan);
}

/* ============================================================
   PROCESS
   ============================================================ */
.section-process {
    background: var(--bg-secondary);
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--cyan), var(--violet));
    opacity: 0.2;
}

.process-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: var(--letter-tight);
    color: var(--cyan);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.process-content {
    padding-top: 8px;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.65;
}

.process-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--duration) var(--ease);
}

.why-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.why-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    opacity: 0.2;
    margin-bottom: 16px;
    letter-spacing: var(--letter-tight);
}

.why-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   FAQ
   ============================================================ */
.section-faq {
    background: var(--bg-secondary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color var(--duration) var(--ease);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    gap: 16px;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--cyan);
}

/* ============================================================
   CTA
   ============================================================ */
.section-cta {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.cta-glow--1 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    top: -100px;
    left: 20%;
    opacity: 0.06;
}

.cta-glow--2 {
    width: 300px;
    height: 300px;
    background: var(--violet);
    bottom: -100px;
    right: 20%;
    opacity: 0.05;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-detail a {
    color: var(--text-secondary);
}

.contact-detail a:hover {
    color: var(--cyan);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.required {
    color: var(--cyan);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-select {
    background-color: #000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239999b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select option {
    background: #000;
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-consent {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    margin-top: 1px;
    transition: all 0.2s var(--ease);
    position: relative;
}

.form-checkbox:checked + .checkbox-custom {
    background: var(--cyan);
    border-color: var(--cyan);
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox:focus-visible + .checkbox-custom {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.form-submit {
    width: 100%;
}

.form-status {
    margin-top: 16px;
    font-size: 0.875rem;
    text-align: center;
    min-height: 24px;
}

.form-status--success { color: #4caf50; }
.form-status--error { color: #ff5252; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
    flex-wrap: wrap;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--cyan); }

.footer-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        height: 360px;
    }

    .services-grid,
    .why-grid,
    .it-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease);
        z-index: 999;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: 10px 20px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-visual {
        height: 280px;
    }

    .dash-card {
        min-width: 160px;
        padding: 14px 16px;
    }

    .services-grid,
    .why-grid,
    .it-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .outcome-card {
        flex-direction: column;
    }

    .outcome-arrow {
        padding: 4px 24px;
        justify-content: flex-start;
    }

    .process-step {
        gap: 20px;
    }

    .process-number {
        width: 56px;
        height: 56px;
        font-size: 1rem;
    }

    .process-line {
        left: 27px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-visual {
        height: 240px;
    }

    .dash-card--2 { right: -10px; }
    .dash-card--4 { right: -10px; }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

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

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ---------- Scanline Overlay ---------- */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.008) 2px,
        rgba(255, 255, 255, 0.008) 4px
    );
}

/* ============================================================
   PORTFOLIO / CAPABILITIES (internal-managed sites)
   ============================================================ */
.section-portfolio {
    background: var(--bg-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--duration) var(--ease);
    overflow: hidden;
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-kind {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 18px;
}

.portfolio-headline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
}

.portfolio-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--cyan);
    letter-spacing: 0.02em;
}

.portfolio-note {
    margin-top: 32px;
    padding: 20px 24px;
    background: rgba(124, 77, 255, 0.04);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL / DOC PAGES (about, privacy, terms)
   ============================================================ */
.doc-hero {
    padding: 160px 0 60px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.doc-hero .hero-glow {
    z-index: 0;
}

.doc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.doc-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    line-height: 1.1;
}

.doc-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

.doc-meta {
    margin-top: 28px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    letter-spacing: 0.04em;
}

.doc-body {
    padding: 80px 0 120px;
}

.doc-body .container--narrow {
    max-width: 760px;
}

.doc-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 56px 0 16px;
    letter-spacing: var(--letter-tighter);
    color: var(--text-primary);
}

.doc-body h2:first-child {
    margin-top: 0;
}

.doc-body h3 {
    font-size: 1.075rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--text-primary);
}

.doc-body p,
.doc-body li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.doc-body p {
    margin-bottom: 16px;
}

.doc-body ul {
    margin: 0 0 18px 0;
    padding-left: 0;
}

.doc-body ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    list-style: none;
}

.doc-body ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.6;
}

.doc-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.doc-body a {
    color: var(--cyan);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    transition: border-color var(--duration) var(--ease);
}

.doc-body a:hover {
    border-bottom-color: var(--cyan);
}

.doc-body .info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 32px 0;
}

.doc-body .info-card p:last-child {
    margin-bottom: 0;
}

.doc-body .info-card .info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.doc-body .info-card .info-row:last-child {
    border-bottom: none;
}

.doc-body .info-card .info-label {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.doc-body .info-card .info-value {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .doc-body .info-card .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ============================================================
   FOOTER (extended for legal links)
   ============================================================ */
.footer-meta {
    text-align: center;
    padding: 16px 0 0;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-meta strong {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.footer-meta-row span {
    color: var(--text-muted);
}

/* ---------- Divider Lines ---------- */
.section-ai::before,
.section-outcomes::before,
.section-why::before,
.section-cta::before,
.section-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}


/* ============================================================
   PORTFOLIO — THUMB GRID + CASE STUDIES (added)
   ============================================================ */
.portfolio-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.portfolio-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .6s ease;
}
.portfolio-thumb:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 40px rgba(0, 229, 255, .08);
}
.portfolio-thumb:hover img { transform: scale(1.04); }
.portfolio-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10,10,15,.55) 100%);
    pointer-events: none;
}
@media (max-width: 1024px) {
    .portfolio-thumb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .portfolio-thumb-grid { grid-template-columns: 1fr; }
}

/* Case study layout */
.portfolio-cases {
    display: flex;
    flex-direction: column;
    gap: 96px;
    margin-top: 56px;
}
.case {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}
.case--reverse { grid-template-columns: 1fr 1.15fr; }
.case--reverse .case-shot { order: 2; }
.case--reverse .case-body { order: 1; }

.case-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform .4s ease, border-color .4s ease;
}
.case-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .8s ease;
}
.case-shot:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.case-shot:hover img { transform: scale(1.03); }

.case-body .portfolio-kind { margin-bottom: 16px; }
.case-title {
    font-family: var(--font-heading, var(--font-primary));
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    margin: 0 0 16px;
    color: var(--text-primary);
}
.case-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 20px;
}
.case-body .portfolio-tags { margin-top: 8px; }

@media (max-width: 900px) {
    .portfolio-cases { gap: 64px; }
    .case, .case--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .case--reverse .case-shot { order: 0; }
    .case--reverse .case-body { order: 0; }
}
