/* ============================================================
   Startup — SMB pitch landing page
   Dark modern SaaS design system
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #0f1115;
    --bg-soft: #161a22;
    --bg-card: #141822;
    --border: #23262d;
    --fg: #e6e6e6;
    --muted: #9aa0a6;
    --accent: #4f8cff;
    --accent-2: #22d3aa;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1100px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}
.container-narrow { max-width: 760px; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-alt { background: var(--bg-soft); }

.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--accent), #3b6fd9);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font: 600 1rem var(--font);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.35);
    filter: brightness(1.05);
}

.button-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
}
.button-ghost:hover {
    box-shadow: none;
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.08);
}

.button-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; border-radius: 8px; }
.button-block { display: block; text-align: center; width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.9rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.15rem;
}
.logo-mark { width: 22px; height: 22px; color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    font-size: 0.95rem;
}
.nav-links a:not(.button):hover { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.4rem;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(5rem, 12vw, 9rem) clamp(4rem, 9vw, 7rem);
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 320px at 50% -10%, rgba(79, 140, 255, 0.22), transparent 70%),
        radial-gradient(500px 280px at 80% 20%, rgba(34, 211, 170, 0.10), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(700px 400px at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.2rem;
    max-width: 640px;
    margin: 1.5rem auto 2.25rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
    margin-top: 3rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; }
.trust-strip li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 140, 255, 0.45);
    box-shadow: var(--shadow);
}
.card h3 { margin: 0.9rem 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    border-radius: 12px;
    background: rgba(79, 140, 255, 0.12);
    border: 1px solid rgba(79, 140, 255, 0.25);
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    counter-reset: step;
}
.step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.step h3 { margin: 1rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

.step-num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Metrics & quotes ---------- */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}
.metric {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.metric strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.metric span { color: var(--muted); font-size: 0.9rem; }

.quote {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.quote blockquote { font-size: 1.05rem; }
.quote figcaption { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }

.price-card { display: flex; flex-direction: column; position: relative; }
.price-card h3 { margin-top: 0; }
.price {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.75rem 0 0.25rem;
}
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-desc { margin-bottom: 1.25rem; }

.price-card ul { margin-bottom: 1.75rem; flex: 1; }
.price-card li {
    padding: 0.45rem 0 0.45rem 1.6rem;
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-weight: 700;
}

.price-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 2rem;
}

/* ---------- FAQ ---------- */
.faq {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
}
.faq summary {
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
    padding: 0 1.5rem 1.25rem;
    color: var(--muted);
}

/* ---------- CTA banner ---------- */
.cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
    margin-bottom: 3.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.16), rgba(34, 211, 170, 0.10)), var(--bg-card);
    border: 1px solid rgba(79, 140, 255, 0.35);
}
.cta-banner p { color: var(--muted); margin-top: 0.75rem; }

/* ---------- Contact form ---------- */
.contact-form {
    max-width: 760px;
    margin-inline: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-field-full { grid-column: 1 / -1; }

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}
.form-field label span { color: var(--accent); }

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--fg);
    font: inherit;
    transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-field textarea { resize: vertical; }

/* Honeypot: hidden from humans, visible to bots */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.form-status { font-size: 0.95rem; }
.form-status.is-error { color: #ff6b6b; }
.form-status.is-success { color: var(--accent-2); }

.form-success {
    max-width: 760px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    text-align: center;
    background: rgba(34, 211, 170, 0.1);
    border: 1px solid rgba(34, 211, 170, 0.35);
    border-radius: 10px;
    color: var(--accent-2);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 2.5rem;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.92rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(15, 17, 21, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-top: 1px solid var(--border); }
    .nav-links a { display: block; padding: 1rem 1.5rem; }
    .nav-links a:not(.button):hover { background: rgba(79, 140, 255, 0.08); }
    .nav-links a.button { margin: 0.75rem 1.5rem 1rem; padding: 0.8rem 1.1rem; text-align: center; border-radius: 10px; }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; align-items: flex-start; }
}
