/* ============================================================
   BSS Rasovic — Premium Landing Page Stylesheet
   Palette: Deep Navy + Professional Blue
   ============================================================ */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
    /* Core blues */
    --c-bg-deep:        #060D1A;
    --c-bg-surface:     #080F22;
    --c-bg-card:        #0C1B33;
    --c-bg-card-hover:  #0F2241;
    --c-bg-alt:         #091428;

    /* Accent blues */
    --c-blue-vivid:     #1D70E2;
    --c-blue-mid:       #1556BE;
    --c-blue-deep-acc:  #0F3D8C;
    --c-blue-light:     #4DA8FF;
    --c-blue-pale:      #8ABEF8;

    /* Borders */
    --c-border:         rgba(30, 90, 180, 0.18);
    --c-border-strong:  rgba(45, 120, 230, 0.40);
    --c-border-glow:    rgba(77, 168, 255, 0.55);

    /* Glow */
    --c-glow:           rgba(29, 112, 226, 0.13);
    --c-glow-strong:    rgba(29, 112, 226, 0.28);

    /* Text */
    --c-text-primary:   #EBF4FF;
    --c-text-secondary: #8BAED8;
    --c-text-muted:     #4E6D8C;
    --c-white:          #FFFFFF;

    /* Gradients */
    --grad-btn:         linear-gradient(135deg, #1D70E2 0%, #1248B5 100%);
    --grad-btn-hover:   linear-gradient(135deg, #2580F5 0%, #1556CC 100%);
    --grad-text:        linear-gradient(135deg, #60B4FF 0%, #1D70E2 50%, #55AAFF 100%);
    --grad-hero:        linear-gradient(180deg, #060D1A 0%, #080F22 100%);
    --grad-section:     linear-gradient(180deg, #080F22 0%, #060D1A 100%);
    --grad-cta:         linear-gradient(135deg, #0D2952 0%, #0A1F3F 50%, #091428 100%);

    /* Typography */
    --font-main:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-py:       100px;
    --section-py-sm:    64px;

    /* Transitions */
    --transition:       all 0.25s ease;
    --transition-slow:  all 0.4s ease;

    /* Radius */
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;

    /* Navbar */
    --navbar-h:         80px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--c-bg-deep);
    color: var(--c-text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    color: var(--c-text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);   font-weight: 700; }
h3 { font-size: 1.35rem;  font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem;     font-weight: 600; }

p { line-height: 1.75; }

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-blue-light);
    margin-bottom: 16px;
    padding: 5px 14px;
    border: 1px solid rgba(77, 168, 255, 0.25);
    border-radius: 100px;
    background: rgba(29, 112, 226, 0.07);
}

/* ── 4. Utility Classes ───────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--c-text-muted); }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--grad-btn);
    color: var(--c-white);
    box-shadow: 0 4px 20px rgba(29, 112, 226, 0.25);
}

.btn-primary:hover {
    background: var(--grad-btn-hover);
    box-shadow: 0 8px 32px rgba(29, 112, 226, 0.40);
    transform: translateY(-1px);
    color: var(--c-white);
}

.btn-ghost {
    background: transparent;
    color: var(--c-blue-pale);
    border: 1px solid rgba(77, 168, 255, 0.35);
}

.btn-ghost:hover {
    background: rgba(29, 112, 226, 0.1);
    border-color: rgba(77, 168, 255, 0.6);
    color: var(--c-text-primary);
    transform: translateY(-1px);
}

.btn-outline-sm {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid rgba(77, 168, 255, 0.35);
    border-radius: var(--radius-sm);
    color: var(--c-blue-pale);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-sm:hover {
    border-color: var(--c-blue-light);
    color: var(--c-text-primary);
    background: rgba(29, 112, 226, 0.1);
}

/* ── 6. Container & Layout ────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--c-text-secondary);
    line-height: 1.7;
}

/* ── 7. Navbar ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(6, 13, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(30, 90, 180, 0.2), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-initials {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-full {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--c-text-secondary);
    letter-spacing: 0.01em;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    padding: 6px 10px;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-text-primary);
}

.navbar-cta {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-text-secondary);
    transition: var(--transition);
    transform-origin: center;
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-h);
    overflow: hidden;
    background: var(--c-bg-deep);
}

/* Video background container */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.65;
}

/* Dark gradient overlay — keeps text legible, preserves blue identity */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(6, 13, 26, 0.35) 0%,
            rgba(6, 13, 26, 0.15) 40%,
            rgba(6, 13, 26, 0.45) 80%,
            rgba(6, 13, 26, 0.85) 100%),
        radial-gradient(ellipse 80% 55% at 50% 30%, rgba(29, 112, 226, 0.12) 0%, transparent 65%);
}

