/* ============================================
   KEYSTONE AI — Precision Intelligence
   Deep emerald + luminous accents
   Fraunces × Manrope × JetBrains Mono
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --dark: #0a0f1a;
    --dark-card: #0f1629;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    color: var(--slate-700);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay for analog warmth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    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='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

::selection { background: rgba(5, 150, 105, 0.15); color: var(--dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    line-height: 1.15;
    font-weight: 600;
    color: var(--dark);
}

h2 { font-size: clamp(1.85rem, 3.5vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 10px; }
p { color: var(--slate-600); }

/* ============ Buttons ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    position: relative;
}

.btn-primary {
    background: var(--emerald-600);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: var(--emerald-700);
    box-shadow: 0 0 24px rgba(5, 150, 105, 0.35), 0 8px 24px rgba(5, 150, 105, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 14px; }

/* ============ Header ============ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header.scrolled .logo,
.header.scrolled .nav-links a { color: var(--dark); }
.header.scrolled .nav-links a:hover { color: var(--emerald-600); }
.header.scrolled .nav-cta { background: var(--emerald-600); color: #fff; border-color: var(--emerald-600); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    letter-spacing: -0.01em;
}

.logo em { font-style: normal; color: var(--emerald-400); }
.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.25s;
    letter-spacing: -0.01em;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
    padding: 10px 24px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-cta:hover {
    background: var(--emerald-600) !important;
    border-color: var(--emerald-600);
    box-shadow: 0 0 16px rgba(5, 150, 105, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.header.scrolled .menu-toggle span { background: var(--dark); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 30%, transparent);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.12), transparent 70%);
    top: -250px;
    right: -150px;
    animation: glowDrift 12s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: glowDrift 15s ease-in-out infinite reverse;
}

@keyframes glowDrift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -10px); }
    66% { transform: translate(-10px, 15px); }
}

.circuit-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.cg-1 { width: 200px; height: 200px; background: rgba(20, 184, 166, 0.04); top: 25%; left: 25%; }
.cg-2 { width: 160px; height: 160px; background: rgba(5, 150, 105, 0.04); top: 60%; right: 30%; }
.cg-3 { width: 120px; height: 120px; background: rgba(6, 182, 212, 0.03); bottom: 20%; left: 50%; }

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { max-width: 540px; }

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 40px;
    line-height: 1.75;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero animation */
.anim-hero {
    animation: heroIn 0.9s var(--ease-out) both;
    animation-delay: var(--d, 0s);
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ Graph Frame (Product UI) ============ */

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.graph-frame {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(160deg, rgba(10, 15, 26, 0.6) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.12);
    box-shadow:
        0 0 80px -20px rgba(16, 185, 129, 0.12),
        0 24px 64px -16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.graph-frame-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.frame-dots {
    display: flex;
    gap: 6px;
}

.frame-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.frame-title {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

.frame-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--emerald-400);
    letter-spacing: 0.04em;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-400);
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

#cy-container {
    width: 100%;
    height: 310px;
}

/* Graph tagline */
.graph-tagline {
    margin-top: 16px;
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    opacity: 0;
    letter-spacing: -0.01em;
}

.graph-insight {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--emerald-300);
    opacity: 0;
    backdrop-filter: blur(8px);
}

.insight-icon { font-size: 1rem; }

.graph-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    opacity: 0;
}

.metric {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.01em;
}

.metric strong {
    color: var(--emerald-400);
    font-weight: 700;
}

/* ============ Sections ============ */

.section {
    padding: 100px 0;
    position: relative;
}

.section-tinted {
    background: var(--slate-50);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 14px;
    padding: 5px 14px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-full);
}

.section-desc {
    font-size: 1.1rem;
    margin-top: 12px;
    line-height: 1.7;
}

/* ============ Problems ============ */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.problem-card {
    padding: 32px 24px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
    position: relative;
}

.problem-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--emerald-300), var(--cyan-400));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: -1;
}

.problem-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.1), 0 0 0 1px rgba(5, 150, 105, 0.1);
    transform: translateY(-4px);
}

.problem-card:hover::before { opacity: 1; }

/* Inner white background covers the gradient border */
.problem-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #fff;
    z-index: -1;
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--emerald-600);
    transition: all 0.35s var(--ease);
}

.problem-card:hover .problem-icon {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.problem-icon.icon-teal { background: #f0fdfa; border-color: #ccfbf1; color: var(--teal-500); }
.problem-icon.icon-emerald { background: #ecfdf5; border-color: #d1fae5; color: #059669; }
.problem-icon.icon-amber { background: #fffbeb; border-color: #fef3c7; color: var(--amber-500); }

.problem-card:hover .problem-icon.icon-teal { background: var(--teal-500); border-color: var(--teal-500); color: #fff; box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25); }
.problem-card:hover .problem-icon.icon-emerald { background: #059669; border-color: #059669; color: #fff; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25); }
.problem-card:hover .problem-icon.icon-amber { background: var(--amber-500); border-color: var(--amber-500); color: #fff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25); }

.problem-card h3 { font-size: 1.1rem; }
.problem-card p { font-size: 0.9375rem; line-height: 1.6; margin-top: 6px; }

/* ============ Services ============ */

.service-flagship {
    position: relative;
    margin-bottom: 20px;
}

.flagship-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.flagship-inner {
    padding: 44px 36px 36px;
    background: #fff;
    border: 1.5px solid var(--emerald-200);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.04);
    transition: all 0.35s var(--ease);
}

.flagship-inner:hover {
    box-shadow: 0 8px 40px rgba(5, 150, 105, 0.08);
    border-color: var(--emerald-300);
}

.service-price {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--emerald-700);
    background: var(--emerald-50);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--emerald-100);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.flagship-header h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.flagship-header p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 680px;
}

.flagship-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.flagship-features ul,
.service-card ul,
.rapid-card ul {
    list-style: none;
}

.flagship-features li,
.service-card li,
.rapid-card li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--slate-600);
}

.flagship-features li::before,
.service-card li::before,
.rapid-card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-400);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.3);
}

