/* ============================================
   RautingTech — Design System
   Light-dominant, dark accents
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand */
    --primary: #00d946;
    --primary-dark: #00a838;
    --primary-deep: #007a26;
    --primary-tint: #e8faed;
    --primary-tint-2: #f3fcf6;

    /* Neutrals */
    --ink: #0a0e14;
    --ink-2: #1a1d23;
    --ink-3: #2a2f38;
    --slate-700: #3a4150;
    --slate-600: #4a5160;
    --slate-500: #5a6271;
    --slate-400: #8089a0;
    --slate-300: #aab1c2;
    --slate-200: #d6dae2;
    --slate-100: #e6e8ec;
    --paper: #f7f9fc;
    --paper-2: #fafbfc;
    --light: #ffffff;

    /* Legacy aliases (kept so inner pages keep working) */
    --dark: var(--ink);
    --gray-900: #0f0f0f;
    --gray-800: #1a1a1a;
    --gray-700: var(--slate-700);
    --gray-600: var(--slate-600);
    --gray-500: var(--slate-500);
    --gray-400: var(--slate-400);
    --gray-300: var(--slate-300);
    --gray-200: var(--slate-200);
    --gray-100: var(--slate-100);

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(10, 14, 20, 0.04);
    --shadow-md: 0 4px 14px rgba(10, 14, 20, 0.06);
    --shadow-lg: 0 18px 50px rgba(10, 14, 20, 0.08);
    --shadow-xl: 0 30px 80px rgba(10, 14, 20, 0.12);
    --ring-primary: 0 0 0 4px rgba(0, 217, 70, 0.18);

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--slate-700);
    background: var(--light);
    letter-spacing: 0.1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Manrope', 'Inter', sans-serif;
    color: var(--ink);
}

a { color: inherit; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--slate-100);
    padding: 1rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.logo-section svg {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--slate-700);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: 0.1px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a.has-menu::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.nav-links li:hover a.has-menu::after {
    transform: rotate(225deg) translateY(-2px);
}

.nav-links a.nav-cta {
    background: var(--ink);
    color: var(--light);
    padding: 0.6rem 1.3rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

.nav-links a.nav-cta:hover {
    background: var(--primary);
    color: var(--ink);
}

/* Mega-menu dropdowns */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 540px;
    background: var(--light);
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.5rem;
}

.nav-links li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: var(--r-sm);
    transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
    background: var(--paper);
}

.nav-dropdown-item .nd-title {
    display: block;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.nav-dropdown-item .nd-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--slate-500);
    line-height: 1.45;
    font-weight: 400;
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 13px 28px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.22s ease;
    cursor: pointer;
    font-size: 0.93rem;
    letter-spacing: 0.1px;
    border: none;
    font-family: inherit;
    line-height: 1.2;
}

.cta-button.primary {
    background: var(--primary);
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(0, 217, 70, 0.22);
}

.cta-button.primary:hover {
    background: #00f050;
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(0, 217, 70, 0.32);
}

.cta-button.secondary {
    background: var(--light);
    color: var(--ink);
    border: 1px solid var(--slate-200);
}

.cta-button.secondary:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.cta-button.dark {
    background: var(--ink);
    color: var(--light);
}

.cta-button.dark:hover {
    background: var(--primary);
    color: var(--ink);
    transform: translateY(-1px);
}

.cta-button.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid transparent;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.cta-button.ghost::after {
    content: "→";
    font-weight: 700;
    transition: transform 0.2s ease;
}

.cta-button.ghost:hover {
    color: var(--primary-dark);
}

.cta-button.ghost:hover::after {
    transform: translateX(3px);
}

/* On dark backgrounds */
.on-dark .cta-button.secondary {
    background: transparent;
    color: var(--light);
    border-color: rgba(255, 255, 255, 0.18);
}

.on-dark .cta-button.secondary:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--light);
}

/* ============================================
   Section Labels (eyebrows)
   ============================================ */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-label.light {
    color: var(--slate-400);
}

.section-label.on-dark {
    color: var(--primary);
}

/* ============================================
   Split Hero (homepage) — DARK mode
   ============================================ */
.hero-light {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 3.5rem 2.5rem 4rem;
    background:
        radial-gradient(ellipse 70% 55% at 78% 22%, rgba(0, 217, 70, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 45% 40% at 8% 95%, rgba(0, 120, 220, 0.07) 0%, transparent 65%),
        linear-gradient(160deg, #07090d 0%, #0e1218 50%, #0a0e14 100%);
    color: var(--light);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero-light-inner {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 34rem) 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-light-content .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 217, 70, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 217, 70, 0.24);
    padding: 0.4rem 0.95rem;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.hero-light-content .hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 217, 70, 0.6), 0 0 0 3px rgba(0, 217, 70, 0.18);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-light h1 {
    font-size: clamp(2.1rem, 3.3vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -1.1px;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 1.05rem;
}

.hero-light h1 .grad {
    background: linear-gradient(120deg, var(--primary) 0%, #00ff66 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-light .hero-subtitle {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-light .hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-light .hero-cta .cta-button.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-light .hero-cta .cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-light .hero-microproof {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: var(--slate-400);
}

.hero-microproof .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 217, 70, 0.15);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 217, 70, 0.3);
}

/* Right column: the refract animation with the "build my plan" invite beneath it */
.hero-light-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.hero-light-stage .hero-plan {
    width: 100%; display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 3;
}

.hero-light-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 2.2 / 1;
    max-height: 62vh;
}