/* Grid texture still visible on top */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(29, 112, 226, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 112, 226, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 780px;
    padding: 80px 0 100px;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-blue-light);
    margin-bottom: 28px;
    padding: 6px 16px;
    border: 1px solid rgba(77, 168, 255, 0.28);
    border-radius: 100px;
    background: rgba(29, 112, 226, 0.08);
}

.hero-title {
    margin-bottom: 28px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--c-text-secondary);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(77, 168, 255, 0.5), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease infinite;
}

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

/* ── 9. Intro Strip ───────────────────────────────────────── */
.intro-strip {
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(29, 112, 226, 0.07) 0%, transparent 70%),
        linear-gradient(180deg, #09132A 0%, #080F20 100%);
    padding: 80px 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.intro-strip-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.intro-statement {
    font-size: clamp(1.5rem, 2.5vw, 2.125rem);
    font-weight: 600;
    color: var(--c-text-primary);
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.intro-detail {
    font-size: 1.0625rem;
    color: var(--c-text-secondary);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* ── 10. Differentiators ──────────────────────────────────── */
.differentiators {
    padding: var(--section-py) 0;
    background: var(--c-bg-deep);
}

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

.diff-card {
    padding: 44px 36px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.diff-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(29, 112, 226, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.diff-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: 0 8px 40px rgba(29, 112, 226, 0.12), 0 0 0 1px rgba(45, 120, 230, 0.08) inset;
    transform: translateY(-4px);
}

.diff-card.featured {
    border-color: rgba(29, 112, 226, 0.35);
    background: linear-gradient(160deg, #0F2241 0%, #0C1B33 100%);
}

.diff-card.featured::before {
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(29, 112, 226, 0.12) 0%, transparent 70%);
}

.diff-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 112, 226, 0.1);
    border: 1px solid rgba(29, 112, 226, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    font-size: 1.375rem;
    color: var(--c-blue-light);
}

.diff-card h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.diff-card p {
    color: var(--c-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── 11. Philosophy ───────────────────────────────────────── */
.philosophy {
    padding: var(--section-py) 0;
    background: var(--c-bg-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

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

.pillar {
    padding: 52px 44px;
    border-right: 1px solid var(--c-border);
    transition: var(--transition);
}

.pillar:last-child { border-right: none; }

.pillar:hover {
    background: rgba(29, 112, 226, 0.04);
}

.pillar-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--c-blue-vivid);
    margin-bottom: 20px;
    opacity: 0.7;
}

.pillar-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--c-text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.pillar-text {
    font-size: 0.9375rem;
    color: var(--c-text-secondary);
    line-height: 1.75;
}

/* ── 12. How We Work ──────────────────────────────────────── */
.process {
    padding: var(--section-py) 0;
    background: var(--c-bg-deep);
}

/* Container — houses the animated line and grid */
.steps-container {
    position: relative;
    padding-top: 8px;
}

/* ── Animated connector line (desktop only) ── */
.process-line {
    position: absolute;
    top: 44px;                          /* vertically centered on 88px circles */
    left: calc(12.5% + 24px);          /* starts at center of first circle */
    width: 0;                           /* JS animates this to target */
    height: 1px;
    background: linear-gradient(90deg,
        var(--c-blue-vivid) 0%,
        var(--c-blue-light) 50%,
        var(--c-blue-vivid) 100%);
    box-shadow: 0 0 8px rgba(77, 168, 255, 0.45), 0 0 16px rgba(29, 112, 226, 0.2);
    z-index: 0;
    transition: width 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* ── Steps grid ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* ── Individual step ── */
.step {
    text-align: center;
    padding: 0 16px 28px;
    border-radius: var(--radius-lg);
    transition: transform 0.35s ease, background 0.35s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-6px);
    background: rgba(29, 112, 226, 0.04);
}

/* ── Circle node wrapper (for pulse ring positioning) ── */
.step-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
}

/* Pulse ring — animates on hover and after reveal */
.step-pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(77, 168, 255, 0);
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.step:hover .step-pulse-ring {
    border-color: rgba(77, 168, 255, 0.3);
    animation: pulseRingHover 1.8s ease infinite;
}

/* The actual circle */
.step-number {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F2241 0%, #0C1B33 100%);
    border: 1px solid var(--c-border-strong);
    font-size: 1.375rem;
    color: var(--c-blue-light);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--c-bg-deep), 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;

    /* Pre-reveal hidden state */
    opacity: 0;
    transform: scale(0);
}

/* Revealed state — added by JS */
.step-number.proc-circle-revealed {
    opacity: 1;
    transform: scale(1);
    animation: circlePopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Post-reveal float — added by JS after pop-in completes */
.step-number.proc-float {
    animation: procFloat 3.6s ease-in-out infinite;
}

.step:hover .step-number {
    border-color: var(--c-blue-light);
    box-shadow: 0 0 0 6px var(--c-bg-deep), 0 0 28px rgba(77, 168, 255, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
    color: var(--c-white);
}

.step:hover .step-number.proc-float {
    animation: none;    /* pause float on hover */
}

/* Icon hover micro-rotation */
.step-number i {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.step:hover .step-number i {
    transform: rotate(12deg) scale(1.15);
}

/* ── Step content — pre-reveal hidden ── */
.step-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-content.proc-content-revealed {
    opacity: 1;
    transform: translateY(0);
}

.step-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--c-text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.step-text {
    font-size: 0.875rem;
    color: var(--c-text-secondary);
    line-height: 1.75;
}

/* ── Mobile vertical connector track ── */
.steps-track {
    display: none;          /* shown via media query */
    position: absolute;
    left: 44px;             /* center of mobile circle (88px wide, centered at ~44px from left of step) */
    top: 88px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--c-border-strong) 0%, transparent 100%);
    z-index: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.6s ease;
}

.steps-track.drawn { transform: scaleY(1); }

/* ── Keyframes ── */
@keyframes circlePopIn {
    0%   { opacity: 0; transform: scale(0); }
    60%  { opacity: 1; transform: scale(1.12); }
    80%  {             transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes pulseRingHover {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.5); opacity: 0;   }
    100% { transform: scale(1);   opacity: 0;   }
}

@keyframes mobileBounce {
    0%   { transform: scale(0)    translateX(-18px); opacity: 0; }
    55%  { transform: scale(1.1)  translateX(3px);   opacity: 1; }
    80%  { transform: scale(0.95) translateX(0);     opacity: 1; }
    100% { transform: scale(1)    translateX(0);     opacity: 1; }
}

/* Mobile sub-element reveal states */
.mob-circle-hidden .step-number {
    opacity: 0;
    transform: scale(0) translateX(-18px);
}

.mob-title-hidden { opacity: 0; transform: translateY(10px); transition: none; }
.mob-text-hidden  { opacity: 0; transform: translateY(10px); transition: none; }

.mob-circle-revealed .step-number {
    animation: mobileBounce 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards !important;
}

.mob-title-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.45s ease, transform 0.45s ease !important;
}

.mob-text-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.45s ease, transform 0.45s ease !important;
}

/* ── 13. What We Build ────────────────────────────────────── */
.builds {
    padding: var(--section-py) 0;
    background: var(--c-bg-surface);
    border-top: 1px solid var(--c-border);
}

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

.build-card {
    padding: 36px 30px;
    background: var(--c-bg-deep);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.build-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-btn);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.build-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: 0 6px 32px rgba(29, 112, 226, 0.1);
    transform: translateY(-3px);
}

.build-card:hover::after { transform: scaleX(1); }

.build-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 112, 226, 0.08);
    border: 1px solid rgba(29, 112, 226, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: var(--c-blue-light);
}

