/* ==========================================================================
   ARGENCAL - Enterprise AI Knowledge Platform
   Design System CSS based on Editorial AI Research aesthetic
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Backgrounds */
    --color-bg-primary: #EDEAF5;
    --color-bg-yellow: #F2D96B;
    --color-bg-card-green: #D0EDDA;
    --color-bg-card-pink: #FAD9D9;
    --color-bg-card-blue: #D3E8F0;

    /* Text */
    --color-text-primary: #17152B;
    --color-text-secondary: #4A4660;
    --color-text-muted: #8A87A0;

    /* Accents */
    --color-accent-coral: #E8726A;
    --color-accent-green-1: #4DC754;
    --color-accent-green-2: #A8E6A3;
    --color-accent-yellow: #F5C842;

    /* Borders & Dividers */
    --color-border: #D9D4EC;
    --color-border-dark: #B8B1D4;

    /* Navigation */
    --color-nav-bg: #EDEAF5;
    --color-nav-cta-bg: #17152B;
    --color-nav-cta-text: #FFFFFF;

    /* Typography - Font Families */
    --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', 'Jost', 'Helvetica Neue', sans-serif;
    --font-mono: 'DM Mono', 'Fira Code', monospace;

    /* Typography - Sizes */
    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-md: 1.0625rem;
    --text-lg: 1.3125rem;
    --text-xl: 1.625rem;
    --text-2xl: 2.125rem;
    --text-3xl: 2.875rem;
    --text-4xl: 3.75rem;

    /* Line Heights */
    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-loose: 1.8;

    /* Letter Spacing */
    --tracking-tight: -0.03em;
    --tracking-normal: 0em;
    --tracking-wide: 0.06em;
    --tracking-wider: 0.12em;

    /* Spacing */
    --space-unit: 8px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;
    --space-11: 160px;
    --space-12: 200px;

    /* Layout Containers */
    --container-sm: 640px;
    --container-md: 860px;
    --container-lg: 1120px;
    --container-xl: 1360px;

    /* Section Padding */
    --section-pad-y: var(--space-11);
    --section-pad-x: var(--space-6);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(23, 21, 43, 0.06);
    --shadow-sm: 0 2px 8px rgba(23, 21, 43, 0.08);
    --shadow-md: 0 4px 16px rgba(23, 21, 43, 0.10);
    --shadow-lg: 0 8px 30px rgba(23, 21, 43, 0.12);
    --shadow-xl: 0 16px 48px rgba(23, 21, 43, 0.14);
    --shadow-coral: 0 6px 20px rgba(232, 114, 106, 0.30);

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    /* Breakpoints (for reference) */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background: radial-gradient(
        ellipse at top center,
        #F5F2FF 0%,
        #EDEAF5 60%
    );
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-3xl);
    font-weight: 400;
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

.text-italic-lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--space-8);
}

.link-highlight {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-accent-coral);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s ease;
}

.link-highlight:hover {
    color: var(--color-accent-coral);
}

/* ==========================================================================
   4. Layout & Containers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

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

.section {
    padding: var(--section-pad-y) var(--section-pad-x);
    position: relative;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-accent-coral);
    color: #fff;
    border-color: var(--color-accent-coral);
}

.btn-primary:hover {
    background: #d45f58;
    border-color: #d45f58;
    box-shadow: var(--shadow-coral);
}

.btn-nav {
    background: var(--color-nav-cta-bg);
    color: var(--color-nav-cta-text);
    border-color: var(--color-nav-cta-bg);
    padding: 10px 20px;
}

.btn-nav:hover {
    background: #2e2b4a;
    border-color: #2e2b4a;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border-dark);
}

.btn-outline:hover {
    background: var(--color-text-primary);
    color: #fff;
    border-color: var(--color-text-primary);
}

.btn-sm {
    font-size: var(--text-xs);
    padding: 8px 16px;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-3) var(--space-6);
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

.nav-links {
    display: flex;
    gap: var(--space-7);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-coral);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-links {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
}

.mobile-menu-links li {
    margin-bottom: var(--space-4);
}

.mobile-menu-links a {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    display: block;
    padding: var(--space-2) 0;
}

.mobile-menu-cta {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */

.hero {
    padding: var(--space-10) var(--space-6) var(--space-11);
    background: var(--color-bg-primary);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-lg);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-4);
}

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

.hero-headline {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--space-5);
}

.hero-body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-7);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
}

.hero-stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: var(--tracking-wide);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-bars-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 4px;
    height: 220px;
    align-items: flex-end;
}

.hero-bar {
    width: 14px;
    border-radius: 6px 6px 0 0;
    animation: barPulse 2.4s ease-in-out infinite;
}

.hero-bar:nth-child(odd) {
    background: var(--color-accent-green-1);
}

.hero-bar:nth-child(even) {
    background: var(--color-accent-green-2);
}

.hero-bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.hero-bar:nth-child(2) { height: 85%; animation-delay: 0.15s; }
.hero-bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.hero-bar:nth-child(4) { height: 95%; animation-delay: 0.45s; }
.hero-bar:nth-child(5) { height: 70%; animation-delay: 0.6s; }
.hero-bar:nth-child(6) { height: 55%; animation-delay: 0.75s; }
.hero-bar:nth-child(7) { height: 80%; animation-delay: 0.9s; }
.hero-bar:nth-child(8) { height: 50%; animation-delay: 1.05s; }
.hero-bar:nth-child(9) { height: 90%; animation-delay: 1.2s; }
.hero-bar:nth-child(10) { height: 65%; animation-delay: 1.35s; }
.hero-bar:nth-child(11) { height: 75%; animation-delay: 1.5s; }
.hero-bar:nth-child(12) { height: 40%; animation-delay: 1.65s; }

@keyframes barPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.65); opacity: 0.7; }
}

/* Hero Knowledge Graph */
.hero-graph {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.knowledge-graph-svg {
    width: 100%;
    height: auto;
}

.pulse-node {
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.orbit-dot {
    animation: orbitSpin 4s linear infinite;
    transform-origin: center;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg) translateX(0); }
    to { transform: rotate(360deg) translateX(0); }
}

/* ==========================================================================
   8. Problem/Gap Section
   ========================================================================== */

.section-gap {
    background: var(--color-bg-primary);
    padding: var(--space-11) var(--space-6);
}

.section-heading {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: var(--leading-snug);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.section-heading-centered {
    text-align: center;
    max-width: var(--container-md);
    margin-left: auto;
    margin-right: auto;
}

.gap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
    margin-top: var(--space-9);
}

/* Terminal Window */
.terminal-window {
    background: #1a1825;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: #2d2a3e;
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: #8A87A0;
    margin-left: var(--space-3);
}

.terminal-body {
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.8;
}

.terminal-line {
    display: block;
    margin-bottom: var(--space-1);
}

.terminal-prompt {
    color: var(--color-accent-green-1);
}

.terminal-cmd {
    color: #f8f8f2;
}

.terminal-string {
    color: #f1fa8c;
}

.terminal-output {
    color: #6272a4;
}

.terminal-warning {
    color: var(--color-accent-yellow);
}

.terminal-error {
    color: var(--color-accent-coral);
}

.terminal-cursor {
    animation: cursorBlink 1s step-end infinite;
    color: var(--color-accent-green-1);
}

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

/* Callout Card */
.callout-card {
    background: var(--color-accent-yellow);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

.callout-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
}

.callout-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.callout-list li {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
}

.callout-list li:last-child {
    margin-bottom: 0;
}

.callout-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   9. Yellow Solution Section
   ========================================================================== */

.section-yellow {
    background: var(--color-bg-yellow);
    padding: var(--space-12) var(--space-6);
    position: relative;
    overflow: hidden;
}

.section-yellow-overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 60%,
        rgba(180, 140, 20, 0.08) 100%
    );
    pointer-events: none;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: center;
    position: relative;
    z-index: 1;
}