.hero-light-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* On capable desktops the WebGL canvas replaces this SVG. Hide it up-front so it
   doesn't flash before three.js finishes loading. The init script re-shows it (inline
   style) on every fallback branch — reduced-motion, no WebGL, or init failure — and the
   <noscript> rule re-shows it when scripting is off. (Gated on width only: some browsers
   don't match `prefers-reduced-motion: no-preference`, which would skip the hide.) */
@media (min-width: 992px) {
    .hero-light-visual > svg { visibility: hidden; }
    /* Desktop WebGL prism: tuck the plan invite up under the "your build" axis. The
       lower-centre of the canvas is animation-free (particles flow photon→prism→outcomes,
       never straight down), so the pull-up sits it under the label without crowding motion. */
    .hero-light-stage .hero-plan { margin-top: -3rem; }
}

/* ─── Hero photon → prism (WebGL) ─────────────────────────────── */
.hero-light-visual.hp-root { overflow: hidden; border-radius: 16px; }
.hp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hp-overlay { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 2; }
.hp-photon-label {
    position: absolute; transform: translate(-50%, 16px);
    font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, 0.8);
    white-space: nowrap; display: flex; align-items: center; gap: 7px;
    pointer-events: auto; cursor: pointer; transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-shadow: 0 1px 9px rgba(0, 0, 0, 0.6);
    border: 1px solid transparent; border-radius: 999px; padding: 3px 4px;
}
.hp-photon-label.on { color: #fff; }
.hp-photon-label.pinned {
    color: #fff; padding: 3px 11px;
    background: color-mix(in srgb, var(--c) 17%, rgba(8, 12, 20, 0.86));
    border-color: var(--c);
    box-shadow: 0 0 18px -3px var(--c);
}
.hp-photon-label .hp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 11px var(--c); flex-shrink: 0; }
.hp-active-title {
    position: absolute; transform: translate(-50%, -50%);
    font-size: 32px; font-weight: 800; color: #fff; letter-spacing: 0.2px; white-space: nowrap;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}
.hp-axis-label {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    font-size: 12.5px; font-weight: 800; letter-spacing: 3.5px; text-transform: uppercase;
    background: linear-gradient(100deg, #00d946 0%, #6bffa6 48%, #00d946 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 7px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 11px rgba(0, 217, 70, 0.55));
}
.hp-axis-label::before, .hp-axis-label::after {
    content: ""; width: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 70, 0.85));
}
.hp-axis-label::after { transform: scaleX(-1); }
/* outcomes: contained pills that expand on hover to reveal the description */
.hp-outcome {
    position: absolute; transform: translate(0, -50%); margin-left: 18px;
    max-width: 250px; pointer-events: auto; cursor: default;
    background: rgba(12, 18, 28, 0.72); border: 1px solid var(--c);
    border-radius: 999px; padding: 8px 15px;
    box-shadow: 0 0 16px -5px var(--c);
    transition: border-radius 0.25s, background 0.25s;
}
.hp-outcome .hp-out-l { display: block; font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.hp-outcome .hp-out-d {
    display: block; font-size: 12px; font-weight: 500; color: #aeb6c6; line-height: 1.35;
    max-height: 0; opacity: 0; overflow: hidden; white-space: normal;
    transition: max-height 0.28s ease, opacity 0.2s, margin-top 0.28s;
}
.hp-outcome:hover { border-radius: 13px; background: rgba(14, 20, 32, 0.94); }
.hp-outcome:hover .hp-out-d { max-height: 64px; opacity: 1; margin-top: 5px; }

/* ============================================
   Hero — Dark (kept for subpages)
   ============================================ */
.hero {
    min-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    padding: 5rem 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 65% 35%, rgba(0, 217, 70, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 45% 35% at 15% 85%, rgba(0, 100, 220, 0.05) 0%, transparent 60%),
        linear-gradient(160deg, #0a0e14 0%, #0f1218 100%);
}

.hero-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 70, 0.05) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1320px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.6rem;
    opacity: 0.95;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 5.2rem);
    line-height: 1.05;
    margin-bottom: 1.6rem;
    color: var(--light);
    font-weight: 800;
    letter-spacing: -1.6px;
}

.hero h1 span { color: var(--primary); }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate-300);
    margin-bottom: 2.5rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.hero-cta {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.subpage-hero {
    min-height: 52vh;
    padding-bottom: 4rem;
}

/* Hero Stat Bar (kept) */
.hero-stat-bar {
    width: 100%;
    max-width: 1320px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 2rem;
    gap: 0.4rem;
    flex: 1;
}

.stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--light);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Trust strip — DARK
   ============================================ */
.trust-strip {
    background: #07090d;
    padding: 2.5rem 2.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.trust-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--slate-500);
    margin-bottom: 1.4rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-logo {
    color: var(--slate-300);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
}

.trust-logo:hover { color: var(--light); opacity: 1; }

.trust-logo .badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 217, 70, 0.1);
    border: 1px solid rgba(0, 217, 70, 0.24);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   Platform / Capabilities Section — DARK
   ============================================ */
.platform-section {
    background: #0a0e14;
    padding: 7rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.platform-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(0, 217, 70, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(0, 120, 220, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1.4px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.platform-section .section-header h2,
.connector-section .section-header h2,
.outcomes-section .section-header h2,
.refract-section .section-header h2 {
    color: var(--light);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto;
}

.platform-section .section-header p,
.connector-section .section-header p,
.refract-section .section-header p {
    color: var(--slate-400);
}

.platform-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.capability-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    padding: 2rem 1.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.capability-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 70, 0.0) 0%, rgba(0, 217, 70, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.capability-card:hover {
    border-color: rgba(0, 217, 70, 0.45);
    background: rgba(0, 217, 70, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 217, 70, 0.08);
}

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

.cap-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: rgba(0, 217, 70, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 217, 70, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    transition: all 0.3s ease;
}

.capability-card:hover .cap-icon {
    background: var(--primary);
    color: var(--ink);
    border-color: var(--primary);
}

.cap-icon svg {
    width: 22px;
    height: 22px;
}

.capability-card h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 0.6rem;
    letter-spacing: -0.4px;
    position: relative;
}

.capability-card p {
    color: var(--slate-400);
    font-size: 0.9rem;
    line-height: 1.65;
    position: relative;
}

.capability-card .cap-link {
    margin-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, gap 0.2s ease;
    position: relative;
}

.capability-card:hover .cap-link {
    color: var(--primary);
    gap: 0.55rem;
}

/* Capability tag (e.g., "available today" / "in development") */
.cap-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    border: 1px solid;
}

.cap-tag.live {
    background: rgba(0, 217, 70, 0.1);
    color: var(--primary);
    border-color: rgba(0, 217, 70, 0.3);
}

.cap-tag.dev {
    background: rgba(255, 200, 0, 0.08);
    color: #ffcd4a;
    border-color: rgba(255, 200, 0, 0.25);
}

.cap-tag.roadmap {
    background: rgba(120, 140, 200, 0.08);
    color: #a5b4d4;
    border-color: rgba(120, 140, 200, 0.25);
}

/* ============================================
   How it works (flow)
   ============================================ */
.flow-section {
    background: var(--paper-2);
    padding: 5.5rem 2.5rem 4rem;
    position: relative;
}

.flow-steps {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
}

.flow-step {
    background: var(--light);
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    padding: 2rem 1.6rem;
    position: relative;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.flow-step .flow-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 2px;
    margin-bottom: 0.85rem;
    display: block;
}

.flow-step h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.55rem;
    letter-spacing: -0.3px;
}