.build-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--c-text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.build-text {
    font-size: 0.9rem;
    color: var(--c-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.build-tag {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--c-blue-pale);
    padding: 3px 10px;
    border: 1px solid rgba(30, 90, 180, 0.25);
    border-radius: 4px;
    background: rgba(15, 40, 90, 0.4);
}

/* ── 14. Industries ───────────────────────────────────────── */
.industries {
    padding: var(--section-py) 0;
    background: var(--c-bg-deep);
}

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

.industry-item {
    padding: 22px 20px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.industry-item:hover {
    border-color: var(--c-border-strong);
    background: var(--c-bg-card-hover);
    transform: translateY(-2px);
}

.industry-icon {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--c-blue-light);
}

.industry-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-primary);
    margin-bottom: 4px;
}

.industry-desc {
    font-size: 0.78rem;
    color: var(--c-text-muted);
}

/* ── 15. Technologies ─────────────────────────────────────── */
.technologies {
    padding: var(--section-py) 0;
    background: var(--c-bg-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.tech-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 60px;
}

.tech-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-blue-light);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

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

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(15, 32, 70, 0.6);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(29, 112, 226, 0.12);
    border-color: var(--c-border-strong);
    color: var(--c-blue-pale);
}

/* ── 16. Innovation Examples ──────────────────────────────── */
.innovation {
    padding: var(--section-py) 0;
    background: var(--c-bg-deep);
    overflow: hidden;
}

