/* ============================================================
   AEVO Intelligence — Premium Consulting Design System
   Inspired by McKinsey, BCG & Bain
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    --midnight: #060A13;
    --navy: #0B1426;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;

    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-dark: #1D4ED8;
    --accent-glow: rgba(37, 99, 235, 0.12);

    --gold: #C8A97E;
    --gold-light: #D4B896;

    --white: #FFFFFF;
    --black: #000000;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --section-gap: 10rem;
    --container-max: 1200px;
    --container-narrow: 800px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--slate-800);
    line-height: 1.75;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.35s var(--ease-out);
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p {
    color: var(--slate-600);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.overline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--slate-500);
    line-height: 1.7;
    font-weight: 300;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-gap) 0;
}

.section--dark {
    background: var(--slate-900);
    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--white);
}

.section--dark p {
    color: var(--slate-400);
}

.section--dark .overline {
    color: var(--accent-light);
}

.section--light {
    background: var(--slate-50);
}

.grid {
    display: grid;
    gap: 4rem;
}

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

.grid--align-center { align-items: center; }

/* ---------- Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.site-header--scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-200);
    padding: 0.875rem 0;
}

.site-header--scrolled .logo { color: var(--slate-900); }
.site-header--scrolled .nav-link { color: var(--slate-700); }

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-light);
    transition: width 0.35s var(--ease-out);
}

.nav-link:hover,
.nav-link--active {
    color: var(--white);
}

.site-header--scrolled .nav-link:hover,
.site-header--scrolled .nav-link--active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link--active::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border: 1.5px solid rgba(255,255,255,0.4);
    transition: all 0.35s var(--ease-out);
}

.nav-cta:hover {
    background: var(--white);
    color: var(--slate-900);
    border-color: var(--white);
}

.site-header--scrolled .nav-cta {
    color: var(--accent);
    border-color: var(--accent);
}

.site-header--scrolled .nav-cta:hover {
    background: var(--accent);
    color: var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}

.site-header--scrolled .hamburger span {
    background: var(--slate-900);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ---------- Hero — Home ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--midnight);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridDrift 30s linear infinite;
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(37, 99, 235, 0.08), transparent);
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 2rem;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-light);
}

.hero__sub {
    font-size: 1.1875rem;
    color: var(--slate-400);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Formula decoration */
.hero__formula {
    position: absolute;
    right: 5%;
    bottom: 12%;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.3);
    line-height: 2;
    text-align: left;
    pointer-events: none;
    white-space: pre;
}

/* ---------- Hero — Page (inner pages) ---------- */
.page-hero {
    background: var(--slate-900);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
}

.page-hero .overline { color: var(--accent-light); }

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.page-hero p {
    color: var(--slate-400);
    font-size: 1.125rem;
    max-width: 600px;
    font-weight: 300;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 2.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    line-height: 1;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

.btn--outline-dark {
    background: transparent;
    color: var(--slate-800);
    border: 1.5px solid var(--slate-300);
}

.btn--outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--white {
    background: var(--white);
    color: var(--slate-900);
}

.btn--white:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
}

.btn__arrow {
    transition: transform 0.3s var(--ease-out);
    font-size: 1rem;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ---------- Stats Bar ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--slate-200);
}

.stat:last-child::after { display: none; }

.stat__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--slate-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--slate-500);
    font-weight: 500;
}

.section--dark .stat::after { background: rgba(255,255,255,0.1); }
.section--dark .stat__number { color: var(--white); }
.section--dark .stat__label { color: var(--slate-400); }

/* ---------- Content Blocks ---------- */
.text-block { max-width: 540px; }

.text-block h2 {
    margin-bottom: 1.25rem;
}

.text-block p {
    margin-bottom: 1.25rem;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem 0;
}

.section-header {
    max-width: 620px;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-500);
}

/* ---------- Feature Cards ---------- */
.card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--slate-200);
    transition: all 0.5s var(--ease-out);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-sm);
}