.flow-step p {
    font-size: 0.86rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ============================================
   Solutions tabs
   ============================================ */
.solutions-section {
    background: var(--light);
    padding: 4rem 2.5rem 6rem;
}

.solutions-tabs {
    max-width: 1320px;
    margin: 0 auto;
}

.solutions-tab-list {
    display: inline-flex;
    background: var(--paper);
    border: 1px solid var(--slate-100);
    border-radius: 100px;
    padding: 0.32rem;
    margin: 0 auto 3rem;
    list-style: none;
    gap: 0.2rem;
}

.solutions-tab-wrap {
    display: flex;
    justify-content: center;
}

.solutions-tab-list button {
    background: transparent;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

.solutions-tab-list button.active {
    background: var(--ink);
    color: var(--light);
    box-shadow: var(--shadow-sm);
}

.solutions-tab-list button:not(.active):hover {
    color: var(--ink);
}

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

.solution-card {
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    padding: 1.6rem 1.5rem;
    background: var(--light);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.solution-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.solution-card .sol-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-dark);
}

.solution-card h4 {
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.solution-card p {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.solution-pane { display: none; }
.solution-pane.active { display: grid; }

/* ============================================
   Connector wall — DARK
   ============================================ */
.connector-section {
    background: #07090d;
    padding: 6.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.connector-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 90% 50%, rgba(0, 217, 70, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.connector-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.connector-text h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--light);
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.connector-text p {
    font-size: 1rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.connector-section .cta-button.ghost {
    color: var(--light);
}

.connector-section .cta-button.ghost:hover {
    color: var(--primary);
}

.connector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
}

.connector-tile {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--slate-300);
    font-size: 0.78rem;
    text-align: center;
    padding: 0.4rem;
    transition: all 0.25s ease;
    line-height: 1.15;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.connector-tile:hover {
    border-color: rgba(0, 217, 70, 0.45);
    background: rgba(0, 217, 70, 0.06);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 217, 70, 0.1);
}

.connector-tile.more {
    background: rgba(0, 217, 70, 0.08);
    color: var(--primary);
    border-color: rgba(0, 217, 70, 0.3);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* ============================================
   Refract AI preview section
   ============================================ */
.refract-section {
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 217, 70, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, #0a0e14 0%, #07090d 100%);
    padding: 7rem 2.5rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.refract-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.refract-inner {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.refract-section .section-header {
    margin-bottom: 3.5rem;
}

.refract-section .section-label {
    color: var(--primary);
}

.refract-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 217, 70, 0.08);
    border: 1px solid rgba(0, 217, 70, 0.24);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.4rem;
}

.refract-tagline::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 217, 70, 0.6);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

.refract-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.refract-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    padding: 2rem 1.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.refract-card:hover {
    border-color: rgba(0, 217, 70, 0.4);
    background: rgba(0, 217, 70, 0.04);
    transform: translateY(-3px);
}

.refract-card .stage-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid;
}

.refract-card .stage-tag.live {
    background: rgba(0, 217, 70, 0.1);
    color: var(--primary);
    border-color: rgba(0, 217, 70, 0.3);
}

.refract-card .stage-tag.next {
    background: rgba(255, 200, 0, 0.08);
    color: #ffcd4a;
    border-color: rgba(255, 200, 0, 0.25);
}

.refract-card .stage-tag.future {
    background: rgba(120, 140, 200, 0.08);
    color: #a5b4d4;
    border-color: rgba(120, 140, 200, 0.25);
}

.refract-card .stage-num {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.85rem;
    display: block;
}

.refract-card h4 {
    font-size: 1.18rem;
    color: var(--light);
    margin-bottom: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.refract-card p {
    color: var(--slate-400);
    font-size: 0.88rem;
    line-height: 1.65;
}

.refract-cta-row {
    text-align: center;
    margin-top: 1rem;
}

.refract-cta-row .micro {
    display: block;
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-top: 0.85rem;
    letter-spacing: 0.3px;
}

/* ============================================
   Outcomes / Stats (dark accent)
   ============================================ */
.outcomes-section {
    background: var(--ink);
    color: var(--light);
    padding: 6rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.outcomes-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 217, 70, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(0, 100, 220, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.outcomes-inner {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.outcomes-header {
    text-align: center;
    margin-bottom: 4rem;
}

.outcomes-header .section-label { color: var(--primary); }

.outcomes-header h2 {
    color: var(--light);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
}

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

.outcome {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.outcome:hover {
    border-color: rgba(0, 217, 70, 0.4);
    background: rgba(0, 217, 70, 0.04);
}

.outcome-num {
    font-family: 'Manrope', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.outcome-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}

.outcome-desc {
    font-size: 0.82rem;
    color: var(--slate-400);
    line-height: 1.55;
}

/* ============================================
   Services Section (engagement models)
   ============================================ */
.services-container {
    background: var(--light);
    padding: 7rem 2.5rem;
}

.services-header {
    max-width: 760px;
    margin: 0 auto 4rem;
    text-align: center;
}

.services-header h2 {
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1.4px;
    line-height: 1.1;
}

.services-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.service-card {
    background: var(--light);
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2.2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

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

.service-link:hover .service-card {
    border-color: var(--slate-200);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

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

.service-number {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--slate-300);
    margin-bottom: 1.6rem;
    font-family: 'Inter', monospace;
}

.service-header-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.service-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-body p {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list li {
    padding: 0.6rem 0;
    padding-left: 1.4rem;
    position: relative;
    color: var(--slate-700);
    font-size: 0.86rem;
    font-weight: 500;
    border-bottom: 1px solid var(--slate-100);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
}

.service-link-arrow {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
    letter-spacing: 0.3px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.service-link:hover .service-link-arrow {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ============================================
   Approach (Why Us) — kept dark
   ============================================ */
.approach {
    background: var(--ink);
    padding: 7rem 2.5rem;
}

.approach-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.approach-text .section-label { color: var(--primary); }

.approach-text h2 {
    font-size: clamp(2.1rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--light);
    letter-spacing: -1.3px;
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.approach-text p {
    color: var(--slate-300);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    font-weight: 400;
}

.approach-pillars {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    padding-top: 0.5rem;
}

.pillar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.8rem;
}

.pillar-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.pillar h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.55rem;
    letter-spacing: -0.3px;
}

.pillar p {
    color: var(--slate-400);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ============================================
   Page Content (inner subpages)
   ============================================ */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-container {
    padding: 0 1rem;
}

.content-container h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    color: var(--ink);
    margin-bottom: 1.4rem;
    margin-top: 3rem;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.content-container h2:first-child { margin-top: 0; }

.content-container > p {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 800px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.content-card {
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    padding: 1.85rem;
    background: var(--light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    border-color: var(--primary);
    box-shadow: 0 14px 36px rgba(0, 217, 70, 0.08);
    transform: translateY(-3px);
}

.content-card h3 {
    font-size: 1.18rem;
    color: var(--ink);
    margin-bottom: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.content-card p {
    color: var(--slate-600);
    line-height: 1.65;
    font-size: 0.92rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.module {
    padding: 1.6rem 1.5rem;
    background: var(--paper-2);
    border-radius: var(--r-lg);
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.module:hover {
    background: var(--primary-tint-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.module h4 {
    font-size: 1.08rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.module p {
    color: var(--slate-600);
    line-height: 1.65;
    font-size: 0.9rem;
}

.service-section {
    margin-bottom: 1.25rem;
    padding: 1.6rem 1.5rem;
    border-radius: var(--r-lg);
    background: var(--paper-2);
    transition: all 0.25s ease;
    cursor: pointer;
}

.service-section:hover {
    background: var(--paper);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.service-section h3 {
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.service-section p {
    color: var(--slate-600);
    line-height: 1.7;
    font-size: 0.92rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.step {
    padding: 1.85rem 1.6rem;
    background: var(--light);
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.step:hover {
    border-color: var(--primary);
    box-shadow: 0 14px 36px rgba(0, 217, 70, 0.08);
    transform: translateY(-3px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--ink);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.step h4 {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.65rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.step p {
    color: var(--slate-600);
    font-size: 0.88rem;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.benefits-list li {
    padding: 0.85rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--slate-700);
    line-height: 1.65;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--slate-100);
}

.benefits-list li:last-child { border-bottom: none; }

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    top: 0.85rem;
    line-height: 1.2;
}

.cta-section {
    background: linear-gradient(135deg, var(--paper) 0%, var(--primary-tint-2) 100%);
    border: 1px solid var(--slate-100);
    border-radius: var(--r-lg);
    padding: 2.8rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    color: var(--ink);
    margin-bottom: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--slate-600);
    margin-bottom: 1.8rem;
}

/* Hover-reveal description (replaces inline blocks from inner pages) */
.hidden-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    font-size: 0.82rem;
    color: var(--slate-500);
    margin-top: 0;
}

.content-card:hover .hidden-description,
.module:hover .hidden-description,
.service-section:hover .hidden-description,
.step:hover .hidden-description {
    max-height: 130px;
    opacity: 1;
    margin-top: 0.6rem;
}

/* ============================================
   Contact (final CTA — dark)
   ============================================ */
.contact {
    background: var(--ink);
    color: var(--light);
    padding: 7rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0, 217, 70, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-container {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1.3px;
    line-height: 1.15;
    color: var(--light);
}

.contact-sub {
    font-size: 1rem;
    color: var(--slate-400);
    margin-bottom: 2.6rem;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.contact-form select,
.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    width: 100%;
}

.contact-form select {
    appearance: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff' opacity='0.5'><path d='M3 6l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.contact-form select:focus { color: var(--light); }

.contact-form select option {
    background: #16191f;
    color: var(--light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(0, 217, 70, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 217, 70, 0.12);
}

.contact-form .cta-button {
    align-self: flex-start;
    border: none;
}

.contact-info {
    color: var(--slate-500);
    font-size: 0.83rem;
    letter-spacing: 0.3px;
}

.contact-info p { margin: 0.4rem 0; }

/* ============================================
   Footer (multi-column)
   ============================================ */
footer {
    background: #06080b;
    color: var(--slate-400);
    padding: 4rem 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-multi {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-col h5 {
    color: var(--light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1320px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--slate-500);
    font-size: 0.78rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-legal a {
    color: var(--slate-500);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--light); }

/* Legacy footer (for inner pages still using simple variant) */
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-tag {
    font-size: 0.78rem;
    color: var(--slate-500);
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.footer-copy {
    font-size: 0.74rem;
    color: var(--slate-600);
    margin-top: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
    .hero-light-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-light-visual { max-width: 480px; margin: 0 auto; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-steps { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
    .refract-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .approach-inner { grid-template-columns: 1fr; gap: 3rem; }
    .connector-inner { grid-template-columns: 1fr; gap: 3rem; }
    .connector-grid { grid-template-columns: repeat(6, 1fr); }
    .footer-multi { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Nav */
    .navbar { padding: 0.7rem 1rem; }
    .nav-content { gap: 0.8rem; }
    .nav-links { gap: 0.8rem; }
    .nav-links li:not(:last-child) { display: none; }
    .nav-dropdown { display: none; }
    .logo-section svg { width: 180px; height: 28px; }
    .nav-links a.nav-cta { padding: 0.45rem 0.95rem; font-size: 0.82rem; }

    /* Section padding — aggressive compaction */
    .hero, .hero-light, .platform-section, .flow-section, .solutions-section,
    .connector-section, .outcomes-section, .services-container, .approach,
    .contact, .refract-section { padding-left: 1.1rem; padding-right: 1.1rem; }
    .hero { padding-top: 3rem; padding-bottom: 0; min-height: auto; }
    .platform-section, .flow-section, .solutions-section, .services-container,
    .approach, .contact, .outcomes-section, .refract-section { padding-top: 3.2rem; padding-bottom: 3.2rem; }
    .trust-strip { padding: 1.6rem 1.1rem 1.4rem; }

    /* Hero — light split */
    .hero-light { padding: 3rem 1.1rem 3.5rem; }
    .hero-light-inner { gap: 2.2rem; }
    .hero-light h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); letter-spacing: -1.3px; line-height: 1.05; margin-bottom: 1.1rem; }
    .hero-light .hero-subtitle { font-size: 0.96rem; line-height: 1.55; margin-bottom: 1.4rem; }
    .hero-light-content .hero-eyebrow { font-size: 0.66rem; padding: 0.32rem 0.7rem; margin-bottom: 1rem; }
    .hero-light .hero-cta { gap: 0.55rem; margin-bottom: 1.3rem; }
    .hero-light .hero-microproof { font-size: 0.74rem; gap: 0.55rem; line-height: 1.4; }
    .hero-light-visual { max-width: 320px; margin: 0 auto; }

    /* Section headers */
    .section-header { margin-bottom: 2.4rem; }
    .section-header h2 { font-size: 1.7rem; letter-spacing: -0.7px; line-height: 1.1; margin-bottom: 0.6rem; }
    .section-header p { font-size: 0.92rem; line-height: 1.55; }

    /* Hero — dark variant (subpages) */
    .hero h1 { font-size: 2.4rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.55; }
    .hero-eyebrow { font-size: 0.7rem; margin-bottom: 1rem; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 0.55rem; }
    .hero-cta .cta-button { width: 100%; }
    .cta-button { padding: 13px 24px; font-size: 0.9rem; min-height: 44px; }

    /* Stat bar — compact 2-up */
    .hero-stat-bar { flex-wrap: wrap; }
    .hero-stat { padding: 0.85rem 1rem; flex: 1 1 50%; }
    .stat-number { font-size: 1.25rem; }
    .stat-label { font-size: 0.62rem; letter-spacing: 1px; }
    .stat-divider { display: none; }

    /* Trust strip */
    .trust-label { font-size: 0.66rem; letter-spacing: 1.6px; margin-bottom: 0.85rem; }
    .trust-logos { gap: 1.1rem; }
    .trust-logo { font-size: 0.82rem; }
    .trust-logo .badge { font-size: 0.56rem; }

    /* Platform cards */
    .platform-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .capability-card { padding: 1.4rem 1.2rem; }
    .cap-icon { width: 36px; height: 36px; margin-bottom: 0.85rem; }
    .cap-icon svg { width: 18px; height: 18px; }
    .capability-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
    .capability-card p { font-size: 0.86rem; line-height: 1.55; }

    /* Flow steps — 2x2 stays denser than 1col */
    .flow-steps { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .flow-step { padding: 1.2rem 1rem; }
    .flow-step .flow-num { font-size: 0.62rem; margin-bottom: 0.5rem; }
    .flow-step h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
    .flow-step p { font-size: 0.78rem; line-height: 1.45; }

    /* Solutions tabs */
    .solutions-tab-list { padding: 0.25rem; }
    .solutions-tab-list button { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
    .solutions-grid { grid-template-columns: 1fr; gap: 0.7rem; }
    .solution-card { padding: 1.1rem 1rem; }
    .solution-card .sol-tag { font-size: 0.62rem; }
    .solution-card h4 { font-size: 0.95rem; }
    .solution-card p { font-size: 0.8rem; line-height: 1.45; }

    /* Connector wall */
    .connector-inner { gap: 2rem; }
    .connector-text h2 { font-size: 1.6rem; }
    .connector-text p { font-size: 0.9rem; }
    .connector-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .connector-tile { font-size: 0.7rem; padding: 0.3rem; }

    /* Outcomes — compact 2x2 */
    .outcomes-section { padding: 3rem 1.1rem; }
    .outcomes-header { margin-bottom: 2rem; }
    .outcomes-header h2 { font-size: 1.6rem; }
    .outcomes-grid { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
    .outcome { padding: 1rem 0.85rem; }
    .outcome-num { font-size: 1.7rem; }
    .outcome-label { font-size: 0.78rem; }
    .outcome-desc { font-size: 0.7rem; line-height: 1.4; }

    /* Refract preview */
    .refract-section { padding: 3.2rem 1.1rem; }
    .refract-grid { grid-template-columns: 1fr; gap: 0.7rem; }
    .refract-card { padding: 1.4rem 1.2rem; }
    .refract-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
    .refract-card p { font-size: 0.84rem; line-height: 1.5; }
    .refract-tagline { font-size: 0.62rem; padding: 0.3rem 0.75rem; }
    .refract-cta-row .cta-button { display: block; width: 100%; margin-bottom: 0.55rem; margin-left: 0 !important; }
    .refract-cta-row .micro { margin-top: 0.85rem; font-size: 0.72rem; }

    /* Services / engagement models */
    .services-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .service-card { padding: 1.6rem 1.4rem; }
    .service-number { font-size: 0.66rem; margin-bottom: 0.85rem; }
    .service-header-text h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
    .service-body p { font-size: 0.85rem; line-height: 1.55; margin-bottom: 1rem; }
    .feature-list { margin-bottom: 1rem; }
    .feature-list li { font-size: 0.78rem; padding: 0.4rem 0 0.4rem 1.2rem; }

    /* Approach */
    .approach-inner { gap: 2rem; }
    .approach-text h2 { font-size: 1.7rem; }
    .approach-text p { font-size: 0.9rem; }
    .approach-pillars { gap: 1.2rem; padding-top: 0; }
    .pillar { padding-top: 1rem; }
    .pillar h4 { font-size: 0.95rem; }
    .pillar p { font-size: 0.8rem; line-height: 1.5; }

    /* Contact */
    .contact { padding: 3.2rem 1.1rem; }
    .contact h2 { font-size: 1.7rem; }
    .contact-sub { font-size: 0.92rem; margin-bottom: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { gap: 0.55rem; }
    .contact-form input, .contact-form textarea, .contact-form select { font-size: 0.86rem; padding: 11px 14px; }

    /* Subpage page-content */
    .page-content { padding: 2.5rem 1.1rem; }
    .content-container { padding: 0; }
    .content-container h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; }
    .content-container > p { font-size: 0.92rem; }
    .content-grid, .modules-grid, .process-steps { gap: 0.7rem; }
    .content-card, .module, .step, .service-section { padding: 1.2rem 1.1rem; }
    .content-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
    .content-card p { font-size: 0.84rem; }
    .step-number { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 0.6rem; }
    .cta-section { padding: 2rem 1.4rem; margin-top: 2rem; }
    .cta-section h3 { font-size: 1.25rem; }
    .cta-section p { font-size: 0.92rem; margin-bottom: 1.2rem; }

    /* Footer — compact multi-column */
    footer { padding: 2.5rem 1.1rem 1.5rem; }
    .footer-multi { grid-template-columns: 1fr 1fr; gap: 1.6rem; padding-bottom: 1.8rem; }
    .footer-brand { grid-column: span 2; }
    .footer-brand p { font-size: 0.78rem; max-width: 100%; }
    .footer-col h5 { font-size: 0.7rem; margin-bottom: 0.7rem; }
    .footer-col a { font-size: 0.8rem; }
    .footer-col ul { gap: 0.45rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-top: 1.2rem; }
    .footer-bottom p { font-size: 0.7rem; }
    .footer-legal { gap: 1rem; }
    .footer-legal a { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .hero-light h1 { font-size: 2.1rem; letter-spacing: -1px; }
    .section-header h2 { font-size: 1.5rem; }
    .outcomes-grid { grid-template-columns: 1fr 1fr; }
    .connector-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-multi { grid-template-columns: 1fr; gap: 1.4rem; }
    .footer-brand { grid-column: span 1; }
    .flow-steps { grid-template-columns: 1fr; }
    .nav-links a.nav-cta { padding: 0.4rem 0.75rem; font-size: 0.76rem; }
    .logo-section svg { width: 150px; }
}

/* =====================================================================
   REBUILD — New homepage sections (Pass 2/3)
   ===================================================================== */

/* --- Four shapes (replaces platform-grid as the gravitational center) --- */
.shapes-section {
    background: #0a0e14;
    padding: 7rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.shapes-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(0, 217, 70, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(0, 217, 70, 0.04) 0%, transparent 60%);
    pointer-events: none;
}
.shapes-section .section-header h2 { color: var(--light); }
.shapes-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}
/* Scoped to .shapes-section so these dark-themed rules don't leak into
   other pages that also use .shape-card (notably /ai-native-apps.html
   which has its own light-themed shape-card styles + a "Most popular"
   ::before badge). Previously these rules cascaded into both contexts;
   the ::before overlay would inherit through to the featured card's
   "Most popular" badge and paint the whole card solid green on hover. */
.shapes-section .shape-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    padding: 2.2rem 1.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--light);
    display: flex;
    flex-direction: column;
}
.shapes-section .shape-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 70, 0.0) 0%, rgba(0, 217, 70, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.shapes-section .shape-card:hover {
    border-color: rgba(0, 217, 70, 0.5);
    background: rgba(0, 217, 70, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 217, 70, 0.1);
}
.shapes-section .shape-card:hover::before { opacity: 1; }
.shapes-section .shape-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.6px;
    margin-bottom: 1rem;
    position: relative;
}
.shapes-section .shape-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
    position: relative;
}
.shapes-section .shape-price {
    font-size: 0.86rem;
    color: var(--slate-300);
    margin-bottom: 1rem;
    position: relative;
}
.shapes-section .shape-price strong {
    color: var(--light);
    font-weight: 800;
}
.shapes-section .shape-card p {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.65;
    flex-grow: 1;
    position: relative;
}
.shapes-section .shape-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--light);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1.4rem;
    transition: color 0.2s ease, gap 0.2s ease;
    position: relative;
}
.shapes-section .shape-card:hover .shape-cta {
    color: var(--primary);
    gap: 0.6rem;
}

/* --- Sample showcase (light section, image-led tiles) --- */
.samples-showcase {
    background: var(--paper-2);
    padding: 6rem 2.5rem;
}
.showcase-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.showcase-tile {
    background: var(--paper);
    border: 1px solid var(--slate-200);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.showcase-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(8, 12, 18, 0.14);
    border-color: var(--ink);
}
.showcase-img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.showcase-tile:hover .showcase-img { transform: scale(1.03); }
.showcase-body {
    padding: 1.6rem 1.5rem 1.7rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.showcase-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-deep);
    margin-bottom: 0.4rem;
}
.showcase-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.showcase-body p {
    font-size: 0.88rem;
    color: var(--slate-600);
    line-height: 1.55;
    margin: 0 0 1rem;
    flex-grow: 1;
}
.showcase-cta {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.84rem;
    transition: color 0.2s ease;
}
.showcase-tile:hover .showcase-cta { color: var(--primary-deep); }
.showcase-cta-row {
    text-align: center;
    margin-top: 2.5rem;
}

/* --- Beyond the build (smaller, lighter than shapes) --- */
.beyond-section {
    background: var(--paper);
    padding: 5rem 2.5rem;
}
.beyond-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.beyond-card {
    background: var(--paper-2);
    border: 1px solid var(--slate-200);
    border-radius: var(--r-md);
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.beyond-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(8, 12, 18, 0.06);
}
.beyond-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-deep);
    margin-bottom: 0.5rem;
}
.beyond-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0 0 0.6rem;
}
.beyond-card p {
    font-size: 0.86rem;
    color: var(--slate-600);
    line-height: 1.55;
    margin: 0 0 1rem;
    flex-grow: 1;
}
.beyond-cta {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}
.beyond-card:hover .beyond-cta { color: var(--primary-deep); }

/* --- 3-column variant of outcomes grid (was 4) --- */
.outcomes-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* --- Mobile responsive for new sections --- */
@media (max-width: 1024px) {
    .shapes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .shapes-grid { grid-template-columns: 1fr; }
    .showcase-grid { grid-template-columns: 1fr; }
    .beyond-grid { grid-template-columns: 1fr; }
    .outcomes-grid-3 { grid-template-columns: 1fr 1fr !important; }
    .shapes-section, .samples-showcase, .beyond-section { padding-left: 1.4rem; padding-right: 1.4rem; padding-top: 4rem; padding-bottom: 4rem; }
}
@media (max-width: 480px) {
    .outcomes-grid-3 { grid-template-columns: 1fr !important; }
}

/* =====================================================================
   MOBILE OPTIMIZATION — global safety, hamburger nav, small-screen polish
   Applies to: index, ai-native-apps, consulting, ai-agents, discover
   ===================================================================== */

/* --- Global safety: never let anything force horizontal scroll --- */
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe, canvas { max-width: 100%; height: auto; }
.nav-content, .hero-light-inner, .platform-grid, .flow-steps, .solutions-grid,
.connector-inner, .outcomes-grid, .refract-grid, .services-grid, .approach-inner,
.shapes-grid, .showcase-grid, .beyond-grid, .footer-multi, .form-row,
.section-header, .contact-container, .page-content, .content-container { min-width: 0; }

/* --- Hamburger toggle (hidden by default; shown <=768) --- */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--slate-200);
    border-radius: var(--r-sm);
    cursor: pointer;
    padding: 0;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: var(--paper); }
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.on-dark + * .nav-toggle,
.nav-open .nav-toggle { /* nothing — animation is below */ }
.navbar.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Body scroll-lock when the panel is open */
body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
    /* Show the toggle, restore all nav items inside a slide-down panel */
    .nav-toggle { display: inline-flex; }

    .nav-content { position: relative; }
    .nav-content > .logo-section { margin-right: auto; }

    .navbar .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.6rem 1rem 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--slate-100);
        box-shadow: 0 18px 40px rgba(10, 14, 20, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
    }
    .navbar.nav-open .nav-links {
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
        overflow-y: auto;
    }
    /* Re-show every nav item inside the panel (overrides the legacy rule) */
    .navbar .nav-links li { display: block !important; width: 100%; }
    .navbar .nav-links li a {
        display: block;
        padding: 0.85rem 0.4rem;
        font-size: 0.98rem;
        font-weight: 600;
        color: var(--ink);
        border-bottom: 1px solid var(--slate-100);
        min-height: 44px;
        line-height: 1.4;
    }
    .navbar .nav-links li:last-child a { border-bottom: none; }
    .navbar .nav-links a.has-menu::after { display: none; }
    .navbar .nav-links a.nav-cta {
        margin-top: 0.6rem;
        text-align: center;
        background: var(--ink);
        color: var(--light);
        border-radius: var(--r-sm);
        padding: 0.85rem 1rem !important;
        font-size: 0.95rem !important;
    }
    /* The 2018-era mega-menu dropdown is no longer used; ensure hidden inside the panel */
    .navbar .nav-dropdown { display: none !important; }
}

/* --- Critical small-screen polish (<= 480px) --- */
@media (max-width: 480px) {
    /* Tighter side padding */
    .hero-light, .platform-section, .flow-section, .solutions-section,
    .connector-section, .outcomes-section, .services-container, .approach,
    .contact, .refract-section, .shapes-section, .samples-showcase,
    .beyond-section, footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero — give the visual room to breathe; shrink trust line */
    .hero-light { padding-top: 2.4rem; padding-bottom: 2.8rem; }
    .hero-light h1 { font-size: clamp(1.95rem, 8.5vw, 2.4rem); letter-spacing: -1px; }
    .hero-light .hero-subtitle { font-size: 0.94rem; }
    .hero-light-visual { max-width: 280px; }
    .hero-microproof { font-size: 0.72rem; line-height: 1.5; align-items: flex-start; }
    .hero-microproof .check { margin-top: 2px; }

    /* Trust strip — single column if wraps too much */
    .trust-logos { gap: 0.85rem; flex-direction: column; align-items: center; }
    .trust-logo { font-size: 0.88rem; }

    /* Section headers tightened */
    .section-header h2 { font-size: 1.45rem; }
    .section-header p { font-size: 0.88rem; }

    /* Four shapes — make CTA arrow always reachable */
    .shape-card { padding: 1.4rem 1.2rem; }
    .shape-card h3 { font-size: 1.18rem; }
    .shape-cta { margin-top: 1rem; }

    /* Sample showcase — tighter image, more legible body */
    .showcase-body { padding: 1.2rem 1.1rem 1.3rem; }
    .showcase-body h3 { font-size: 1.1rem; }

    /* Beyond cards */
    .beyond-card { padding: 1.3rem 1.1rem; }

    /* Connector tiles compress to 2-up (3 was still tight) */
    .connector-grid { grid-template-columns: repeat(2, 1fr); }

    /* Outcomes go single-column */
    .outcomes-grid { grid-template-columns: 1fr; }
    .outcomes-grid .outcome { padding: 1.2rem 1rem; }
    .outcome-num { font-size: 1.9rem; }
    .outcome-label { font-size: 0.92rem; }

    /* Services / cards full-width with tighter inner padding */
    .service-card { padding: 1.6rem 1.3rem; }

    /* Approach pillars */
    .approach { padding-top: 3rem; padding-bottom: 3rem; }
    .approach-inner { gap: 1.6rem; }

    /* Contact — full-width single column, larger taps */
    .contact { padding-top: 3rem; padding-bottom: 3rem; }
    .contact h2 { font-size: 1.55rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form input,
    .contact-form textarea,
    .contact-form select { padding: 13px 14px; font-size: 0.95rem; min-height: 44px; }
    .contact-form .cta-button { align-self: stretch; }

    /* CTAs always 44px tap target */
    .cta-button { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }

    /* Step circles + cards */
    .step { padding: 1.4rem 1.1rem; }
    .step-number { width: 38px; height: 38px; font-size: 1rem; }

    /* Page-content (inner subpages) */
    .page-content { padding: 2rem 1rem; }
    .content-container { padding: 0; }
    .content-grid, .modules-grid, .process-steps { grid-template-columns: 1fr; gap: 0.7rem; }

    /* CTA section blocks */
    .cta-section { padding: 1.8rem 1.2rem; }

    /* Footer — single column, larger tap targets */
    .footer-multi { grid-template-columns: 1fr; gap: 1.4rem; }
    .footer-brand { grid-column: span 1; }
    .footer-col a { padding: 0.3rem 0; display: inline-block; }
    .footer-legal { gap: 0.85rem; flex-wrap: wrap; }
}

/* --- iPhone SE / very small screens (<= 360px) --- */
@media (max-width: 360px) {
    .hero-light h1 { font-size: 1.85rem; }
    .section-header h2 { font-size: 1.35rem; }
    .nav-content { gap: 0.4rem; }
    .logo-section svg { width: 130px; height: 22px; }
    .hero-stat { padding: 0.7rem 0.6rem; }
    .stat-number { font-size: 1.1rem; }
    .stat-label { font-size: 0.58rem; }
    .connector-grid { grid-template-columns: 1fr 1fr; }
    .flow-step { padding: 1rem 0.85rem; }
    .capability-card { padding: 1.2rem 1rem; }
    .shape-card { padding: 1.2rem 1rem; }
    .shape-card h3 { font-size: 1.08rem; }
    .refract-card { padding: 1.3rem 1.1rem; }
}

/* --- Touch-device niceties --- */
@media (hover: none) {
    .nav-toggle:hover { background: transparent; }
}

/* =====================================================================
   CUSTOM PLAN PREVIEW
   Under the hero CTAs: a discreet "See what we'd build for your business"
   link. Click → inline form → submit → a structured plan-preview card
   slides in showing vertical, headline, narrative, 4 features, tier
   recommendation, and a sample CTA. Output reads like a consulting
   deliverable, not a chatbot rewrite. The model behind it is never named.
   ===================================================================== */

.hero-plan {
    margin-top: 1.5rem;
    margin-bottom: 1.4rem;
}
.plan-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--slate-300);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.1px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.18s ease, transform 0.15s ease;
}
.plan-trigger:hover {
    background: rgba(0, 217, 70, 0.08);
    border-color: rgba(0, 217, 70, 0.55);
    color: var(--light);
    transform: translateY(-1px);
}
.plan-trigger-arrow {
    color: var(--primary);
    font-weight: 700;
    transition: transform 0.18s ease;
}
.plan-trigger:hover .plan-trigger-arrow { transform: translateX(3px); }

.plan-form {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.7rem;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 217, 70, 0.28);
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
}
.plan-form.show { display: flex; }
.plan-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--light);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 10px 0;
    outline: none;
}
.plan-form input::placeholder { color: rgba(255, 255, 255, 0.35); }
.plan-submit {
    background: var(--primary);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
}
.plan-submit:hover { background: #00ff66; }
.plan-submit:disabled { background: rgba(0, 217, 70, 0.4); cursor: not-allowed; }
.plan-cancel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}
.plan-cancel:hover { color: var(--light); background: rgba(255, 255, 255, 0.08); }
.plan-status {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--slate-400);
    min-height: 1.1em;
}
.plan-status.is-err { color: #ff6868; }

/* === The plan-preview card itself === */
.plan-preview {
    max-width: 1320px;
    margin: 3rem auto 0;
    padding: 0 2.5rem;
    position: relative;
    z-index: 2;
}
.plan-preview:empty { display: none; }

.pp-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--slate-100);
    border-radius: 18px;
    padding: 2.2rem 2.4rem 2.4rem;
    box-shadow: 0 30px 80px rgba(10, 14, 20, 0.12);
    color: var(--ink);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pp-card.pp-in,
.pp-card.pp-from-cache {
    opacity: 1;
    transform: translateY(0);
}
.pp-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #00ff66 50%, var(--primary) 100%);
}

.pp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}
.pp-vertical {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-deep);
    background: var(--primary-tint);
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
}
.pp-vertical-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(0, 217, 70, 0.55);
}
.pp-reset {
    background: transparent;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    color: var(--slate-500);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.85rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.pp-reset:hover { color: var(--ink); border-color: var(--ink); }

.pp-context {
    font-size: 0.84rem;
    color: var(--slate-500);
    margin-bottom: 0.9rem;
}
.pp-context strong {
    color: var(--ink);
    font-weight: 700;
}

.pp-headline {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.12;
    margin: 0 0 0.7rem;
    color: var(--ink);
}
.pp-narrative {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--slate-600);
    margin: 0 0 1.6rem;
    max-width: 720px;
}

.pp-section-h {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--slate-500);
    margin: 0 0 0.85rem;
}

.pp-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.6rem;
}
.pp-feature {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(8px);
    animation: pp-feat-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes pp-feat-in {
    to { opacity: 1; transform: translateY(0); }
}
.pp-from-cache .pp-feature {
    animation: none;
    opacity: 1;
    transform: none;
}
.pp-feature-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    margin-top: 2px;
}
.pp-feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}
.pp-feature-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.2px;
}
.pp-feature-detail {
    font-size: 0.84rem;
    color: var(--slate-600);
    line-height: 1.55;
}

.pp-tier {
    background: var(--paper-2);
    border: 1px solid var(--slate-100);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.6rem;
}
.pp-tier-eyebrow {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary-deep);
    display: block;
    margin-bottom: 0.4rem;
}
.pp-tier-row {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.pp-tier-name {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.3px;
}
.pp-tier-reason {
    font-size: 0.86rem;
    color: var(--slate-600);
    line-height: 1.55;
    flex: 1 1 200px;
    min-width: 0;
}

.pp-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.pp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 12px 22px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
    min-height: 44px;
    line-height: 1.2;
}
.pp-cta-primary {
    background: var(--ink);
    color: var(--light);
}
.pp-cta-primary:hover {
    background: var(--primary);
    color: var(--ink);
    transform: translateY(-1px);
}
.pp-cta-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--slate-200);
}
.pp-cta-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}
.pp-cta-arrow {
    transition: transform 0.18s ease;
}
.pp-cta:hover .pp-cta-arrow { transform: translateX(3px); }

