/* ========================================
   SamurAI Shield — Commercial Website
   Dark cybersecurity theme with cyan accent
   ======================================== */

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

:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #0f1117;
    --bg-card: #141620;
    --bg-card-hover: #1a1d2e;
    --bg-elevated: #1e2235;
    --border: #1e2235;
    --border-light: #2a2f45;
    --text-primary: #e8eaf0;
    --text-secondary: #8b90a5;
    --text-muted: #5a5f75;
    --cyan: #00d4ff;
    --cyan-dim: #00a8cc;
    --cyan-glow: rgba(0, 212, 255, 0.15);
    --cyan-glow-strong: rgba(0, 212, 255, 0.3);
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;
    --gradient: linear-gradient(135deg, #00d4ff, #3b82f6, #8b5cf6);
    --gradient-text: linear-gradient(135deg, #00d4ff 0%, #3b82f6 50%, #8b5cf6 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-cyan: 0 0 30px rgba(0, 212, 255, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-banner {
    height: 69px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .logo-banner {
    height: 59px;
}

.logo-banner:hover {
    filter: brightness(1.15);
}

.footer-banner {
    height: 168px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--cyan);
    color: #0a0b10;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    background: #fff;
    color: #0a0b10;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

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

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-glow);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 6s infinite;
}

@keyframes particle-float {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 0.6; }
    90% { opacity: 0; }
    100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--cyan-glow);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--cyan-glow);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

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

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

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--cyan-glow);
    color: var(--cyan);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Platform Architecture
   ======================================== */
.platform-section {
    background: var(--bg-secondary);
}

.architecture-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.arch-card:hover {
    border-color: var(--border-light);
}

.arch-primary {
    border-color: rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, var(--bg-card) 100%);
    text-align: center;
}

.arch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--cyan-glow);
    color: var(--cyan);
    margin-bottom: 16px;
}

.arch-label {
    display: inline-block;
    padding: 2px 10px;
    background: var(--cyan-glow);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.arch-primary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.arch-primary p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.arch-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.arch-tags span {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.arch-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.arch-service {
    padding: 24px;
}

.arch-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--cyan-glow);
    color: var(--cyan);
    margin-bottom: 14px;
}

.arch-service h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.arch-service p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   AI Engine
   ======================================== */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ai-feature {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

.ai-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-dot-green { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.ai-dot-blue { background: var(--blue); box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.ai-dot-purple { background: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.ai-dot-cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 212, 255, 0.4); }
.ai-dot-orange { background: var(--orange); box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }

.ai-feature h4 {
    font-size: 1rem;
    font-weight: 600;
}

.ai-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* AI Card Demo */
.ai-visual {
    position: sticky;
    top: 100px;
}

.ai-card-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ai-card-body {
    padding: 20px;
}

.ai-card-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ai-tag-critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ai-confidence {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.ai-confidence strong {
    color: var(--green);
}

.ai-card-target, .ai-card-reasoning, .ai-card-action {
    margin-bottom: 16px;
}

.ai-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.ai-card-target span:last-child {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.ai-factors {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-factor {
    display: grid;
    grid-template-columns: 120px 1fr 48px;
    align-items: center;
    gap: 12px;
}

.ai-factor-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ai-factor-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.ai-factor-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 1.5s ease;
}

.ai-factor-val {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.ai-card-action p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-card-action code {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--cyan);
}

/* ========================================
   Pipeline
   ======================================== */
.pipeline-section {
    background: var(--bg-secondary);
}

.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 20px 0;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.pipeline-step:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.pipeline-step.active-step {
    border-color: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.pipeline-step.completed-step {
    border-color: var(--green);
}

.pipeline-step.completed-step .pipeline-number {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.pipeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cyan-glow);
    color: var(--cyan);
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pipeline-content h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.pipeline-content p {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pipeline-connector {
    width: 24px;
    height: 2px;
    background: var(--border-light);
    flex-shrink: 0;
}

/* ========================================
   Integrations
   ======================================== */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

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

.integration-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: var(--cyan-glow);
    color: var(--cyan);
    margin: 0 auto 20px;
}

.integration-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.integration-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.integration-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.integration-features li {
    padding: 3px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   Security
   ======================================== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.security-pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.security-pillar:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--cyan-glow);
    color: var(--cyan);
    margin-bottom: 16px;
}

.security-pillar h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.security-pillar p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Tech Stack
   ======================================== */
.tech-section {
    background: var(--bg-secondary);
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    min-width: 140px;
}

.tech-item:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.tech-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--cyan-glow);
    color: var(--cyan);
}

.tech-item span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   CTA / Contact
   ======================================== */
.cta-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: var(--text-muted);
}

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

.cta-form select {
    appearance: none;
    cursor: pointer;
    color: var(--text-muted);
}

.cta-form select:valid {
    color: var(--text-primary);
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h5 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .arch-services {
        grid-template-columns: repeat(2, 1fr);
    }
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ai-visual {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: flex;
    }
    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }
    .arch-services {
        grid-template-columns: 1fr;
    }
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .pipeline {
        flex-direction: column;
        align-items: stretch;
    }
    .pipeline-connector {
        width: 2px;
        height: 16px;
        margin: 0 auto;
    }
    .pipeline-content p {
        white-space: normal;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .hero-title {
        font-size: 2rem;
    }
    .btn-sm {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 64px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: 1;
    }
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--cyan-glow-strong);
    color: var(--text-primary);
}

/* ========================================
   CAPTCHA & Form Messages
   ======================================== */
.captcha-group {
    margin-top: 4px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.captcha-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--cyan-glow);
    color: var(--cyan);
    flex-shrink: 0;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.captcha-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 140px;
}

.captcha-challenge input {
    width: 120px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: var(--transition);
    -moz-appearance: textfield;
}

.captcha-challenge input::-webkit-outer-spin-button,
.captcha-challenge input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-challenge input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
}

.captcha-challenge input.captcha-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.form-message {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
}

/* Spinner for submit button */
.spin {
    animation: spin 1s linear infinite;
}

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

@media (max-width: 480px) {
    .captcha-challenge {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .captcha-challenge input {
        width: 100%;
    }
}