.card__number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--slate-400);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.9375rem;
    color: var(--slate-500);
}

/* Dark variant */
.card--dark {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(37, 99, 235, 0.3);
}

.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--slate-400); }
.card--dark .card__number { color: var(--slate-500); }

/* ---------- Credential Card ---------- */
.credential {
    padding: 3rem;
    border-left: 3px solid var(--accent);
    background: var(--slate-50);
}

.credential h3 {
    margin-bottom: 0.75rem;
}

.credential p {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
}

/* ---------- Solution Block ---------- */
.solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.solution--reverse {
    direction: rtl;
}

.solution--reverse > * {
    direction: ltr;
}

.solution__visual {
    position: relative;
}

.solution__image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.solution__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.solution__content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
}

.solution__content p {
    margin-bottom: 1.25rem;
}

.solution__features {
    margin-top: 2rem;
}

.solution__feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.solution__feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-top: 2px;
    font-size: 0.75rem;
}

.solution__feature span {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.solution__feature strong {
    color: var(--slate-800);
}

/* ---------- Blockquote ---------- */
.blockquote {
    border-left: 3px solid var(--accent);
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 2rem 0;
}

.blockquote p {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-style: italic;
    color: var(--slate-700);
    line-height: 1.6;
}

.section--dark .blockquote p {
    color: var(--slate-300);
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 6rem 0;
    background: var(--slate-900);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(37, 99, 235, 0.08), transparent);
}

.cta-section .overline { color: var(--accent-light); }

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.cta-section p {
    color: var(--slate-400);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-size: 1.0625rem;
}

.cta-section .btn { position: relative; z-index: 1; }

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--slate-800);
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-400);
}

/* ---------- Contact Info ---------- */
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.contact-item__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-500);
    margin-bottom: 0.25rem;
}

.contact-item__value {
    font-size: 1rem;
    color: var(--slate-800);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--midnight);
    color: var(--slate-400);
    padding: 5rem 0 2.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2.5rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--slate-500);
    font-size: 0.9375rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--slate-300);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    color: var(--slate-500);
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--slate-600);
}

.footer-bottom a {
    color: var(--slate-500);
}

.footer-bottom a:hover {
    color: var(--white);
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-6 { margin-bottom: 3rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-6 { margin-top: 3rem !important; }

/* ---------- Page-specific: Methodology ---------- */
.method-steps {
    counter-reset: method;
}

.method-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.method-step:last-child {
    border-bottom: none;
}

.method-step__number {
    counter-increment: method;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    color: var(--slate-200);
    line-height: 1;
}

.method-step h3 {
    margin-bottom: 0.75rem;
}

.method-step p {
    font-size: 0.9375rem;
}

/* Dark method steps */
.section--dark .method-step { border-color: rgba(255,255,255,0.06); }
.section--dark .method-step__number { color: rgba(255,255,255,0.1); }

/* ---------- Principles Grid ---------- */
.principle {
    padding: 2rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.principle:last-child { border-bottom: none; }

.principle__number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.principle h4 {
    margin-bottom: 0.5rem;
    color: var(--slate-800);
}

.principle p {
    font-size: 0.9375rem;
    color: var(--slate-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid--2,
    .grid--2-1,
    .grid--1-2 { grid-template-columns: 1fr; gap: 3rem; }
    .grid--3 { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .solution { grid-template-columns: 1fr; gap: 3rem; }
    .solution--reverse { direction: ltr; }

    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat::after { display: none; }

    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 5rem;
    }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--slate-900);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out);
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-menu .nav-link,
    .nav-menu .nav-cta {
        color: var(--white);
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hamburger.active span {
        background: var(--white) !important;
    }

    .hero { min-height: 85vh; padding-top: 5rem; }
    .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .hero__sub { font-size: 1rem; }
    .hero__formula { display: none; }
    .hero__actions { flex-direction: column; align-items: flex-start; }

    .page-hero { padding: 8rem 0 3.5rem; }

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

    .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat__number { font-size: 2.25rem; }

    .container { padding: 0 1.25rem; }

    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

    .method-step { grid-template-columns: 50px 1fr; gap: 1.25rem; }
    .method-step__number { font-size: 2rem; }

    .credential { padding: 2rem; }

    .solution__image { height: 300px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .stats { grid-template-columns: 1fr; }
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
    position: relative;
    z-index: 100;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
    transition: all 0.3s var(--ease-out);
    line-height: 1;
}

.lang-switcher__toggle:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

.site-header--scrolled .lang-switcher__toggle {
    color: var(--slate-600);
    border-color: var(--slate-300);
}

.site-header--scrolled .lang-switcher__toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-switcher__globe {
    font-size: 0.8125rem;
}

.lang-switcher__code {
    min-width: 24px;
    text-align: center;
}

.lang-switcher__arrow {
    font-size: 0.5rem;
    transition: transform 0.3s var(--ease-out);
}

.lang-switcher.is-open .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.25s var(--ease-out);
}

.lang-switcher.is-open .lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--slate-600);
    text-align: left;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-switcher__option:hover {
    background: var(--slate-50);
    color: var(--slate-900);
}

.lang-switcher__option.is-active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-glow);
}