.managed-tag {
    margin-top: 24px;
    padding: 14px 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.managed-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.managed-desc {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.services-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    transition: all 0.35s var(--ease);
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.06);
    transform: translateY(-2px);
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.service-card > p { font-size: 0.9375rem; line-height: 1.65; margin-bottom: 20px; }
.service-card ul { margin-bottom: 20px; }

/* ============ Rapid Build ============ */

.rapid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rapid-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    transition: all 0.35s var(--ease);
}

.rapid-card:hover {
    border-color: var(--emerald-200);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.06);
    transform: translateY(-2px);
}

.rapid-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.rapid-card .service-price { margin-bottom: 14px; }
.rapid-card > p { font-size: 0.9375rem; line-height: 1.65; margin-bottom: 20px; }

/* ============ Why Us ============ */

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    gap: 20px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    transition: all 0.35s var(--ease);
}

.why-item:hover {
    border-color: var(--emerald-200);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.06);
    transform: translateY(-2px);
}

.why-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--emerald-600);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: 12px;
    transition: all 0.35s var(--ease);
}

.why-item:hover .why-num {
    background: var(--emerald-600);
    border-color: var(--emerald-600);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { font-size: 0.9375rem; line-height: 1.6; }

/* ============ Mission ============ */

.mission-section {
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08), transparent 70%);
    pointer-events: none;
}

.mission-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.mission-content h2 {
    color: #fff;
    margin-bottom: 28px;
}

.mission-content .section-tag {
    color: var(--emerald-400);
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
}

.mission-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.mission-content p em {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.mission-bold {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.15rem !important;
    margin-top: 8px;
}

.mission-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.eco-scattered, .eco-connected {
    text-align: center;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    min-width: 120px;
}

.eco-scattered {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.eco-scattered span {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    animation: scatter 3s ease-in-out infinite;
}

.eco-scattered span:nth-child(1) { animation-delay: 0s; }
.eco-scattered span:nth-child(2) { animation-delay: 0.3s; width: 12px; height: 12px; }
.eco-scattered span:nth-child(3) { animation-delay: 0.6s; }

@keyframes scatter {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-4px, 6px); }
    50% { transform: translate(6px, -4px); }
    75% { transform: translate(-3px, -5px); }
}

.eco-connected {
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    position: relative;
}

.eco-connected span {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1.5px solid var(--emerald-500);
    margin: 0 4px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.eco-connected span:nth-child(2) { width: 16px; height: 16px; background: rgba(16, 185, 129, 0.2); }

.eco-label {
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
}

.eco-arrow {
    color: var(--emerald-400);
    flex-shrink: 0;
    animation: arrowPulse 2.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* ============ CTA ============ */

.cta-section {
    text-align: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    border-top: none;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    width: 700px;
    height: 400px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(5, 150, 105, 0.1), transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.cta-content > p {
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.cta-content .btn-primary {
    position: relative;
    padding: 18px 44px;
    font-size: 1.05rem;
    border-radius: 16px;
    box-shadow: 0 0 32px rgba(5, 150, 105, 0.3), 0 4px 16px rgba(5, 150, 105, 0.2);
}

.cta-content .btn-primary:hover {
    box-shadow: 0 0 48px rgba(5, 150, 105, 0.4), 0 8px 32px rgba(5, 150, 105, 0.3);
}

.cta-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    position: relative;
}

/* ============ Footer ============ */

.footer {
    padding: 36px 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer .logo {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer .logo em { color: var(--emerald-400); }
.footer .logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.footer-contact a {
    color: var(--emerald-400);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contact a:hover { color: var(--emerald-300); }

.footer-copy p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8125rem;
}

/* ============ Scroll Reveals ============ */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ============ Responsive ============ */

@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; gap: 48px; }
    .hero-content { max-width: 600px; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
    #cy-container { height: 240px; }
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        background: rgba(10, 15, 26, 0.97);
        backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s var(--ease);
    }

    .nav-links.open { opacity: 1; pointer-events: all; }
    .nav-links a { font-size: 1.3rem; color: #fff !important; }
    .nav-cta { display: none; }
    .menu-toggle { display: flex; }

    .hero { padding: 120px 0 72px; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

    .problem-grid { grid-template-columns: 1fr; }
    .flagship-features { grid-template-columns: 1fr; }
    .services-row { grid-template-columns: 1fr; }
    .rapid-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .mission-layout { grid-template-columns: 1fr; gap: 40px; }
    .mission-visual { justify-content: flex-start; }

    .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; }
    #cy-container { height: 160px; }
    .graph-metrics { flex-direction: column; gap: 8px; }
    .flagship-inner { padding: 36px 20px 28px; }
    .flagship-badge { left: 20px; }
    .graph-frame-bar { padding: 8px 12px; }
    .frame-title { display: none; }
}