@media (max-width: 768px) {
    .plan-preview { padding: 0 1.1rem; margin-top: 2rem; }
    .pp-card { padding: 1.6rem 1.4rem 1.8rem; }
    .pp-feature-list { grid-template-columns: 1fr; gap: 0.75rem; }
    .pp-ctas { flex-direction: column; }
    .pp-cta { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .plan-trigger { font-size: 0.8rem; padding: 0.5rem 1rem; }
    .plan-form { max-width: 100%; }
    .plan-form input { font-size: 16px; }
    .pp-headline { font-size: 1.4rem; }
    .pp-tier-row { flex-direction: column; gap: 0.35rem; }
}
/* Plan form — at very narrow widths, stack input above buttons so the
   submit button doesn't wrap and the cancel doesn't hug the edge. */
@media (max-width: 480px) {
    .plan-form {
        flex-wrap: wrap;
        padding: 8px;
        gap: 6px;
    }
    .plan-form input {
        flex: 1 1 100%;
        padding: 12px 10px;
    }
    .plan-submit {
        flex: 1 1 auto;
        white-space: nowrap;
        padding: 10px 14px;
    }
    .plan-cancel {
        flex: 0 0 auto;
        order: 99;
    }
    .plan-trigger { width: 100%; justify-content: center; }
    .plan-trigger > span:first-child { white-space: normal; text-align: center; }
}

/* Hero eyebrow can wrap on tiny screens — currently inline-flex which
   forces a single line and clips text past viewport at <=360px. */
@media (max-width: 380px) {
    .hero-light-content .hero-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 1.1px;
        padding: 0.32rem 0.7rem;
        max-width: 100%;
        white-space: normal;
        text-align: left;
        line-height: 1.3;
    }
}
