/* --- ULTIMUM BRANDING SYSTEM --- */
:root {
    /* Core Brand Colors */
    --u-cyan: #06b6d4;
    --u-blue: #3b82f6;
    --u-navy: #1e3a8a;

    /* Backgrounds */
    --bg-dark: #020617;
    /* Haupt Dark Theme */
    --bg-dark-sec: #0f172a;
    /* Sekundär Dark (für Karten/Abwechslung) */
    --bg-light: #ffffff;
    /* Haupt Light Theme */
    --bg-light-sec: #f8fafc;
    /* Sekundär Light */

    /* Text Colors */
    --text-on-dark: #f1f5f9;
    --text-muted-dark: #94a3b8;
    --text-on-light: #1e293b;
    --text-muted-light: #64748b;

    /* Accents */
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f97316;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--u-cyan) 0%, var(--u-blue) 100%);
    --gradient-dark: radial-gradient(circle at top right, #1e3a8a 0%, #020617 70%);
    --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

    /* Shapes & Shadows */
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
    --border-light: 1px solid #e2e8f0;
    --border-dark: 1px solid rgba(255, 255, 255, 0.08);

    --max-width: 1280px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
    color: var(--text-on-light);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -1.5px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.section-padding {
    padding: 8rem 0;
}

.text-center {
    text-align: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-cta-orange {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-cta-orange:hover {
    transform: translateY(-2px);
    background: #ea580c;
}

.btn-white {
    background: white;
    color: var(--u-navy);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.btn-header {
    background: white;
    color: var(--u-navy);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.btn-header:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.btn-link {
    color: var(--u-blue);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-link:hover {
    gap: 12px;
    color: var(--u-cyan);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.nav-wrapper {
    height: 90px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.logo-bars-group {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
}

.logo-bar {
    width: 10px;
    border-radius: 2px;
}

/* Logo Specifics */
.bar-cyan {
    height: 18px;
    background-color: #00d4ff;
}

.bar-blue {
    height: 26px;
    background-color: #2563eb;
}

.bar-dark {
    height: 34px;
    background-color: #1e3a8a;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    /* Force white over link color */
    line-height: 1;
    letter-spacing: -0.025em;
    font-family: 'Inter', sans-serif;
}

.logo-sub-text {
    color: #dbeafe;
    font-weight: 600;
}

nav {
    justify-self: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.nav-links a:hover {
    color: white;
}

.nav-actions {
    justify-self: end;
}

/* --- GLOBAL CARD & SECTION STYLES --- */
.section-light {
    background: var(--bg-light);
    color: var(--text-on-light);
}

.section-alt {
    background: var(--bg-light-sec);
    color: var(--text-on-light);
    border-top: var(--border-light);
    border-bottom: var(--border-light);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-dark-sec {
    background: var(--bg-dark-sec);
    color: var(--text-on-dark);
    border-top: var(--border-dark);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-dark);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card-dark:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* --- HERO --- */
.hero {
    padding-top: 180px;
    padding-bottom: 0;
    background-color: var(--bg-dark);
    background-image: var(--gradient-dark);
    color: white;
    position: relative;
    /* overflow: hidden; REMOVED for Slide-Out Effect */
    display: flex;
    flex-direction: column;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--u-cyan);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* HERO SLIDE OUT LOGIC */
.hero-form-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-info-card {
    position: absolute;
    top: 5px;
    /* Slight offset for visual stack */
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: #172C6B;
    /* User requested Blue */
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    z-index: 5;
    opacity: 0;
    transform: translateX(0) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    /* Allow click through when hidden */
}

/* On hover of wrapper, slide right */
.hero-form-wrapper:hover .hero-info-card {
    opacity: 1;
    transform: translateX(105%) scale(1);
    /* Slide out to the right */
    pointer-events: auto;
}

/* Hide slide-out on mobile/small screens to prevent horizontal scroll issues */
@media (max-width: 1024px) {
    .hero-form-wrapper:hover .hero-info-card {
        display: none;
        /* Disable on smaller screens */
    }
}


/* Hero Form Card Fixes */
.hero-form-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    margin-left: auto;
    color: var(--text-on-light);
    box-sizing: border-box;
    /* Critical for padding/width calculation */
}

.btn-cta-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    /* Critical to prevent overflow */
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-cta-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--u-blue);
    background: white;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #475569;
}

/* Expertise Tabs (New) */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--u-cyan);
    color: var(--u-cyan);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--u-cyan);
    color: var(--u-navy);
}

/* Tabs Logic Fix */
.tab-content {
    display: none;
    /* Hidden by default */
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    /* Shown only when active */
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- UTILITIES --- */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.mobile-only {
    display: none;
}

/* Final CTA Spacing */
.section-cta {
    background: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 6rem 0 10rem;
    margin-bottom: 0;
}

/* Corrected Final Right Section */
.final-right {
    background: #1e293b;
    padding: 4rem;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.final-right .form-input {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

.final-right .form-input:focus {
    border-color: var(--u-blue);
}

.final-right .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    margin-top: 1.5rem;
    box-sizing: border-box;
}


/* Tech Strip (Restored & Improved) */
.tech-strip {
    background: #020617;
    border-top: 1px solid #1e293b;
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    z-index: 5;
    margin-top: 4rem;
    overflow: hidden;
    /* Hide scrollbar */
}

.scrolling-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 100%;
}

.logos-track {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
    padding-left: 4rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logos span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #cbd5e1;
    white-space: nowrap;
}

/* --- SECTION 1: COMPARISON --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.compare-card-light {
    padding: 3.5rem 3rem;
    border-radius: var(--radius-lg);
    border: var(--border-light);
    background: white;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.card-bad {
    border-top: 5px solid var(--accent-red);
}

.card-bad .icon-box {
    background: #fef2f2;
    color: var(--accent-red);
}

.card-good {
    border-top: 5px solid var(--accent-green);
    background: #f0fdf4;
}

.card-good .icon-box {
    background: #dcfce7;
    color: #15803d;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-comparison {
    list-style: none;
    margin-top: 2rem;
}

.list-comparison li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
    font-size: 1.05rem;
}

/* --- SECTION 2: ECOSYSTEM (Replaces API) --- */
.eco-section {
    background: #0f172a;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Ambience - Increased visibility */
.eco-ambience-blue {
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.eco-ambience-green {
    position: absolute;
    bottom: -10%;
    right: 10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.eco-header {
    text-align: center;
    max-width: 672px;
    /* max-w-2xl */
    margin: 0 auto 4rem;
    position: relative;
    z-index: 10;
    /* Reset global header styles */
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
}

.eco-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wider */
    margin-bottom: 1.5rem;
}

.eco-title {
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #dbeafe, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* standard way to make gradient text work */
}

@media (min-width: 768px) {
    .eco-title {
        font-size: 3rem;
        /* text-5xl */
    }
}

/* Visual Container */
.eco-visual-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 600px;
    /* Fixed height for the diagram */
    z-index: 10;
}

/* SVG Layer */
.eco-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.eco-line-base {
    stroke: rgba(148, 163, 184, 0.1);
    stroke-width: 2;
    stroke-dasharray: 6 6;
}

.eco-line-active {
    stroke: url(#gradientLine);
    stroke-width: 4;
    transition: all 0.5s ease;
    opacity: 0;
}

.active-state .eco-line-active {
    opacity: 1;
}

/* Nodes */
.eco-node {
    position: absolute;
    z-index: 30;
    transition: all 0.5s ease;
}

.eco-node:hover {
    transform: scale(1.05);
    z-index: 40;
}

.eco-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    width: auto;
    min-width: 200px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.eco-node:hover .eco-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.eco-icon-box {
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific Colors */
.color-shopify .eco-icon-box {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.color-amazon .eco-icon-box {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.color-paypal .eco-icon-box {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

.color-invoice .eco-icon-box {
    background: rgba(192, 132, 252, 0.2);
    color: #c084fc;
}

.eco-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: color 0.3s;
}

.eco-node:hover .eco-label {
    color: white;
}

.eco-status {
    font-size: 0.75rem;
    color: #64748b;
}

.eco-node:hover .eco-status {
    color: #bfdbfe;
}

/* Popover */
.eco-popover {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 16px;
    width: 280px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.eco-node:hover .eco-popover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Center Hub */
.eco-hub-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.eco-hub-pulse {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.eco-hub {
    width: 140px;
    height: 140px;
    background: #0f172a;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 25;
}

.eco-hub-inner {
    background: #2563eb;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.5);
    margin-bottom: 8px;
}

/* Animations */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes flow {
    0% {
        stroke-dashoffset: 24;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Responsive Positions (simplified for CSS) */
/* Desktop */
@media (min-width: 768px) {
    .pos-top-left {
        top: 15%;
        left: 15%;
    }

    .pos-center-left {
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
    }

    .pos-bottom-left {
        bottom: 15%;
        left: 15%;
    }

    .pos-top-right {
        top: 15%;
        right: 15%;
    }

    .pos-center-right {
        top: 50%;
        right: 10%;
        transform: translateY(-50%);
    }

    .pos-bottom-right {
        bottom: 15%;
        right: 15%;
    }

    /* Re-apply hover transform for center-left/right */
    .pos-center-left:hover,
    .pos-center-right:hover {
        transform: translateY(-50%) scale(1.05);
    }
}

/* Mobile Fallback - stack them or simplified grid */
@media (max-width: 767px) {
    .eco-visual-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
        align-items: center;
    }

    .eco-svg-layer {
        display: none;
    }

    .eco-node,
    .eco-hub-container {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 320px;
    }

    .eco-hub-pulse {
        display: none;
    }

    .eco-popover {
        position: static;
        width: 100%;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        display: none;
        /* Hide popover on mobile by default to save space, or show always */
    }

    .eco-node:active .eco-popover {
        display: block;
    }
}

/* --- SECTION 3: SERVICES (UNIFIED) --- */
.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-icon-box.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--u-blue);
}

.service-icon-box.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.service-icon-box.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

/* --- SECTION 4: TECH SETUP --- */
.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.check-list-modern {
    list-style: none;
    margin: 3rem 0;
    padding: 0;
}

.check-list-modern li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.check-circle {
    min-width: 28px;
    height: 28px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #064e3b;
    font-size: 0.9rem;
    margin-top: 4px;
}

.terminal-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* --- TESTIMONIAL --- */
.quote-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--u-navy);
    line-height: 1.3;
    margin: 2rem 0 2.5rem;
    letter-spacing: -0.5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    text-align: center;
    border-top: var(--border-light);
    padding-top: 4rem;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--u-blue);
}

/* --- EXPERTISE --- */
.deep-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.deep-item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.deep-number {
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--u-cyan);
    opacity: 0.4;
    line-height: 0.8;
}

/* --- SPECIALIZATION --- */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.spec-card {
    padding: 3rem;
    border-radius: 16px;
    background: white;
    border: var(--border-light);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-card);
}

.spec-card.cyan {
    border-left-color: var(--u-cyan);
}

.spec-card.blue {
    border-left-color: var(--u-blue);
}

.spec-card.navy {
    border-left-color: var(--u-navy);
}

/* --- PROCESS --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.step-badge {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-weight: 700;
    color: white;
    font-size: 1.5rem;
}

/* --- FINAL CTA --- */
.final-card-split {
    background: var(--bg-dark);
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: 0 40px 80px rgba(30, 58, 138, 0.3);
    max-width: 1100px;
    margin: 0 auto;
}

.final-left {
    padding: 5rem;
    background: radial-gradient(circle at top left, var(--u-navy) 0%, var(--bg-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.final-right {
    padding: 5rem;
    background: #0f172a;
}

.checklist-final li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.2rem;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1.1rem;
}

.checklist-final i {
    color: var(--u-cyan);
}

/* --- FOOTER --- */
footer {
    background: #020617;
    padding: 10rem 0 3rem;
    /* Increased top padding from 6rem to 10rem */
    border-top: var(--border-dark);
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

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

.copyright {
    border-top: var(--border-dark);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- UTILITIES --- */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

/* Mobile Only / Desktop Only helpers */
.mobile-toggle-btn {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .nav-wrapper {
        grid-template-columns: 1fr auto;
        height: auto;
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        /* Hide standard nav links */
    }

    .nav-actions {
        display: none;
        /* Hide standard header button */
    }

    .mobile-toggle-btn {
        display: block;
        /* Show hamburger */
        font-size: 1.5rem;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hero-grid,
    .comparison-grid,
    .value-grid,
    .stats-grid,
    .final-card-split,
    .api-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 130px;
        /* Reduced top padding */
        padding-bottom: 4rem;
    }

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

    .hero-tag {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-form-card {
        margin: 2rem auto 0;
        width: 100%;
        max-width: 100%;
        /* Allow full width on mobile if needed, or keep 450px */
    }

    .final-left,
    .final-right {
        padding: 2rem;
    }

    .api-grid-layout {
        gap: 3rem;
    }

    .api-visual-card {
        min-height: auto;
        padding: 2rem;
    }

    .nav-wrapper>a.logo {
        flex-grow: 1;
    }
}

/* --- RESPONSIVE UTILITIES --- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 0.8rem;
    }
}

/* Custom Multi-Select Dropdown */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.ms-select-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
    min-height: 42px;
}

.ms-select-box.dark-mode {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

.ms-options {
    display: none;
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
}

.ms-options.dark-mode {
    background: #1e293b;
    border-color: #334155;
}

.ms-options.show {
    display: block;
}

.ms-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    color: #475569;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.ms-options.dark-mode label {
    color: #e2e8f0;
}

.ms-options label:hover {
    background: #f1f5f9;
}

.ms-options.dark-mode label:hover {
    background: #334155;
}

.ms-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--u-cyan);
    cursor: pointer;
}

/* CFO Grid Layout (2x2) */
.cfo-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cfo-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}