/* ============================================
   Acumix — Industrial Precision Design
   ============================================ */

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

:root {
    --black: #0a0a0f;
    --surface: #12121a;
    --surface-2: #1a1a26;
    --surface-3: #22222f;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #8a8a9a;
    --text-light: #b0b0c0;
    --white: #eeeef0;
    --accent: #00E5A0;
    --accent-dim: rgba(0, 229, 160, 0.15);
    --accent-glow: rgba(0, 229, 160, 0.25);
    --warm: #F5A623;
    --warm-dim: rgba(245, 166, 35, 0.12);
    --red: #ff4757;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --radius: 8px;
    --radius-lg: 12px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: 700;
    line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.text-accent {
    color: var(--accent);
}

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
    box-shadow: 0 0 20px var(--accent-dim);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: none;
}

.btn-primary:hover::before {
    animation: btnSheen 0.6s ease forwards;
}

@keyframes btnSheen {
    to { transform: translateX(100%); }
}

.btn-primary:hover {
    background: #00ffb2;
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0, 229, 160, 0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

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

.btn-white:hover {
    background: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

/* ========================
   Navigation
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.25s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* ========================
   Hero Section
   ======================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-grid-bg {
    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;
    z-index: 0;
    animation: gridPulse 8s ease-in-out infinite;
}

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

.hero-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, var(--accent-dim), transparent),
        radial-gradient(ellipse 40% 30% at 70% 60%, rgba(0, 229, 160, 0.06), transparent);
    animation: glowShift 6s ease-in-out infinite alternate;
}

@keyframes glowShift {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent), #00c896, var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.metric-suffix {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.hero-metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

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

/* ========================
   Terminal / Hero Visual
   ======================== */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.terminal {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 229, 160, 0.05);
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.15), transparent 40%, transparent 60%, rgba(0, 229, 160, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.terminal:hover::before {
    opacity: 1;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border-hover);
}

.terminal-dots span:first-child { background: var(--red); border-color: transparent; opacity: 0.8; }
.terminal-dots span:nth-child(2) { background: var(--warm); border-color: transparent; opacity: 0.8; }
.terminal-dots span:last-child { background: var(--accent); border-color: transparent; opacity: 0.8; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 2;
}

.terminal-line {
    opacity: 0;
    animation: terminalReveal 0.3s ease forwards;
    animation-delay: calc(0.8s + var(--delay) * 0.4s);
}

@keyframes terminalReveal {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.t-prompt { color: var(--accent); margin-right: 8px; }
.t-cmd { color: var(--white); font-weight: 600; }
.t-flag { color: var(--warm); margin-left: 6px; }
.t-value { color: var(--accent); margin-left: 4px; }
.t-info { color: var(--warm); margin-right: 8px; }
.t-success { color: var(--accent); margin-right: 8px; }
.t-text { color: var(--text-light); }

.terminal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    opacity: 0;
    animation: terminalReveal 0.3s ease forwards;
    animation-delay: calc(0.8s + var(--delay) * 0.4s);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--surface-3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #00c896);
    border-radius: 2px;
    animation: progressFill 1.5s ease 3s forwards;
}

@keyframes progressFill {
    to { width: 89%; }
}

.progress-text {
    font-size: 0.72rem;
    color: var(--text);
    white-space: nowrap;
}

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

@keyframes blink {
    50% { opacity: 0; }
}

/* ========================
   Section Headers
   ======================== */
.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 6px 14px;
    background: var(--accent-dim);
    border-radius: 4px;
    margin-bottom: 20px;
}

.section-title {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ========================
   Services Section
   ======================== */
.services {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
    opacity: 0.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-card {
    background: var(--surface);
    padding: 40px 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover {
    background: var(--surface-2);
    box-shadow: inset 0 0 40px rgba(0, 229, 160, 0.03);
}

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

.service-card:hover .service-number {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(0, 229, 160, 0.4);
}

.service-card:hover .service-icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 229, 160, 0.3));
}

.service-icon {
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text);
    margin-bottom: 24px;
    transition: color 0.25s ease;
    letter-spacing: 0.05em;
}

.service-icon {
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0;
}

/* ========================
   Process Section
   ======================== */
.process {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-line {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: var(--border);
}

.process-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent);
    opacity: 0.4;
    animation: lineGrow 2s ease 1s forwards;
}

@keyframes lineGrow {
    to { width: 100%; }
}

.process-step {
    text-align: center;
    position: relative;
}

.step-marker {
    width: 48px;
    height: 48px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-marker span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease;
}

