/* =========================
   FONTS & RESET
========================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

:root {
    --ink:      #0d1117;
    --ink-2:    #1c2433;
    --ink-3:    #2a3547;
    --muted:    #6b7a99;
    --muted-2:  #94a3b8;
    --line:     rgba(255,255,255,.08);
    --line-dark:rgba(13,17,23,.12);
    --cyan:     #22d3ee;
    --cyan-dim: rgba(34,211,238,.15);
    --amber:    #f59e0b;
    --amber-dim:rgba(245,158,11,.12);
    --white:    #ffffff;
    --card:     rgba(255,255,255,.04);
    --card-hover: rgba(255,255,255,.07);
    --radius:   16px;
    --radius-sm:10px;
    --max:      1160px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--ink);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4, .logo, .step-num {
    font-family: 'Space Grotesk', sans-serif;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

p { color: var(--muted-2); line-height: 1.7; }

em { font-style:normal; color: var(--cyan); }

.grad {
    background: linear-gradient(90deg, var(--cyan), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================
   LAYOUT
========================= */

.container {
    width: 92%;
    max-width: var(--max);
    margin: 0 auto;
}

section { padding: 110px 0; }

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 14px;
}

.section-sub {
    max-width: 560px;
    margin-bottom: 60px;
    font-size: 1.05rem;
}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================
   NAVBAR
========================= */

#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background .3s, padding .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(13,17,23,.92);
    backdrop-filter: blur(24px);
    padding: 14px 0;
    border-color: var(--line);
}

.nav-inner {
    width: 92%;
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(90deg, var(--cyan), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu {
    display: flex;
    gap: 32px;
}

.menu a {
    text-decoration: none;
    color: var(--muted-2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .2s;
}
.menu a:hover { color: var(--white); }

.btn-nav {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    background: var(--cyan);
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,211,238,.35);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 140px 8% 100px;
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
}

/* Ambient glow */
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(34,211,238,.12) 0%, transparent 65%);
    top: -100px; left: -80px;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(129,140,248,.1) 0%, transparent 65%);
    bottom: 0; right: 10%;
    pointer-events: none;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(34,211,238,.3);
    background: rgba(34,211,238,.07);
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-label::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 22px;
    color: var(--white);
}

.hero-sub {
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 36px;
    color: var(--muted-2);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    width: fit-content;
}

.stat { display: flex; flex-direction: column; gap: 3px; }

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.stat-div {
    width: 1px;
    height: 36px;
    background: var(--line);
    flex-shrink: 0;
}

/* CODE CARD */
.hero-visual { position: relative; z-index: 2; }

.code-card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.5);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: var(--ink-3);
    border-bottom: 1px solid var(--line);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28c940; }

.code-title {
    margin-left: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.code-body {
    padding: 24px 20px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    color: #a9b1c6;
    overflow-x: auto;
}

.kw  { color: #c792ea; }
.fn  { color: #82aaff; }
.str { color: #c3e88d; }

.code-badge {
    padding: 12px 20px;
    background: rgba(34,211,238,.08);
    border-top: 1px solid rgba(34,211,238,.2);
    font-size: 0.82rem;
    color: var(--cyan);
    font-weight: 500;
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--cyan);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(34,211,238,.35);
}
.btn-primary.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-ghost {
    display: inline-block;
    padding: 14px 20px;
    color: var(--muted-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color .2s;
}
.btn-ghost:hover { color: var(--white); }

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    border: 1.5px solid rgba(255,255,255,.2);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color .2s, background .2s;
}
.btn-outline:hover {
    border-color: var(--cyan);
    background: var(--cyan-dim);
    color: var(--cyan);
}

/* =========================
   PROBLEM
========================= */

.problem { padding-bottom: 60px; }

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

.problem-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform .3s, border-color .3s;
}
.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239,68,68,.35);
}

.problem-icon {
    font-size: 1.4rem;
    color: #ef4444;
    margin-bottom: 14px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.problem-card p { font-size: 0.9rem; margin-top: 6px; }

.problem-vs {
    text-align: center;
    padding: 40px 0 10px;
}

.vs-badge {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    background: var(--amber-dim);
    border: 1px solid rgba(245,158,11,.3);
    color: var(--amber);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================
   PROCESS
========================= */

.process { background: var(--ink-2); }

.process-steps {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.process-step {
    flex: 1;
    padding: 36px 32px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .3s, transform .3s;
}
.process-step:hover {
    border-color: rgba(34,211,238,.35);
    transform: translateY(-6px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), #818cf8);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

.step-body h3 { font-size: 1.3rem; margin-bottom: 10px; }

.step-list {
    list-style: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-list li {
    font-size: 0.875rem;
    color: var(--muted-2);
    padding-left: 0;
}

.process-connector {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.process-connector::before {
    content: '→';
    font-size: 1.2rem;
    color: var(--muted);
}

/* =========================
   SERVICES
========================= */

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.service-card {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .3s;
}

.service-card.featured {
    border-color: rgba(34,211,238,.35);
    background: rgba(34,211,238,.04);
}

.service-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--cyan-dim);
    border: 1px solid rgba(34,211,238,.3);
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    width: fit-content;
}

.service-icon { font-size: 2rem; }

.service-card h3 { font-size: 1.25rem; }

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--muted-2);
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    flex-wrap: wrap;
}

.price-label { font-size: 0.8rem; color: var(--muted); }

.price-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.price-note { font-size: 0.8rem; color: var(--muted); }

/* =========================
   TESTIMONIALS
========================= */

.testimonials { background: var(--ink-2); }

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

.testi-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .3s, transform .3s;
}
.testi-card:hover {
    border-color: rgba(34,211,238,.25);
    transform: translateY(-5px);
}

.testi-stars { color: var(--amber); font-size: 0.9rem; }

.testi-card > p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #cbd5e1;
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink);
    flex-shrink: 0;
}

.testi-author strong {
    display: block;
    font-size: 0.875rem;
    color: var(--white);
    font-weight: 600;
}

.testi-author span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* =========================
   FAQ
========================= */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item[open],
.faq-item:hover { border-color: rgba(34,211,238,.3); }

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--cyan);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform .2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-body {
    padding: 0 24px 20px;
}

.faq-body p {
    font-size: 0.9rem;
    line-height: 1.75;
}

.faq-body strong { color: var(--white); font-weight: 600; }

/* =========================
   CTA FINAL
========================= */

.cta-final { padding: 100px 0; }

.cta-box {
    text-align: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, rgba(34,211,238,.06), rgba(129,140,248,.06));
    border: 1px solid rgba(34,211,238,.2);
    border-radius: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.cta-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 16px;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 14px;
}

.cta-box > p {
    margin-bottom: 36px;
    font-size: 1rem;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.875rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 5% 80px;
        text-align: center;
    }
    .hero-sub { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-stats { margin: 0 auto; }
    .hero-visual { max-width: 520px; margin: 0 auto; }
    .hero::before, .hero::after { display: none; }

    .problem-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }

    .process-steps { flex-direction: column; gap: 16px; }
    .process-connector { width: auto; padding: 0; transform: rotate(90deg); }
    .process-step { padding: 28px 24px; }
}

@media (max-width: 640px) {
    section { padding: 80px 0; }

    #navbar { padding: 14px 0; }
    .menu { display: none; }
    .btn-nav { font-size: 0.8rem; padding: 9px 16px; }

    .cta-box { padding: 48px 28px; }

    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
    .stat-div { width: 80px; height: 1px; }
}