/* APIKlone marketing site: shared styles for the home and pricing pages.
   The docs page keeps its own inline styles and uses the same tokens. */

:root {
    --bg-color: #F7F6F3;
    --bg-card: #FFFFFF;
    --bg-soft: #F1F0EC;
    --primary: #4F46E5;
    --secondary: #7C3AED;
    --accent: #0284C7;
    --text-main: #1A202C;
    --text-muted: #64748B;
    --border-color: rgba(30, 41, 59, 0.12);
    --ink: #0F172A;
    --radius: 18px;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 5%; }
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Navbar ─────────────────────────────────────────────── */
nav#navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 3%; position: fixed; width: 100%; top: 0; z-index: 1000;
    backdrop-filter: blur(10px); background: rgba(247, 246, 243, 0.92);
    border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); display: flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; margin-right: 8px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important;
    padding: 0.6rem 1.4rem; border-radius: 50px; font-weight: 600; text-decoration: none; border: none;
    transition: transform 0.2s, box-shadow 0.2s; font-family: inherit; font-size: 1rem; cursor: pointer;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25); }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown::after { content: ''; position: absolute; bottom: -15px; left: 0; width: 100%; height: 15px; }
.nav-dropdown .nav-cta { background: transparent; border: 1px solid var(--border-color); color: var(--text-main) !important; display: flex; align-items: center; gap: 8px; }
.nav-dropdown-content {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; min-width: 170px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-content, .nav-dropdown:focus-within .nav-dropdown-content { display: flex; flex-direction: column; }
.nav-dropdown-content a { color: var(--text-main); padding: 12px 16px; display: block; font-size: 0.95rem; }
.nav-dropdown-content a:hover { background: #F1F5F9; color: var(--primary); }
@media (max-width: 900px) {
    .nav-links { gap: 1rem; }
    .nav-links > a:not(.nav-cta) { display: none; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0.95rem 1.8rem;
    border-radius: 50px; font-weight: 600; font-size: 1.05rem; text-decoration: none; cursor: pointer;
    font-family: inherit; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28); }
.btn-secondary { background: #fff; color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }

/* ── Section scaffolding ────────────────────────────────── */
section { padding: 5.5rem 0; scroll-margin-top: 70px; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); margin-bottom: 0.8rem; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 1rem; }
.section-lead { font-size: 1.2rem; color: var(--text-muted); max-width: 720px; margin: 0; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }
.band { background: #fff; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 9.5rem 0 5rem;
    background:
        radial-gradient(900px 420px at 10% 0%, rgba(79, 70, 229, 0.14), transparent 70%),
        radial-gradient(760px 380px at 92% 12%, rgba(124, 58, 237, 0.13), transparent 70%),
        #fff;
    border-bottom: 1px solid var(--border-color);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -1.6px; line-height: 1.05; margin: 0 0 1.3rem; }
.hero p.lead { font-size: 1.28rem; color: var(--text-muted); margin: 0 0 2rem; max-width: 560px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--text-muted); }
.hero-note i { color: #16A34A; margin-right: 6px; }
.runs-on { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--border-color); font-size: 0.95rem; color: var(--text-muted); }
.runs-on strong { color: var(--text-main); font-weight: 600; }
.runs-on span i { margin-right: 7px; color: var(--primary); }
@media (max-width: 980px) {
    .hero { padding-top: 7.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Terminal-style card used for the product examples */
.term { background: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28); overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.5); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 0.75rem 1rem; background: #1E293B; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #475569; display: block; }
.term-bar span { margin-left: 0.6rem; font-family: 'Fira Code', monospace; font-size: 0.78rem; color: #94A3B8; }
.term pre { margin: 0; padding: 1.2rem 1.3rem 1.4rem; overflow-x: auto; font-family: 'Fira Code', monospace; font-size: 0.86rem; line-height: 1.65; color: #E2E8F0; white-space: pre; }
.term .c-dim { color: #94A3B8; }
.term .c-key { color: #A5B4FC; }
.term .c-ok { color: #4ADE80; }
.term .c-warn { color: #FBBF24; }
.term .c-bad { color: #FB7185; }
.term .c-str { color: #7DD3FC; }
.term hr { border: none; border-top: 1px solid #334155; margin: 0; }

/* ── Cards & grids ──────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.7rem 1.6rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(79, 70, 229, 0.35); }
.card h3 { font-size: 1.22rem; font-weight: 700; margin: 0 0 0.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 1.02rem; }
.icon-chip { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); background: rgba(79, 70, 229, 0.1); margin-bottom: 1.1rem; }
.icon-chip.warm { color: #D97706; background: rgba(217, 119, 6, 0.12); }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 50px; background: rgba(79, 70, 229, 0.1); color: var(--primary); white-space: nowrap; }
.tag.saas { background: rgba(2, 132, 199, 0.12); color: #0369A1; }

/* Problem strip */
.problem-item h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.problem-item p { margin: 0; color: var(--text-muted); }

/* Modes flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1.6rem; }
.flow-box { background: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 1.3rem 1.4rem; text-align: center; }
.flow-box strong { display: block; font-size: 1.15rem; }
.flow-box span { color: var(--text-muted); font-size: 0.97rem; }
.flow-box.core { background: linear-gradient(135deg, var(--primary), var(--secondary)); border: none; color: #fff; box-shadow: 0 16px 30px rgba(79, 70, 229, 0.28); }
.flow-box.core span { color: rgba(255, 255, 255, 0.88); }
.flow-box.optional { border-style: dashed; }
.flow-arrow { color: var(--primary); font-size: 1.3rem; }
.flow-arrow.dashed { color: #94A3B8; }
@media (max-width: 820px) {
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); justify-self: center; }
}
.mode-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #D97706; display: block; margin-bottom: 0.45rem; }
.card.mode-active { border-color: var(--primary); }
.card.mode-active .mode-label { color: var(--primary); }

/* Feature spotlights */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; padding: 2.6rem 0; }
.spotlight + .spotlight { border-top: 1px solid var(--border-color); }
.spotlight.flip .spotlight-copy { order: 2; }
.spotlight h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin: 0 0 0.9rem; }
.spotlight p { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; color: var(--text-main); font-size: 1.03rem; }
.checks li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 0.1rem; color: var(--primary); font-size: 0.9rem; }
@media (max-width: 900px) {
    .spotlight { grid-template-columns: 1fr; gap: 1.6rem; }
    .spotlight.flip .spotlight-copy { order: 0; }
}

/* Cloud tiles */
.cloud-tile { display: block; text-decoration: none; color: var(--text-main); position: relative; overflow: hidden; }
.cloud-tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand, var(--primary)); }
.cloud-tile .icon-chip { color: var(--brand, var(--primary)); background: color-mix(in srgb, var(--brand, var(--primary)) 12%, white); }
.cloud-tile .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; font-weight: 600; color: var(--brand, var(--primary)); font-size: 0.97rem; }

/* Dark band (AI + final call to action) */
.band-dark { background: linear-gradient(135deg, #312E81, #4F46E5 55%, #7C3AED); color: #fff; }
.band-dark .section-title, .band-dark .eyebrow { color: #fff; }
.band-dark .section-lead { color: rgba(255, 255, 255, 0.86); }
.cta-band { text-align: center; }
.cta-band .cta-group { justify-content: center; margin-top: 2rem; }

/* ── Pricing ────────────────────────────────────────────── */
.page-hero { padding: 9rem 0 3.5rem; text-align: center; background:
    radial-gradient(900px 380px at 15% 0%, rgba(79, 70, 229, 0.13), transparent 70%),
    radial-gradient(700px 340px at 88% 10%, rgba(124, 58, 237, 0.12), transparent 70%), #fff;
    border-bottom: 1px solid var(--border-color); }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 800; letter-spacing: -1.3px; line-height: 1.08; margin: 0 0 1rem; }
.page-hero p { font-size: 1.22rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-color); border-radius: 22px; padding: 2.2rem 1.9rem 1.9rem; transition: transform 0.2s, box-shadow 0.2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.featured { border: 2px solid var(--primary); box-shadow: 0 22px 44px rgba(79, 70, 229, 0.16); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 50px; white-space: nowrap; }
.plan-name { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.25rem; }
.plan-tagline { color: var(--text-muted); margin: 0 0 1.2rem; }
.price-sub { font-size: 0.95rem; font-weight: 600; color: var(--primary); background: rgba(79, 70, 229, 0.08); border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0 0 1.4rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; padding: 0.42rem 0; color: var(--text-muted); font-size: 1.02rem; }
.plan-features li i { color: var(--primary); margin-top: 0.3rem; font-size: 0.85rem; width: 16px; text-align: center; }
.plan-features li strong { color: var(--text-main); }
.plan-features li.highlight { color: var(--primary); font-weight: 500; }
.plan-cta { width: 100%; }
.plan-single { display: grid; grid-template-columns: 0.9fr 1.4fr; background: #fff; border: 2px solid var(--primary); border-radius: 24px; overflow: hidden; box-shadow: 0 22px 44px rgba(79, 70, 229, 0.14); }
.plan-single-main { padding: 2.6rem 2.3rem; background: #F8FAFF; border-right: 1px solid var(--border-color); }
.plan-single-main .plan-name { font-size: 1.9rem; }
.plan-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.plan-foot { margin: 1rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.plan-single-features { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.6rem 2.3rem; }
.plan-single-features h3 { font-size: 0.8rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.6rem; }
.plan-single-features .plan-features { margin: 0; }
@media (max-width: 980px) {
    .plan-single { grid-template-columns: 1fr; }
    .plan-single-main { border-right: none; border-bottom: 1px solid var(--border-color); }
}
@media (max-width: 640px) { .plan-single-features { grid-template-columns: 1fr; gap: 1.2rem; } .plan-single-main, .plan-single-features { padding: 2rem 1.5rem; } }
.note-box { max-width: 760px; margin: 3rem auto 0; background: rgba(79, 70, 229, 0.06); border: 1px solid rgba(79, 70, 229, 0.22); border-radius: 16px; padding: 1.7rem 2rem; }
.note-box h3 { margin: 0 0 0.6rem; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.note-box h3 i { color: var(--primary); }
.note-box p { margin: 0; color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }
.fine-print { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin: 2rem 0 0; }

/* ── Contact ────────────────────────────────────────────── */
.contact-panel { display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border: 1px solid var(--border-color); border-radius: 22px; overflow: hidden; box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); }
.contact-info { padding: 3rem 2.6rem; background: #F8FAFF; border-right: 1px solid var(--border-color); }
.contact-info h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 0.8rem; }
.contact-info > p { color: var(--text-muted); font-size: 1.08rem; margin: 0 0 2rem; }
.contact-point { display: flex; gap: 14px; margin-bottom: 1.4rem; }
.contact-point .icon-chip { margin: 0; flex-shrink: 0; }
.contact-point h4 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.contact-point p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.contact-form { padding: 3rem 2.6rem; margin: 0; }
.contact-form h3 { margin: 0 0 1.4rem; font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: #F8FAFC; border: 1px solid var(--border-color); color: var(--text-main);
    padding: 0.85rem 1rem; border-radius: 10px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.form-group textarea { resize: vertical; }
.contact-status-panel { display: none; margin-top: 1.2rem; border-radius: 12px; padding: 1.1rem 1.3rem; border: 1px solid transparent; text-align: left; }
.contact-status-panel.success { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.3); color: #15803D; }
.contact-status-panel.error { background: rgba(225, 29, 72, 0.08); border-color: rgba(225, 29, 72, 0.3); color: #BE123C; }
.contact-status-panel .status-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 0.3rem; }
.contact-status-panel .status-body { font-size: 0.95rem; padding-left: 28px; }
@media (max-width: 900px) {
    .contact-panel { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--border-color); }
    .contact-info, .contact-form { padding: 2.2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────── */
footer.site-footer { background: #fff; border-top: 1px solid var(--border-color); padding: 3.2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: 0.8rem; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.9rem; }
.footer-grid a { display: block; color: var(--text-main); text-decoration: none; margin-bottom: 0.5rem; font-size: 0.98rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-about p { color: var(--text-muted); margin: 0.9rem 0 0; max-width: 320px; font-size: 0.98rem; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border-color); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; color: var(--text-muted); font-size: 0.92rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Scroll reveal: only applied once JavaScript has marked the page */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