.inno-carousel-wrapper {
    position: relative;
}

.innovation-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.innovation-grid::-webkit-scrollbar { display: none; }

.inno-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--c-border-strong);
    background: var(--c-bg-card);
    color: var(--c-blue-light);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    opacity: 0.85;
}
.inno-arrow:hover {
    background: var(--c-blue-vivid);
    border-color: var(--c-blue-vivid);
    color: #fff;
    opacity: 1;
}
.inno-arrow:disabled {
    opacity: 0.25;
    pointer-events: none;
}
.inno-arrow-prev { left: -22px; }
.inno-arrow-next { right: -22px; }

.case-card {
    padding: 44px 36px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* 3 full cards visible + ~72px peek of the 4th */
    flex: 0 0 calc((100% - 2 * 24px - 72px) / 3);
    scroll-snap-align: start;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-btn);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.case-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: 0 10px 48px rgba(29, 112, 226, 0.14);
    transform: translateY(-4px);
}

.case-card:hover::before { transform: scaleX(1); }

.case-sector {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-blue-light);
    padding: 4px 12px;
    border: 1px solid rgba(77, 168, 255, 0.25);
    border-radius: 100px;
    background: rgba(29, 112, 226, 0.08);
    margin-bottom: 28px;
    align-self: flex-start;
}

.case-challenge-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 8px;
}

.case-challenge {
    font-size: 0.9375rem;
    color: var(--c-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.case-built-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--c-blue-vivid);
    opacity: 0.7;
    margin-bottom: 8px;
}

.case-built {
    font-size: 0.9375rem;
    color: var(--c-text-primary);
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 28px;
    flex: 1;
}

.case-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
    margin-top: auto;
}

.case-tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--c-blue-pale);
    padding: 3px 10px;
    border: 1px solid rgba(30, 90, 180, 0.25);
    border-radius: 3px;
    background: rgba(15, 40, 90, 0.4);
}