.lang-switcher__option-flag {
    font-size: 1rem;
    line-height: 1;
}

/* Mobile lang switcher in menu */
@media (max-width: 768px) {
    .nav-menu .lang-switcher {
        margin-top: 1rem;
    }

    .nav-menu .lang-switcher__toggle {
        color: rgba(255,255,255,0.7);
        border-color: rgba(255,255,255,0.2);
    }

    .nav-menu .lang-switcher__toggle:hover {
        color: var(--white);
        border-color: rgba(255,255,255,0.5);
    }

    .lang-switcher__menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-4px);
    }

    .lang-switcher.is-open .lang-switcher__menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ---------- Office Map ---------- */
.offices-section {
    padding: var(--section-gap) 0;
    background: var(--slate-50);
}

.offices-section h2 {
    color: #0F172A !important;
    margin-bottom: 0.5rem;
}

.offices-section .overline {
    color: var(--accent);
}

.offices-section .section-header p {
    color: var(--slate-500);
}

.map-container {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 3rem;
}

.map-container .leaflet-popup-content-wrapper {
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    box-shadow: var(--shadow-md);
}

.map-container .leaflet-popup-content {
    margin: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.map-container .leaflet-popup-content strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.map-container .leaflet-popup-content .popup-type {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--accent);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.office-card {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--ease-out);
}

.office-card:hover {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.office-card--hq {
    border-color: var(--accent);
    border-width: 2px;
    background: rgba(37, 99, 235, 0.06);
}

.office-card--hq:hover {
    background: rgba(37, 99, 235, 0.1);
}

.office-card__type {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent) !important;
    margin-bottom: 0.5rem;
    display: block;
}

.office-card--hq .office-card__type {
    color: var(--accent-dark) !important;
}

.office-card__city {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A !important;
    line-height: 1.3;
}

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

@media (max-width: 768px) {
    .offices-grid { grid-template-columns: repeat(2, 1fr); }
    .map-container { height: 360px; }
}

@media (max-width: 480px) {
    .offices-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .office-card { padding: 1rem; }
    .map-container { height: 280px; }
}

/* ---------- Enhanced Whitespace ---------- */
.section-header { margin-bottom: 5rem; }
.text-block p { margin-bottom: 1.5rem; font-size: 1.0625rem; line-height: 1.85; }
.card { padding: 2.75rem; }

/* ---------- Industry Tabs ---------- */
.industry-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
}

.industry-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 100px;
    border: 1.5px solid var(--slate-200);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.industry-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.industry-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.industry-tab i {
    font-size: 0.75rem;
}