.process-step:hover .step-marker {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 20px var(--accent-dim), 0 0 40px rgba(0, 229, 160, 0.1);
    transform: scale(1.1);
}

.step-marker {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .step-marker span {
    color: var(--accent);
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* ========================
   Use Cases Section
   ======================== */
.use-cases {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.use-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

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

.cases-grid > :nth-child(4),
.cases-grid > :nth-child(5) {
    grid-column: span 1;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

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

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

.case-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.case-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 16px;
    flex: 1;
}

.case-arrow {
    font-size: 1.2rem;
    color: var(--text);
    transition: all 0.25s ease;
}

.case-card:hover .case-arrow {
    color: var(--accent);
    transform: translateX(4px);
    display: inline-block;
}

/* ========================
   Stats Section
   ======================== */
.stats {
    padding: 100px 0;
    background: var(--surface);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-block {
    background: var(--surface-2);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.stat-block:hover {
    background: var(--surface-3);
}

.stat-block:hover .stat-number {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.stat-block:hover .stat-unit {
    text-shadow: 0 0 12px rgba(0, 229, 160, 0.4);
}

.stat-block .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-unit {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.stat-block .stat-label {
    font-size: 0.85rem;
    color: var(--text);
}

/* ========================
   CTA Section
   ======================== */
.cta {
    padding: 120px 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 80%, var(--accent-dim), transparent);
    pointer-events: none;
    animation: ctaGlow 4s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

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

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    margin-top: 20px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================
   Footer
   ======================== */
.footer {
    padding: 80px 0 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text);
}

.footer-links h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.footer-links a {
    color: var(--text);
    font-size: 0.88rem;
    transition: color 0.25s ease;
}

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

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text);
    margin: 0;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem !important;
    letter-spacing: 0.05em;
    color: var(--text) !important;
    opacity: 0.6;
}

/* ========================
   Scroll Animations
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================
   Page Hero (subpages)
   ======================== */
.page-hero {
    padding: 160px 0 100px;
    background: var(--surface);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    position: relative;
}

.page-hero p {
    color: var(--text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

/* ========================
   Forms (subpages)
   ======================== */
.form-section {
    padding: 80px 0;
    background: var(--black);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--surface-2);
    color: var(--white);
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form-submit {
    width: 100%;
    padding: 16px;
}

/* ========================
   Shared Components
   ======================== */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
}

.info-card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    color: var(--accent);
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
}

/* Features Grid (subpages) */
.features {
    padding: 100px 0;
    background: var(--black);
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: var(--accent-dim);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* Accuracy (subpages) */
.accuracy {
    padding: 100px 0;
    background: var(--surface);
}

.accuracy .section-title,
.accuracy .section-label {
    color: var(--white);
}

.accuracy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

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

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    color: var(--text);
    font-size: 0.88rem;
}

/* Process Steps (subpages) */
.process-section {
    padding: 100px 0;
    background: var(--black);
}

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

.process-grid .process-step {
    text-align: center;
    padding: 24px;
}

.process-number {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 16px;
}

/* Demo Table */
.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.demo-table th,
.demo-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.demo-table th {
    background: var(--surface-2);
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.demo-table td {
    color: var(--text);
}

.demo-table tr:last-child td {
    border-bottom: none;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

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

/* Logo Grid */
.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.logo-placeholder {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* Section Label (compatibility) */
.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .terminal {
        max-width: 480px;
    }

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

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-line {
        display: none;
    }

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

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

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

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

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

    .two-column {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-container .btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-metric-divider {
        width: 40px;
        height: 1px;
    }

    .hero-visual {
        display: none;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

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

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

    .stat-block .stat-number {
        font-size: 2.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .form-container {
        padding: 28px 20px;
    }

    .accuracy-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}

/* ============================================
   Data Sources — Logo Matrix
   ============================================ */
.data-sources {
    padding: 80px 0 60px;
    background: var(--black);
    overflow: hidden;
    position: relative;
}

.data-sources::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.sources-header {
    text-align: center;
    margin-bottom: 48px;
}

.sources-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-top: 16px;
    margin-bottom: 16px;
}

.sources-subtitle {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

/* Ticker wrapper */
.ticker-wrap {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticker {
    overflow: hidden;
    width: 100%;
}

.ticker__inner {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
}

.ticker--slow .ticker__inner { animation-duration: 55s; }
.ticker--medium .ticker__inner { animation-duration: 45s; }
.ticker--fast .ticker__inner { animation-duration: 35s; }
.ticker--reverse .ticker__inner { animation-direction: reverse; }

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker:hover .ticker__inner {
    animation-play-state: paused;
}

.ticker__inner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ticker__inner span::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 229, 160, 0.4);
}

.ticker__inner span:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 4px 24px rgba(0, 229, 160, 0.1);
    transform: translateY(-2px);
}

.ticker__inner span:hover::before {
    width: 70%;
}

/* Random glow effect (JS-driven) */
.ticker__inner span.ticker-glow {
    border-color: rgba(0, 229, 160, 0.5);
    color: var(--accent);
    background: rgba(0, 229, 160, 0.08);
    box-shadow: 0 0 20px rgba(0, 229, 160, 0.15), inset 0 0 12px rgba(0, 229, 160, 0.05);
    transition: all 0.4s ease;
}

/* Subtle scan line across tickers */
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 160, 0.03) 45%, rgba(0, 229, 160, 0.06) 50%, rgba(0, 229, 160, 0.03) 55%, transparent 100%);
    animation: tickerScan 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes tickerScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 768px) {
    .sources-title {
        font-size: 1.6rem;
    }

    .ticker__inner span {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .ticker-wrap {
        gap: 10px;
    }
}

/* ============================================
   Rotating Text (Hero)
   ============================================ */
.rotating-text-wrap {
    display: inline-block;
    position: relative;
    height: 1.6em;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 240px;
}

.rotating-text {
    display: flex;
    flex-direction: column;
    animation: rotateWords 12s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.rotating-text__item {
    display: block;
    height: 1.6em;
    line-height: 1.6em;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-display);
    white-space: nowrap;
}

@keyframes rotateWords {
    0%, 14% { transform: translateY(0); }
    16.66%, 30.66% { transform: translateY(-1.6em); }
    33.33%, 47.33% { transform: translateY(-3.2em); }
    50%, 64% { transform: translateY(-4.8em); }
    66.66%, 80.66% { transform: translateY(-6.4em); }
    83.33%, 97.33% { transform: translateY(-8.0em); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .rotating-text-wrap {
        min-width: 180px;
    }
}

/* ============================================
   Pipeline Process
   ============================================ */
.pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    padding: 0 20px;
}

.pipeline-track {
    position: absolute;
    top: 28px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--surface-3);
    z-index: 0;
}

.pipeline-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), rgba(0, 229, 160, 0.3));
    animation: pipelineFill 2.5s ease 0.5s forwards;
}

@keyframes pipelineFill {
    to { width: 100%; }
}

.pipeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pipeline-icon {
    width: 56px;
    height: 56px;
    background: var(--surface-2);
    border: 2px solid var(--surface-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pipeline-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.pipeline-step:hover .pipeline-icon {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 24px rgba(0, 229, 160, 0.2);
    transform: scale(1.1);
}

.pipeline-step:hover .pipeline-icon::after {
    border-color: rgba(0, 229, 160, 0.2);
}

.pipeline-connector {
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
}

.pipeline-connector span {
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, var(--surface-3), transparent);
}

.pipeline-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
    transition: color 0.3s ease;
}

.pipeline-step:hover h3 {
    color: var(--accent);
}

.pipeline-step p {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    padding: 0 8px;
}

@media (max-width: 1024px) {
    .pipeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .pipeline-track {
        display: none;
    }

    .pipeline-step {
        flex: 0 0 30%;
    }
}

@media (max-width: 768px) {
    .pipeline {
        flex-direction: column;
        align-items: center;
    }

    .pipeline-step {
        flex: none;
        width: 100%;
        max-width: 280px;
    }

    .pipeline-connector span {
        height: 12px;
    }
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison {
    padding: 120px 0;
    background: var(--black);
    position: relative;
}

.comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
    opacity: 0.2;
}

.compare-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.compare-table thead th {
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    text-align: center;
    letter-spacing: 0.01em;
}

.compare-table thead th.compare-highlight {
    color: var(--accent);
    background: rgba(0, 229, 160, 0.06);
    position: relative;
}

.compare-table thead th.compare-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(0, 229, 160, 0.4);
}

.compare-table thead th.compare-metric-col {
    background: var(--surface);
}

.compare-table tbody td {
    padding: 18px 24px;
    font-size: 0.88rem;
    color: var(--text);
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover td {
    background: var(--surface-2);
}

.compare-table tbody td.compare-label {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.compare-table tbody td.compare-highlight {
    background: rgba(0, 229, 160, 0.04);
}

.compare-table tbody tr:hover td.compare-highlight {
    background: rgba(0, 229, 160, 0.08);
}

.compare-best {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .comparison {
        padding: 80px 0;
    }

    .compare-table-wrap {
        margin: 0 -24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