/* ── 17. CTA Section ──────────────────────────────────────── */
.cta-section {
    padding: 120px 0;
    background: var(--grad-cta);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(30, 90, 180, 0.2);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(29, 112, 226, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(15, 72, 180, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29, 112, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 112, 226, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

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

.cta-title {
    font-size: clamp(1.875rem, 3.5vw, 2.875rem);
    font-weight: 700;
    color: var(--c-text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: var(--c-text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ── 18. Footer ───────────────────────────────────────────── */
.footer {
    background: var(--c-bg-deep);
    border-top: 1px solid var(--c-border);
}

.footer-main {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-blue-vivid);
    margin-bottom: 16px;
    opacity: 0.75;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.75;
    max-width: 300px;
}

.footer-grid h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.footer-links ul li,
.footer-capabilities ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--c-text-secondary);
}

.footer-capabilities ul li {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: 20px;
    line-height: 1.65;
}

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

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

.footer-legal {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-legal p {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 6px;
}

.footer-legal-sep {
    opacity: 0.35;
}

.footer-legal-link {
    margin-left: 6px;
    color: rgba(77, 168, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.footer-legal-link:hover {
    color: #0a66c2;
}

/* ── Privacy Policy Page ──────────────────────────────────── */
.privacy-hero {
    padding: 100px 0 48px;
    background: var(--c-bg-deep);
    border-bottom: 1px solid var(--c-border);
}

.privacy-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--c-text-primary);
    margin: 12px 0 8px;
}

.privacy-meta {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.privacy-body {
    padding: 64px 0 100px;
    background: var(--c-bg);
}

.privacy-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.privacy-block h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.privacy-block p,
.privacy-block li {
    font-size: 0.9375rem;
    color: var(--c-text-secondary);
    line-height: 1.75;
}

.privacy-block p + p { margin-top: 12px; }

.privacy-block ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.privacy-block a {
    color: var(--c-blue-light);
    text-decoration: none;
}
.privacy-block a:hover { text-decoration: underline; }

.privacy-block code {
    font-family: monospace;
    font-size: 0.875rem;
    background: rgba(29, 112, 226, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--c-blue-light);
}

.privacy-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.privacy-table th {
    text-align: left;
    padding: 10px 14px;
    background: rgba(29, 112, 226, 0.08);
    color: var(--c-blue-light);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--c-border);
}

.privacy-table td {
    padding: 10px 14px;
    color: var(--c-text-secondary);
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
    line-height: 1.55;
}

.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table tr:hover td { background: rgba(255,255,255,0.02); }

.privacy-note {
    font-size: 0.85rem !important;
    color: var(--c-text-muted) !important;
    background: rgba(29, 112, 226, 0.05);
    border-left: 3px solid var(--c-blue-vivid);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-top: 12px;
}

.footer-legal-li-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ── 19. Animations ───────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }

/* ── 19b. Contact Modal ───────────────────────────────────── */

/* Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 9, 18, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.modal-open {
    opacity: 1;
    visibility: visible;
}

/* Box */
.modal-box {
    background: linear-gradient(160deg, #0D1E3A 0%, #091428 100%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 44px 48px;
    position: relative;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(45, 120, 230, 0.06) inset,
        0 0 60px rgba(29, 112, 226, 0.06);

    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.modal-backdrop.modal-open .modal-box {
    transform: translateY(0) scale(1);
}

/* Scrollbar inside modal */
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(29, 112, 226, 0.3); border-radius: 4px; }

/* Header */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.modal-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-blue-light);
    margin-bottom: 10px;
    padding: 4px 12px;
    border: 1px solid rgba(77, 168, 255, 0.25);
    border-radius: 100px;
    background: rgba(29, 112, 226, 0.08);
}

.modal-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--c-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 4px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--c-border-strong);
    color: var(--c-text-secondary);
}

/* Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.modal-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    letter-spacing: 0.01em;
}

.modal-field .req {
    color: var(--c-blue-light);
    margin-left: 2px;
}

.modal-field input,
.modal-field textarea {
    background: rgba(6, 13, 26, 0.6);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-primary);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    caret-color: var(--c-blue-light);
    resize: vertical;
}

.modal-field input::placeholder,
.modal-field textarea::placeholder {
    color: var(--c-text-muted);
    font-size: 0.875rem;
}

.modal-field input:focus,
.modal-field textarea:focus {
    border-color: rgba(77, 168, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(29, 112, 226, 0.12);
    background: rgba(8, 18, 38, 0.8);
}

/* Validation states */
.modal-field input.field-error,
.modal-field textarea.field-error {
    border-color: rgba(220, 60, 60, 0.6);
    box-shadow: 0 0 0 3px rgba(200, 50, 50, 0.1);
}

/* Feedback message */
.modal-feedback {
    font-size: 0.875rem;
    min-height: 20px;
    line-height: 1.5;
    display: none;
}

.modal-feedback.feedback-error {
    display: block;
    color: #E07070;
}

