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

:root {
    --white: #ffffff;
    --bg: #f8f9fa;
    --bg-alt: #f1f3f5;
    --surface: #ffffff;
    --border: #e9ecef;
    --border-dark: #dee2e6;
    --text: #212529;
    --text-2: #495057;
    --text-3: #868e96;
    --primary: #1a1a2e;
    --accent: #4263eb;
    --accent-light: #5c7cfa;
    --accent-bg: #edf2ff;
    --accent-border: #bac8ff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    overflow-wrap: break-word;
    min-width: 0;
}

body.menu-open { overflow: hidden; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }

/* ========== BUTTONS ========== */
.btn-main {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px;
    background: var(--primary); color: #fff;
    font: 600 0.9rem var(--font);
    border-radius: 8px; border: none; cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}
.btn-main:hover { background: #2d2d4a; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px;
    background: var(--white); color: var(--text);
    font: 500 0.9rem var(--font);
    border-radius: 8px; border: 1px solid var(--border-dark); cursor: pointer;
    transition: all 0.15s ease;
}
.btn-ghost:hover { background: var(--bg); border-color: #adb5bd; }

.btn-block { width: 100%; text-align: center; }

/* ========== NAV ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 8px rgba(0,0,0,0.03); }

.nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { width: 34px; height: 34px; }
.nav-logo span { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 8px 16px; font-size: 0.88rem; color: var(--text-2);
    border-radius: 6px; transition: all 0.15s; font-weight: 450;
}
.nav-links a:hover { color: var(--text); background: var(--bg); }

.nav-cta {
    background: var(--primary) !important; color: #fff !important;
    font-weight: 600 !important; margin-left: 12px; border-radius: 8px;
    box-shadow: var(--shadow-xs);
}
.nav-cta:hover { background: #2d2d4a !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); transition: 0.2s; border-radius: 2px; }
.nav-backdrop { display: none; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 160px 0 0;
    background: linear-gradient(180deg, #f8f9ff 0%, var(--white) 100%);
    overflow: hidden;
}


.hero-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 400px;
    background: radial-gradient(ellipse, rgba(66,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; text-align: center; max-width: 780px; }

.hero-badge {
    display: inline-flex;
    padding: 8px 20px;
    background: var(--accent-bg); border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: 0.82rem; color: var(--accent); font-weight: 600;
    margin-bottom: 32px; letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800; line-height: 1.12;
    letter-spacing: -0.035em; color: var(--text);
    margin-bottom: 24px;
}

.hero-title-accent { color: var(--accent); }

.hero-desc {
    max-width: 560px; margin: 0 auto 40px;
    font-size: 1.1rem; color: var(--text-2);
    line-height: 1.7;
}

.hero-buttons {
    display: flex; gap: 14px; justify-content: center;
    margin-bottom: 0;
}

.hero-bar {
    margin-top: 80px;
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 36px 0;
}

.hero-bar-inner {
    display: flex; justify-content: center; gap: 72px;
}

.hero-stat { text-align: center; }
.hero-stat strong {
    display: block;
    font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
    color: var(--text); letter-spacing: -0.01em; margin-bottom: 2px;
}
.hero-stat span { font-size: 0.8rem; color: var(--text-3); font-weight: 450; }

/* ========== SECTIONS ========== */
.section-header { margin-bottom: 52px; text-align: center; }
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 750; letter-spacing: -0.03em; margin-bottom: 10px; color: var(--text);
}
.section-header p { color: var(--text-2); font-size: 1rem; max-width: 480px; margin: 0 auto; }

.label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 650; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px;
}

/* ========== SERVICES ========== */
.services { padding: 100px 0; background: var(--bg); }

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 30px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-dark); }

.card-highlight {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
.card-highlight:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.card-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--accent-bg); border-radius: 10px;
    font-family: var(--mono); font-size: 0.82rem; font-weight: 700;
    color: var(--accent); margin-bottom: 20px;
}

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card > p { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; margin-bottom: 22px; }

.card ul { display: flex; flex-direction: column; gap: 9px; }
.card li {
    font-size: 0.85rem; color: var(--text-3); padding-left: 18px; position: relative;
}
.card li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.5;
}

/* ========== ABOUT ========== */
.about { padding: 100px 0; background: var(--white); }

.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-text h2 {
    font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 750;
    letter-spacing: -0.03em; margin-bottom: 20px;
}
.about-text p { font-size: 0.93rem; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }

.about-pillars { display: grid; gap: 10px; margin-top: 28px; }

.pillar {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 20px; background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px;
}
.pillar strong { font-size: 0.88rem; white-space: nowrap; color: var(--text); }
.pillar span { font-size: 0.85rem; color: var(--text-3); }

/* Terminal */
.terminal {
    background: var(--primary); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.terminal-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-title {
    margin-left: auto; font-family: var(--mono);
    font-size: 0.72rem; color: rgba(255,255,255,0.3);
}
.terminal pre {
    padding: 24px; font-size: 0.82rem; line-height: 1.85;
    font-family: var(--mono); overflow-x: auto; color: #ccc;
}
.c-kw { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-prop { color: #f78c6c; }
.c-param { color: #ffcb6b; }

/* ========== FOUNDER ========== */
.founder { padding: 100px 0; background: var(--bg); }

.founder-card {
    display: flex; gap: 32px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px;
    max-width: 720px; margin: 0 auto;
    box-shadow: var(--shadow-xs);
}

.founder-avatar {
    width: 110px; height: 110px; flex-shrink: 0;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--border);
}
.founder-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

.founder-body h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--accent);
    margin-bottom: 12px; letter-spacing: -0.01em;
}
.founder-body p {
    font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 10px;
}

.founder-meta {
    display: flex; gap: 28px; margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--border);
}
.founder-meta div { display: flex; flex-direction: column; gap: 2px; }
.founder-meta strong { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--text); }
.founder-meta span { font-size: 0.75rem; color: var(--text-3); }