/* Dark variant */
.section--dark .industry-tab {
    border-color: rgba(255,255,255,0.12);
    background: transparent;
    color: var(--slate-400);
}

.section--dark .industry-tab:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.section--dark .industry-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ---------- Solution Cards Grid (Filterable) ---------- */
.sol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sol-card {
    border: 1px solid var(--slate-200);
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sol-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
    z-index: 2;
}

.sol-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: transparent;
}

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

.sol-card:hover .sol-card__img img {
    transform: scale(1.05);
}

.sol-card.is-hidden {
    display: none;
}

.sol-card__img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.sol-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.sol-card__img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--white));
}

.sol-card__body {
    padding: 2rem 2.25rem 2.25rem;
    flex: 1;
}

.sol-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.sol-card__tag--manufacturing { background: rgba(16,185,129,0.1); color: #059669; }
.sol-card__tag--energy { background: rgba(245,158,11,0.1); color: #D97706; }
.sol-card__tag--retail { background: rgba(168,85,247,0.1); color: #7C3AED; }
.sol-card__tag--finance { background: rgba(37,99,235,0.1); color: #2563EB; }

.sol-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sol-card p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.8;
}

/* ---------- Deployment Architecture Diagram ---------- */
.arch-diagram {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}

.arch-node {
    flex: 1;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.arch-node--client {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.arch-node--core {
    background: var(--slate-900);
    color: var(--white);
    flex: 1.4;
    border: 2px solid var(--accent);
    border-radius: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

.arch-node--insights {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
}

.arch-node__icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.arch-node--client .arch-node__icon { color: var(--slate-400); }
.arch-node--core .arch-node__icon { color: var(--accent-light); }
.arch-node--insights .arch-node__icon { color: var(--slate-400); }

.arch-node__title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.arch-node--core .arch-node__title { color: var(--white); }

.arch-node__subtitle {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.arch-node--core .arch-node__subtitle { color: var(--accent-light); }

.arch-node__items {
    font-size: 0.8125rem;
    color: var(--slate-500);
    line-height: 1.8;
}

.arch-node--core .arch-node__items { color: var(--slate-400); }

.arch-node__lock {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent-light);
    margin-top: 1rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 100px;
    letter-spacing: 1px;
}

.arch-arrow {
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    color: var(--slate-300);
    font-size: 1.25rem;
    z-index: 2;
}

/* ---------- Use Case Panels (Homepage) ---------- */
.usecase-panels { position: relative; min-height: 280px; }

.usecase-panel {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0; left: 0; right: 0;
    transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.usecase-panel.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.usecase-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.usecase-item {
    padding: 2.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.usecase-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
}

.usecase-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.usecase-item:hover::before {
    opacity: 1;
}

.usecase-item h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.usecase-item p {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.8;
}

/* ---------- Map Light Theme Override ---------- */
.map-container--light {
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
}

@keyframes mapPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* ---------- Responsive: New Components ---------- */
@media (max-width: 1024px) {
    .sol-grid { grid-template-columns: 1fr; }
    .usecase-panel__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-gap: 6rem; }
    .arch-diagram { flex-direction: column; max-width: 480px; }
    .arch-node--client { border-radius: var(--radius-md) var(--radius-md) 0 0; border-right: 1.5px solid var(--slate-200); border-bottom: none; }
    .arch-node--core { border-radius: 0; }
    .arch-node--insights { border-radius: 0 0 var(--radius-md) var(--radius-md); border-left: 1.5px solid var(--slate-200); border-top: none; }
    .arch-arrow { justify-content: center; transform: rotate(90deg); padding: 0.25rem 0; }
    .arch-node { padding: 1.75rem 1.5rem; }
    .industry-tabs { gap: 0.375rem; }
    .industry-tab { padding: 0.5rem 1rem; font-size: 0.75rem; }
    .sol-card__body { padding: 1.5rem; }
    .sol-card__img { height: 160px; }
    .usecase-panel__grid { grid-template-columns: 1fr; }
}