.solution-content {
    max-width: 520px;
}

.solution-body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    margin-bottom: var(--space-5);
}

.solution-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.botanical-illustration {
    width: 100%;
    max-width: 450px;
    height: auto;
    mix-blend-mode: multiply;
}

.leaf {
    animation: leafSway 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.leaf-1 { animation-delay: 0s; }
.leaf-2 { animation-delay: 1.5s; }
.leaf-3 { animation-delay: 3s; }
.leaf-4 { animation-delay: 4.5s; }

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* ==========================================================================
   10. Research/Technology Section
   ========================================================================== */

.section-research {
    background: var(--color-bg-primary);
    padding: var(--space-11) var(--space-6);
}

.research-visual {
    margin: var(--space-9) auto;
    max-width: 100%;
    overflow: hidden;
}

.tech-illustration {
    width: 100%;
    height: auto;
}

.flow-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: flowDash 3s ease-in-out infinite;
}

@keyframes flowDash {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

.research-caption {
    font-size: var(--text-sm);
    line-height: var(--leading-loose);
    color: var(--color-text-muted);
    text-align: center;
    max-width: var(--container-md);
    margin: 0 auto var(--space-8);
}

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

/* ==========================================================================
   11. Capabilities/Features Section
   ========================================================================== */

.section-capabilities {
    background: var(--color-bg-primary);
    padding: var(--space-11) var(--space-6);
}

.section-subhead {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: var(--container-md);
    margin-bottom: var(--space-6);
}

.section-cta {
    margin-bottom: var(--space-9);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* Cards */
.card {
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-green { background: var(--color-bg-card-green); }
.card-pink { background: var(--color-bg-card-pink); }
.card-blue { background: var(--color-bg-card-blue); }

.card-visual {
    margin-bottom: var(--space-5);
    display: flex;
    justify-content: center;
}

.card-illustration {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.card-label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.card-description {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.card-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-features li {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent-green-1);
    border-radius: 50%;
    flex-shrink: 0;
}

.card-features li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   12. How It Works Section
   ========================================================================== */

.section-how-it-works {
    background: var(--color-bg-primary);
    padding: var(--space-11) var(--space-6);
    border-top: 1px solid var(--color-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-9);
}

.step {
    text-align: center;
    padding: var(--space-5);
}

.step-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-accent-coral);
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.step-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.step-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-5);
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-visual svg {
    width: 120px;
    height: 80px;
}

/* ==========================================================================
   13. Use Cases Section
   ========================================================================== */

.section-use-cases {
    background: var(--color-bg-primary);
    padding: var(--space-11) var(--space-6);
    border-top: 1px solid var(--color-border);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-9);
}

.use-case {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.use-case:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.use-case-icon {
    margin-bottom: var(--space-4);
}

.use-case-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.use-case-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

/* ==========================================================================
   14. Impact/Stats Section
   ========================================================================== */

.section-impact {
    background: var(--color-text-primary);
    padding: var(--space-11) var(--space-6);
}

.section-impact .section-eyebrow {
    color: var(--color-accent-green-2);
}

.section-impact .section-heading {
    color: #fff;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-9);
}

.impact-stat {
    text-align: center;
    padding: var(--space-5);
}

.impact-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--color-accent-green-1);
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1;
}

.impact-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #fff;
    display: block;
    margin-bottom: var(--space-3);
}

.impact-description {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

/* ==========================================================================
   15. Contact Section
   ========================================================================== */

.section-contact {
    background: var(--color-bg-primary);
    padding: var(--space-11) var(--space-6);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
    align-items: start;
}

.contact-content {
    max-width: 480px;
}

.contact-body {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-5);
}

.contact-info {
    margin-top: var(--space-8);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    display: block;
    margin-bottom: var(--space-1);
}

.contact-info-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    line-height: var(--leading-normal);
}