.modal-feedback.feedback-success {
    display: block;
    color: var(--c-blue-light);
}

/* Footer row */
.modal-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.modal-note {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

/* Submit button states */
.modal-submit {
    position: relative;
    min-width: 172px;
}

.submit-spinner { display: none; }
.submit-icon    { font-size: 0.8em; }

.modal-submit.loading .submit-label { opacity: 0; }
.modal-submit.loading .submit-spinner { display: inline-flex; position: absolute; left: 50%; transform: translateX(-50%); }
.modal-submit.loading .submit-icon   { opacity: 0; }

.modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Success state */
.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 20px;
    gap: 16px;
}

.modal-success.active { display: flex; }

.modal-success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(29, 112, 226, 0.1);
    border: 1px solid rgba(77, 168, 255, 0.4);
    font-size: 1.5rem;
    color: var(--c-blue-light);
    box-shadow: 0 0 32px rgba(29, 112, 226, 0.2);
    animation: circlePopIn 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.modal-success h3 {
    font-size: 1.375rem;
    color: var(--c-text-primary);
}

.modal-success p {
    color: var(--c-text-secondary);
    font-size: 0.9375rem;
    max-width: 360px;
    line-height: 1.7;
}

/* Body lock when modal is open */
body.modal-lock { overflow: hidden; }

/* ── Modal responsive ── */
@media (max-width: 680px) {
    .modal-box {
        padding: 32px 24px;
        max-height: calc(100dvh - 40px);
    }

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

    .modal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-submit { width: 100%; justify-content: center; }
}

/* ── 20. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 960px) {
    :root {
        --section-py: 80px;
    }

    .navbar-container { padding: 0 24px; }

    .navbar-menu {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        background: rgba(6, 13, 26, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 24px 32px;
        gap: 8px;
        border-bottom: 1px solid var(--c-border);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .navbar-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-link {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(30, 90, 180, 0.1);
        font-size: 0.9375rem;
    }

    .navbar-cta { margin-top: 16px; text-align: center; justify-content: center; }

    .navbar-toggle { display: flex; }

    .diff-grid { grid-template-columns: 1fr; gap: 20px; }
    .diff-card.featured { order: -1; }

    .philosophy-grid { grid-template-columns: 1fr; gap: 0; }
    .pillar { border-right: none; border-bottom: 1px solid var(--c-border); }
    .pillar:last-child { border-bottom: none; }

    /* Hide desktop animated line on tablet/mobile */
    .process-line { display: none; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

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

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

    .tech-groups { grid-template-columns: repeat(2, 1fr); gap: 32px; }

    .innovation-grid { gap: 16px; }
    .case-card { flex: 0 0 calc(85% - 8px); }
    .inno-arrow { display: none; }
}

@media (max-width: 680px) {
    :root {
        --section-py: 64px;
        --navbar-h: 68px;
    }

    .container { padding: 0 20px; }

    .hero-content { padding: 60px 0 80px; }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions .btn { width: 100%; justify-content: center; }

    .section-header { margin-bottom: 48px; }

    /* Mobile: single column, left-aligned, with vertical track */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step {
        text-align: left;
        display: flex;
        flex-direction: column;
        padding: 24px 20px;
        background: var(--c-bg-card);
        border: 1px solid var(--c-border);
        border-radius: var(--radius-md);
        position: relative;
    }

    .step:hover { transform: none; }

    .step-node {
        margin: 0 0 20px 0;
        width: 72px;
        height: 72px;
    }

    .step-number {
        width: 72px;
        height: 72px;
        font-size: 1.125rem;
        box-shadow: 0 0 0 4px var(--c-bg-card);
    }

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

    .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .tech-groups { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; }

    .footer-main { padding: 56px 0 40px; }

    .intro-strip { padding: 60px 0; }

    .cta-section { padding: 80px 0; }

    .pillar { padding: 36px 24px; }
}

/* ══════════════════════════════════════════════════════════
   AI CHAT WIDGET
══════════════════════════════════════════════════════════ */