.btn-linkedin {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 18px; padding: 9px 18px;
    background: #0a66c2; color: #fff;
    border-radius: 6px; font-size: 0.84rem; font-weight: 600;
    transition: all 0.15s;
}
.btn-linkedin:hover { background: #004182; }

/* ========== PRICING ========== */
.pricing { padding: 100px 0; background: var(--white); }

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

.price-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px;
    position: relative; box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.price-card-pop {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
.price-card-pop:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.price-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff;
    padding: 4px 16px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}

.price-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.price-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }

.price-amount {
    font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em;
    font-family: var(--mono); color: var(--text); margin-bottom: 4px;
}
.price-r { font-size: 1.2rem; font-weight: 600; color: var(--text-2); }
.price-unit { font-size: 0.95rem; font-weight: 450; color: var(--text-3); }
.price-sub { font-size: 0.82rem; color: var(--text-3); margin-bottom: 26px; }

.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.price-card li {
    font-size: 0.88rem; color: var(--text-2); padding-left: 22px; position: relative;
}
.price-card li::before {
    content: ''; position: absolute; left: 0; top: 6px;
    width: 11px; height: 5px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ========== PROCESS ========== */
.process { padding: 100px 0; background: var(--bg); }

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

.step {
    text-align: center; padding: 36px 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.step-n {
    width: 44px; height: 44px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    border-radius: 50%; font-family: var(--mono);
    font-size: 0.88rem; font-weight: 700;
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--text-3); line-height: 1.55; }

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
    background: var(--primary);
    color: #fff;
}

.contact-box { text-align: center; max-width: 520px; margin: 0 auto; }

.contact-box h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 750; letter-spacing: -0.03em; margin-bottom: 14px;
}
.contact-box p { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; line-height: 1.6; }

.contact-email-link {
    display: inline-block;
    font-size: 1.3rem; font-weight: 700; color: #fff;
    padding: 14px 36px;
    background: var(--accent); border-radius: 10px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 20px rgba(66,99,235,0.3);
}
.contact-email-link:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ========== FOOTER ========== */
.footer { border-top: 1px solid var(--border); padding-top: 52px; background: var(--white); }

.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 40px;
}

.footer-cols { display: flex; gap: 72px; }
.footer-cols h4 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 14px;
}
.footer-cols a {
    display: block; font-size: 0.88rem; color: var(--text-2);
    margin-bottom: 8px; transition: color 0.15s;
}
.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0; font-size: 0.78rem; color: var(--text-3);
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .cards, .price-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .about-layout { grid-template-columns: 1fr; gap: 44px; }
    .footer-inner { flex-direction: column; gap: 32px; }
}

@media (max-width: 768px) {
    /* Tighter padding on small screens */
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }

    /* Mobile menu backdrop */
    .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 99;
        background: rgba(0,0,0,0.3); opacity: 0; pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .nav-backdrop.active { opacity: 1; pointer-events: auto; }

    .nav-links {
        position: fixed; top: 0; right: 0; width: 280px; height: 100vh; height: 100dvh;
        background: var(--white); flex-direction: column;
        padding: 88px 24px 24px; gap: 4px;
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,0.06);
        z-index: 100; overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-toggle { display: flex; z-index: 101; }

    /* Nav CTA in mobile drawer */
    .nav-links .nav-cta {
        margin-left: 0; margin-top: 12px;
        text-align: center; width: 100%;
        padding: 12px 16px;
    }

    /* Hero */
    .hero { padding-top: 110px; }
    .hero .container { max-width: 100%; }
    .hero-glow { display: none; }
    .hero-badge {
        display: inline-block;
        font-size: 0.7rem; padding: 6px 14px;
        max-width: 100%; text-align: center;
        white-space: normal; line-height: 1.5;
        border-radius: 16px;
    }
    .hero-title { font-size: 1.75rem; margin-bottom: 18px; }
    .hero-title br { display: none; }
    .hero-desc { font-size: 0.9rem; max-width: 100%; margin-bottom: 32px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn-main,
    .hero-buttons .btn-ghost { width: 100%; }

    /* Hero stats */
    .hero-bar { margin-top: 48px; padding: 24px 0; }
    .hero-bar-inner {
        gap: 0; justify-content: space-between;
    }
    .hero-stat { min-width: 0; flex: 1; }
    .hero-stat strong { font-size: 0.78rem; word-break: break-word; }
    .hero-stat span { font-size: 0.66rem; }

    /* Cards & grids */
    .cards, .price-grid, .steps { grid-template-columns: 1fr; }
    .card, .price-card, .step { padding: 28px 22px; }

    /* About */
    .about-layout { gap: 36px; }
    .about-code { overflow: hidden; }
    .terminal { max-width: 100%; }
    .terminal pre { padding: 18px; font-size: 0.72rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Founder */
    .founder-card {
        flex-direction: column; align-items: center; text-align: center;
        padding: 28px 22px; max-width: 100%;
    }
    .founder-meta { justify-content: center; flex-wrap: wrap; gap: 20px; }
    .founder-avatar { width: 96px; height: 96px; }

    /* Pricing */
    .price-amount { font-size: 2rem; word-break: break-word; }

    /* Contact */
    .contact-email-link { font-size: 0.95rem; padding: 12px 24px; word-break: break-all; max-width: 100%; }

    /* Footer */
    .footer-cols { flex-direction: column; gap: 28px; }
    .footer-bottom { text-align: center; }

    /* Section spacing */
    section, .services, .about, .founder, .pricing, .process, .contact {
        padding: 64px 0;
    }

}