a.contact-info-value:hover {
    color: var(--color-accent-coral);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.input {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.input:focus {
    border-color: var(--color-accent-coral);
    box-shadow: 0 0 0 3px rgba(232, 114, 106, 0.15);
}

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

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A87A0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-consent {
    margin-bottom: var(--space-5);
}

.checkbox-label {
    display: flex;
    gap: var(--space-3);
    cursor: pointer;
    align-items: flex-start;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-accent-coral);
}

.checkbox-text {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.form-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-4);
}

/* ==========================================================================
   16. Final CTA Section
   ========================================================================== */

.section-final-cta {
    background: var(--color-bg-primary);
    padding: var(--space-10) var(--space-6);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.final-cta-heading {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.final-cta-body {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    max-width: var(--container-sm);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   17. Footer
   ========================================================================== */

.footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-9) var(--space-6) var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    text-decoration: none;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: var(--tracking-tight);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
}

.footer-links-group {
    padding-top: var(--space-2);
}

.footer-links-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-legal {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   18. Responsive Design
   ========================================================================== */

/* Large Desktop */
@media (max-width: 1280px) {
    :root {
        --text-3xl: 2.5rem;
        --text-4xl: 3.25rem;
    }

    .hero-container {
        gap: var(--space-6);
    }
}

/* Desktop/Laptop */
@media (max-width: 1024px) {
    :root {
        --section-pad-y: var(--space-9);
    }

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

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

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

/* Tablet */
@media (max-width: 768px) {
    :root {
        --text-2xl: 1.75rem;
        --text-3xl: 2.125rem;
        --text-4xl: 2.5rem;
        --section-pad-y: var(--space-8);
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-body {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        min-height: 300px;
    }

    .hero-bars-wrapper {
        display: none;
    }

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

    .gap-visual {
        order: -1;
    }

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

    .solution-visual {
        order: -1;
    }

    .capabilities-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .contact-content {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --text-xl: 1.375rem;
        --text-2xl: 1.5rem;
        --text-3xl: 1.875rem;
        --section-pad-y: var(--space-7);
        --section-pad-x: var(--space-4);
    }

    .container {
        padding: 0 var(--space-4);
    }

    .nav-container {
        padding: var(--space-3) var(--space-4);
    }

    .hero {
        padding: var(--space-8) var(--space-4) var(--space-9);
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-5);
    }

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

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

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

    .impact-number {
        font-size: var(--text-3xl);
    }

    .terminal-body {
        padding: var(--space-3);
        font-size: 10px;
    }

    .callout-card {
        padding: var(--space-4);
    }

    .callout-list li {
        flex-direction: column;
        gap: var(--space-2);
    }

    .callout-icon {
        align-self: flex-start;
    }

    .contact-form-wrapper {
        padding: var(--space-5);
    }

    .step-number {
        font-size: var(--text-2xl);
    }
}

/* ==========================================================================
   19. Animations & Transitions
   ========================================================================== */

/* Scroll reveal animation base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.active > *:nth-child(6) { transition-delay: 0.6s; }

.stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation for decorative elements */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(
        90deg,
        var(--color-accent-green-1),
        var(--color-accent-coral),
        var(--color-accent-yellow),
        var(--color-accent-green-1)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   20. Print Styles
   ========================================================================== */

@media print {
    .nav,
    .hero-bars-wrapper,
    .hero-graph,
    .mobile-menu,
    .nav-hamburger,
    .btn,
    .section-final-cta,
    .contact-form-wrapper {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   21. Accessibility
   ========================================================================== */

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-accent-coral);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-nav-cta-bg);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bar,
    .pulse-node,
    .orbit-dot,
    .flow-path,
    .leaf {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000;
        --color-border-dark: #000;
        --color-text-muted: #333;
    }

    .btn {
        border-width: 2px;
    }

    .card {
        border: 2px solid #000;
    }
}

/* Dark mode support (optional, can be expanded) */
@media (prefers-color-scheme: dark) {
    /*
    Add dark mode styles here if needed.
    For now, the design maintains the light, editorial aesthetic.
    */
}