/* ── FAB (floating action button) ── */
.chat-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1500;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-btn);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(29, 112, 226, 0.45), 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease;
    outline: none;
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(29, 112, 226, 0.6), 0 2px 8px rgba(0,0,0,0.3);
}

.chat-fab:active { transform: scale(0.96); }

.chat-fab-icon {
    position: absolute;
    font-size: 1.375rem;
    color: #fff;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.chat-fab-close { opacity: 0; transform: rotate(-90deg) scale(0.7); }
.chat-fab-open  { opacity: 1; transform: rotate(0deg) scale(1); }

.chat-fab.open .chat-fab-open  { opacity: 0; transform: rotate(90deg) scale(0.7); }
.chat-fab.open .chat-fab-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Pulse ring */
.chat-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(77, 168, 255, 0.5);
    animation: chatPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.chat-fab.open .chat-fab-pulse { animation: none; opacity: 0; }

@keyframes chatPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 0; }
}

/* ── Chat window ── */
.chat-window {
    position: fixed;
    bottom: 108px;
    right: 32px;
    z-index: 1499;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 140px);
    background: linear-gradient(160deg, #0D1E3A 0%, #091428 100%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 60px rgba(29, 112, 226, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ── Header ── */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(15, 34, 65, 0.9) 0%, rgba(10, 22, 44, 0.9) 100%);
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(29, 112, 226, 0.15);
    border: 1px solid rgba(77, 168, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--c-blue-light);
    flex-shrink: 0;
}

.chat-header-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text-primary);
    line-height: 1.2;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-top: 2px;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3EB87A;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(62, 184, 122, 0.6);
    animation: statusPulse 2.5s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.chat-header-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--c-text-secondary);
}

/* ── Messages area ── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(29, 112, 226, 0.25); border-radius: 4px; }

/* Message bubbles */
.chat-msg {
    display: flex;
    gap: 9px;
    align-items: flex-end;
    animation: msgIn 0.3s ease forwards;
}

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

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(29, 112, 226, 0.12);
    border: 1px solid rgba(77, 168, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--c-blue-light);
    flex-shrink: 0;
}

.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.65;
    word-break: break-word;
}

/* AI message */
.chat-msg.ai { align-self: flex-start; }

.chat-msg.ai .chat-bubble {
    background: rgba(15, 34, 65, 0.8);
    border: 1px solid var(--c-border);
    border-bottom-left-radius: 4px;
    color: var(--c-text-secondary);
}

/* User message */
.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, #1D70E2 0%, #1248B5 100%);
    border: 1px solid rgba(77, 168, 255, 0.2);
    border-bottom-right-radius: 4px;
    color: #fff;
}

/* Typing indicator */
.chat-typing .chat-bubble {
    background: rgba(15, 34, 65, 0.8);
    border: 1px solid var(--c-border);
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-blue-light);
    animation: typingBounce 1.2s ease infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
    30%            { transform: translateY(-5px); opacity: 1;   }
}

/* Error bubble */
.chat-msg.error .chat-bubble {
    background: rgba(120, 30, 30, 0.3);
    border: 1px solid rgba(200, 60, 60, 0.3);
    color: #E07070;
}

/* ── Input area ── */
.chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid var(--c-border);
    background: rgba(6, 13, 26, 0.5);
    flex-shrink: 0;
}

.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(6, 13, 26, 0.7);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 8px 8px 8px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input-row:focus-within {
    border-color: rgba(77, 168, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(29, 112, 226, 0.1);
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--c-text-primary);
    font-family: var(--font-main);
    font-size: 0.875rem;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
    caret-color: var(--c-blue-light);
    padding: 2px 0;
}

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

.chat-input::-webkit-scrollbar { width: 3px; }
.chat-input::-webkit-scrollbar-thumb { background: rgba(29, 112, 226, 0.3); border-radius: 3px; }

.chat-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--grad-btn);
    border: none;
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    opacity: 0.45;
}

.chat-send-btn:not(:disabled) { opacity: 1; }
.chat-send-btn:not(:disabled):hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(29, 112, 226, 0.4); }
.chat-send-btn:disabled { cursor: not-allowed; }

.chat-input-hint {
    font-size: 0.68rem;
    color: var(--c-text-muted);
    margin-top: 6px;
    text-align: right;
    opacity: 0.7;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .chat-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 96px;
    }

    .chat-fab {
        bottom: 24px;
        right: 20px;
    }
}

/* ══════════════════════════════════════════════════════════
   BOOKING PAGE
══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.bk-hero {
    padding: calc(var(--navbar-h) + 72px) 0 56px;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29,112,226,0.10) 0%, transparent 65%),
        var(--c-bg-deep);
    text-align: center;
    border-bottom: 1px solid var(--c-border);
}

.bk-hero-inner { max-width: 640px; margin: 0 auto; }

.bk-hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin: 12px 0 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.bk-hero-sub {
    font-size: 1rem;
    color: var(--c-text-secondary);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Calendar section ── */
.bk-calendar-section {
    padding: 56px 0 80px;
    background: var(--c-bg-surface);
}

.bk-card {
    background: linear-gradient(160deg, #0D1E3A 0%, #091428 100%);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ── Date strip ── */
.bk-date-strip {
    display: flex;
    gap: 10px;
    padding: 28px 28px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bk-date-strip::-webkit-scrollbar { display: none; }

.bk-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    padding: 14px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.bk-date-card:hover {
    border-color: var(--c-border-strong);
    background: rgba(29,112,226,0.08);
}

.bk-date-card.active {
    background: linear-gradient(135deg, #1D70E2 0%, #1248B5 100%);
    border-color: rgba(77,168,255,0.4);
    box-shadow: 0 4px 20px rgba(29,112,226,0.35);
}

.bk-dc-day {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--c-text-muted);
    text-transform: uppercase;
}

.bk-date-card.active .bk-dc-day { color: rgba(255,255,255,0.75); }

.bk-dc-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--c-text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.bk-date-card.active .bk-dc-num { color: #fff; }

.bk-dc-month {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--c-text-secondary);
    text-transform: uppercase;
}

.bk-date-card.active .bk-dc-month { color: rgba(255,255,255,0.75); }

/* ── Divider ── */
.bk-divider {
    height: 1px;
    background: var(--c-border);
    margin: 24px 0 0;
}

/* ── Slots area ── */
.bk-slots-wrap {
    padding: 24px 28px 32px;
    min-height: 160px;
}

.bk-slots-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-slots-label i { color: var(--c-blue-light); }
.bk-slots-label strong { color: var(--c-text-primary); font-weight: 600; }

/* Loading skeletons */
.bk-loading {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-slot-skeleton {
    width: 76px;
    height: 42px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Slot buttons grid */
.bk-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-slot-btn {
    padding: 10px 18px;
    background: rgba(15,34,65,0.7);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-primary);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.bk-slot-btn:hover {
    background: var(--grad-btn);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29,112,226,0.35);
}

/* Empty state */
.bk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 0;
    color: var(--c-text-muted);
    text-align: center;
}

.bk-empty[aria-hidden="true"] { display: none; }

.bk-empty i { font-size: 2rem; color: var(--c-border-strong); }

.bk-empty p { font-size: 0.9rem; margin: 0; }

/* ── Info row ── */
.bk-info-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.bk-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--c-text-muted);
}

.bk-info-item i { color: var(--c-blue-light); font-size: 0.875rem; }

/* ── Responsive ── */
@media (max-width: 680px) {
    .bk-hero { padding: calc(var(--navbar-h) + 48px) 0 40px; }
    .bk-date-strip { padding: 20px 16px 0; gap: 8px; }
    .bk-slots-wrap { padding: 20px 16px 24px; }
    .bk-info-row { gap: 18px; }
    .bk-slot-btn { padding: 9px 14px; font-size: 0.85rem; }
}

/* ── Slot timezone sub-labels ── */
.bk-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bk-slot-local {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.bk-slot-biz {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.02em;
    line-height: 1;
}

.bk-tz-note {
    width: 100%;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--c-text-muted);
    line-height: 1.5;
    padding: 10px 14px;
    background: rgba(29, 112, 226, 0.05);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.bk-tz-note i { color: var(--c-blue-light); margin-right: 4px; }
.bk-tz-note strong { color: var(--c-text-secondary); }
