/* ============================================================
   FIRECRAWLAPI.COM
   COMPLETE MASTER STYLESHEET
   File: /assets/css/style.css
   ============================================================ */


/* ============================================================
   01. ROOT / DESIGN SYSTEM
   ============================================================ */

:root {
    --primary: #ff5a36;
    --primary-dark: #e84927;
    --primary-soft: #fff3ef;
    --primary-border: #ffd8ce;

    --dark: #101827;
    --dark-2: #151b27;
    --dark-3: #202735;

    --text: #4f5968;
    --text-light: #7e8796;
    --heading: #0e1728;

    --white: #ffffff;
    --bg: #ffffff;
    --bg-soft: #f7f9fc;
    --bg-muted: #f3f5f8;

    --border: #e4e8ee;
    --border-dark: #2b3340;

    --green: #22b77a;
    --green-soft: rgba(34, 183, 122, 0.12);

    --purple: #9c7cff;

    --container: 1180px;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 8px 25px rgba(16, 24, 39, 0.05);
    --shadow-md: 0 18px 50px rgba(16, 24, 39, 0.08);
    --shadow-lg: 0 30px 80px rgba(16, 24, 39, 0.14);

    --font-body: "Inter", Arial, sans-serif;
    --font-heading: "Manrope", "Inter", Arial, sans-serif;

    --transition: 0.22s ease;
}


/* ============================================================
   02. RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;

    overflow-x: hidden;

    color: var(--text);
    background: var(--bg);

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--heading);

    font-family: var(--font-heading);
    line-height: 1.15;
}

p {
    margin-top: 0;
}

::selection {
    color: #ffffff;
    background: var(--primary);
}


/* ============================================================
   03. GLOBAL CONTAINER
   ============================================================ */

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.inner {
    width: 100%;
}

.muted {
    color: var(--text-light);
}


/* ============================================================
   04. ACCESSIBILITY
   ============================================================ */

.skip-link {
    position: fixed;
    top: -100px;
    left: 18px;

    z-index: 999999;

    padding: 11px 15px;

    border-radius: 8px;

    color: #ffffff;
    background: var(--dark);
}

.skip-link:focus {
    top: 16px;
}


/* ============================================================
   05. HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;

    z-index: 9999;

    width: 100%;

    border-bottom: 1px solid rgba(228, 232, 238, 0.9);

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-container,
.nav-wrap {
    width: min(1220px, calc(100% - 40px));
    min-height: 76px;

    margin-inline: auto;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* ============================================================
   06. LOGO / BRAND
   ============================================================ */

.site-logo,
.brand {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--heading);
}

.logo-icon,
.brand-mark {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff5a36,
            #ff8058
        );

    box-shadow:
        0 8px 22px rgba(255, 90, 54, 0.24);

    font-size: 18px;
    font-weight: 800;
}

.logo-text,
.brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.logo-text span,
.gradient-text {
    color: var(--primary);
}


/* ============================================================
   07. MAIN NAVIGATION
   ============================================================ */

.main-navigation,
.primary-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;
}

.main-navigation a,
.primary-nav a {
    position: relative;

    min-height: 42px;

    display: inline-flex;
    align-items: center;

    padding: 0 13px;

    border-radius: 9px;

    color: #5d6674;

    font-size: 14px;
    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition);
}

.main-navigation a:hover,
.primary-nav a:hover {
    color: var(--heading);
    background: #f5f7fa;
}

.main-navigation a.active,
.primary-nav a.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.main-navigation a.active::after,
.primary-nav a.active::after {
    content: "";

    position: absolute;

    left: 13px;
    right: 13px;
    bottom: -18px;

    height: 2px;

    border-radius: 20px;

    background: var(--primary);
}


/* ============================================================
   08. HEADER CTA
   ============================================================ */

.header-cta,
.nav-cta {
    flex-shrink: 0;

    min-height: 44px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    padding: 0 18px;

    border-radius: 10px;

    color: #ffffff !important;
    background: var(--dark);

    box-shadow:
        0 8px 20px rgba(16, 24, 39, 0.12);

    font-size: 13px;
    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition);
}

.header-cta:hover,
.nav-cta:hover {
    color: #ffffff;
    background: var(--primary);

    transform: translateY(-1px);
}


/* ============================================================
   09. MOBILE MENU BUTTON
   ============================================================ */

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    margin-left: auto;
    padding: 9px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    border-radius: 10px;

    background: var(--dark);

    transition: var(--transition);
}


/* ============================================================
   10. INDEPENDENT NOTICE
   ============================================================ */

.independent-notice,
.notice {
    width: 100%;

    border-bottom: 1px solid #ffe0d7;

    color: #755e54;
    background: #fff9f6;
}

.independent-notice .container,
.notice .container,
.notice {
    min-height: 35px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.notice-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 4px rgba(255, 90, 54, 0.1);
}


/* ============================================================
   11. GLOBAL BUTTONS
   ============================================================ */

.btn {
    min-height: 50px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    padding: 0 21px;

    border: 0;
    border-radius: 11px;

    color: #ffffff;
    background: var(--primary);

    box-shadow:
        0 10px 26px rgba(255, 90, 54, 0.2);

    font-size: 14px;
    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.btn:hover {
    color: #ffffff;
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(255, 90, 54, 0.25);
}

.btn.secondary,
.btn-secondary {
    color: var(--heading);
    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow: none;
}

.btn.secondary:hover,
.btn-secondary:hover {
    color: var(--heading);
    background: #f8f9fb;

    border-color: #d5dae2;
}

.actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;
}


/* ============================================================
   12. HOMEPAGE HERO
   Supports .hero and .fc-hero
   ============================================================ */

.hero,
.fc-hero {
    position: relative;

    overflow: hidden;

    padding: 90px 0 82px;

    background:
        radial-gradient(
            circle at 83% 16%,
            rgba(255, 90, 54, 0.12),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f9fafc
        );
}

.hero::before,
.fc-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.28;

    pointer-events: none;

    background-image:
        linear-gradient(
            #e9ecf1 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            #e9ecf1 1px,
            transparent 1px
        );

    background-size: 46px 46px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.5),
            transparent
        );
}

.hero-grid,
.fc-hero-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    gap: 66px;

    align-items: center;
}

.hero h1,
.fc-hero h1 {
    max-width: 720px;

    margin: 0;

    color: var(--heading);

    font-size: clamp(46px, 5vw, 74px);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.hero p,
.fc-hero-text {
    max-width: 650px;

    margin: 24px 0 0;

    color: #566071;

    font-size: 18px;
    line-height: 1.75;
}


/* ============================================================
   13. EYEBROW / SECTION LABEL
   ============================================================ */

.eyebrow,
.fc-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 20px;
    padding: 9px 12px;

    border: 1px solid var(--primary-border);
    border-radius: 999px;

    color: var(--primary-dark);
    background: var(--primary-soft);

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fc-eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 4px rgba(255, 90, 54, 0.1);
}

.section-label {
    display: inline-flex;

    color: var(--primary);

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* ============================================================
   14. HERO TRUST ITEMS
   ============================================================ */

.trustline,
.fc-trust-row {
    display: flex;
    flex-wrap: wrap;

    gap: 27px;

    margin-top: 38px;
    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.fc-trust-item {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.fc-trust-item strong {
    color: var(--heading);

    font-size: 13px;
}

.fc-trust-item span {
    color: var(--text-light);

    font-size: 11px;
}


/* ============================================================
   15. CODE CARD / TERMINAL
   ============================================================ */

.code-card,
.fc-code-window {
    overflow: hidden;

    border: 1px solid #282f3a;
    border-radius: 22px;

    color: #d8deea;
    background: #10151f;

    box-shadow: var(--shadow-lg);
}

.fc-code-window {
    transform: rotate(1deg);
}

.code-head,
.fc-code-topbar {
    min-height: 54px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 18px;

    border-bottom: 1px solid #282f3a;

    color: #919baa;
}

.dots,
.fc-window-dots {
    display: flex;

    gap: 6px;
}

.dots span,
.fc-window-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #4d5562;
}

.dots span:first-child,
.fc-window-dots span:first-child {
    background: #ff6c63;
}

.dots span:nth-child(2),
.fc-window-dots span:nth-child(2) {
    background: #efc04d;
}

.dots span:nth-child(3),
.fc-window-dots span:nth-child(3) {
    background: #49c989;
}

.code-card pre,
.fc-code-window pre {
    margin: 0;
    padding: 28px;

    overflow: auto;

    color: #d7dce5;

    font-family:
        "SFMono-Regular",
        Consolas,
        Monaco,
        monospace;

    font-size: 13px;
    line-height: 1.75;
}

.code-card code,
.fc-code-window code {
    font-family: inherit;
}

.code-purple {
    color: #c792ea;
}

.code-green {
    color: #a8e879;
}

.fc-code-result {
    min-height: 47px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 18px;

    border-top: 1px solid #282f3a;

    color: #8e98a8;
    background: #0c1119;

    font-size: 11px;
}


/* ============================================================
   16. GLOBAL SECTIONS
   ============================================================ */

.section,
.fc-section {
    padding: 90px 0;
}

.section.alt {
    background: var(--bg-soft);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head,
.section-heading {
    max-width: 740px;

    margin: 0 auto 48px;

    text-align: center;
}

.section-head h2,
.section-heading h2 {
    margin: 13px 0 13px;

    color: var(--heading);

    font-size: clamp(33px, 4vw, 51px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.section-head p,
.section-heading p {
    margin: 0;

    color: #626c7c;

    font-size: 16px;
    line-height: 1.75;
}


/* ============================================================
   17. GLOBAL CARDS
   ============================================================ */

.cards,
.workflow-grid,
.guides-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.card,
.workflow-card,
.guide-card {
    position: relative;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 19px;

    background: #ffffff;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.card:hover,
.workflow-card:hover,
.guide-card:hover {
    border-color: #ffc9ba;

    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

.card h3,
.workflow-card h3,
.guide-card h3 {
    margin: 0 0 10px;

    color: var(--heading);

    font-size: 20px;
    font-weight: 800;
}

.card p,
.workflow-card p,
.guide-card p {
    margin: 0;

    color: #606a79;

    font-size: 14px;
    line-height: 1.75;
}

.icon,
.workflow-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 28px;

    border-radius: 13px;

    color: var(--primary);
    background: var(--primary-soft);

    font-weight: 800;
}


/* ============================================================
   18. STEPS
   ============================================================ */

.steps {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.step {
    position: relative;

    padding: 29px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #ffffff;
}

.step::before {
    content: attr(data-step);

    display: inline-flex;

    margin-bottom: 25px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}


/* ============================================================
   19. SPLIT SECTION / COMPARISON
   ============================================================ */

.split,
.comparison-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    gap: 65px;

    align-items: center;
}

.compare,
.comparison-table {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #ffffff;

    box-shadow: var(--shadow-sm);
}

.compare-row {
    display: grid;

    grid-template-columns: 1.6fr 0.7fr 0.7fr;

    border-top: 1px solid var(--border);
}

.compare-row:first-child {
    border-top: 0;
}

.compare-row > div {
    padding: 17px 18px;
}

.compare-row > div:not(:first-child) {
    text-align: center;

    border-left: 1px solid var(--border);
}

.compare-head {
    color: var(--heading);
    background: #f8f9fb;

    font-size: 12px;
    font-weight: 800;
}


/* ============================================================
   20. PLAYGROUND SECTION
   ============================================================ */

.fc-playground-section {
    padding: 95px 0;

    background:
        radial-gradient(
            circle at 80% 5%,
            rgba(255, 90, 54, 0.15),
            transparent 28%
        ),
        #111620;
}

.playground-heading h2 {
    color: #ffffff;
}

.playground-heading p {
    color: #9ca6b4;
}

.playground-shell {
    max-width: 980px;

    margin: 0 auto;

    overflow: hidden;

    border: 1px solid #303744;
    border-radius: 22px;

    background: #181e29;

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.28);
}

.playground-toolbar {
    min-height: 60px;

    padding: 0 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #303744;
}

.playground-title {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.terminal-icon {
    color: var(--primary);

    font-family: monospace;
}

.connection-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #9ba5b5;

    font-size: 11px;
}

.connection-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);
}

.playground-body {
    padding: 33px;
}


/* ============================================================
   21. SCRAPER FORM
   ============================================================ */

.scrape-form label {
    display: block;

    margin-bottom: 9px;

    color: #d8dde6;

    font-size: 13px;
    font-weight: 700;
}

.url-input-wrap {
    min-height: 61px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 7px 7px 7px 17px;

    border: 1px solid #353d4b;
    border-radius: 13px;

    background: #0f141d;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.url-input-wrap:focus-within {
    border-color: rgba(255, 90, 54, 0.65);

    box-shadow:
        0 0 0 3px rgba(255, 90, 54, 0.08);
}

.url-icon {
    flex-shrink: 0;

    color: #7e8999;
}

.url-input-wrap input {
    flex: 1;

    min-width: 0;

    padding: 10px 4px;

    border: 0;
    outline: 0;

    color: #ffffff;
    background: transparent;

    font-size: 14px;
}

.url-input-wrap input::placeholder {
    color: #626d7e;
}

.url-input-wrap button {
    min-height: 46px;

    padding: 0 19px;

    border: 0;
    border-radius: 9px;

    color: #ffffff;
    background: var(--primary);

    font-size: 13px;
    font-weight: 700;

    transition: background var(--transition);
}

.url-input-wrap button:hover {
    background: var(--primary-dark);
}

.url-input-wrap button:disabled {
    opacity: 0.6;

    cursor: wait;
}

.input-help {
    margin: 8px 0 0;

    color: #788292;

    font-size: 11px;
}


/* ============================================================
   22. SCRAPER MESSAGES / RESULTS
   ============================================================ */

.scrape-message {
    margin-top: 18px;
    padding: 12px 14px;

    border-radius: 9px;

    font-size: 12px;
}

.scrape-message.error {
    border: 1px solid rgba(255, 90, 54, 0.22);

    color: #ffada0;
    background: rgba(255, 90, 54, 0.08);
}

.scrape-message.success {
    border: 1px solid rgba(34, 183, 122, 0.22);

    color: #83deb7;
    background: rgba(34, 183, 122, 0.08);
}

.result-panel {
    margin-top: 22px;

    overflow: hidden;

    border: 1px solid #343c49;
    border-radius: 13px;

    background: #0d121a;
}

.result-header {
    min-height: 50px;

    padding: 0 13px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #2d3542;
}

.result-tabs {
    display: flex;

    gap: 5px;
}

.result-tab {
    padding: 7px 10px;

    border: 0;
    border-radius: 7px;

    color: #7f8999;
    background: transparent;

    font-size: 11px;
    font-weight: 700;
}

.result-tab.active {
    color: #ffffff;
    background: #252c38;
}

.copy-result,
.copy-btn {
    padding: 7px 10px;

    border: 1px solid #3b4351;
    border-radius: 7px;

    color: #c7ced9;
    background: #1a202b;

    font-size: 11px;
}

.scrape-output {
    min-height: 180px;
    max-height: 480px;

    margin: 0;
    padding: 22px;

    overflow: auto;

    white-space: pre-wrap;
    word-break: break-word;

    color: #d0d6df;

    font-family: monospace;
    font-size: 12px;
    line-height: 1.7;
}

.playground-note {
    max-width: 820px;

    margin: 23px auto 0;

    color: #7f8998;

    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}


/* ============================================================
   23. GUIDE CARDS
   ============================================================ */

.guide-card {
    min-height: 285px;

    display: flex;
    flex-direction: column;

    color: inherit;
}

.guide-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 42px;
}

.guide-tag {
    padding: 6px 9px;

    border-radius: 7px;

    color: var(--primary);
    background: var(--primary-soft);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.guide-arrow {
    color: #9ba4b2;
}

.guide-card p {
    margin-bottom: 22px;
}

.guide-link {
    margin-top: auto;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   24. USE CASE CARDS
   ============================================================ */

.use-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.use-card {
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: #ffffff;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.use-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow-md);
}

.use-icon {
    min-height: 35px;

    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;
    padding: 0 10px;

    border-radius: 7px;

    color: var(--primary);
    background: var(--primary-soft);

    font-size: 9px;
    font-weight: 900;
}

.use-card h3 {
    margin-bottom: 8px;

    font-size: 18px;
}

.use-card p {
    margin: 0;

    color: #606a79;

    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   25. FAQ
   ============================================================ */

.fc-faq-section {
    padding: 90px 0;

    background: var(--bg-soft);
}

.faq-container {
    max-width: 900px;
}

.faq-list {
    display: flex;
    flex-direction: column;

    gap: 11px;
}

.faq-list details {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #ffffff;
}

.faq-list summary {
    position: relative;

    padding: 19px 52px 19px 20px;

    list-style: none;

    color: var(--heading);

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";

    position: absolute;

    top: 50%;
    right: 20px;

    transform: translateY(-50%);

    color: var(--primary);

    font-size: 21px;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 20px 20px;

    color: #5e6877;

    font-size: 14px;
    line-height: 1.75;
}


/* ============================================================
   26. CTA BOX
   ============================================================ */

.cta-box,
.final-cta-card {
    position: relative;

    overflow: hidden;

    padding: 70px 34px;

    border-radius: 26px;

    color: #ffffff;

    text-align: center;

    background:
        radial-gradient(
            circle at 82% 28%,
            rgba(255, 90, 54, 0.35),
            transparent 28%
        ),
        var(--dark-2);
}

.cta-box h2,
.final-cta-card h2 {
    max-width: 720px;

    margin: 14px auto;

    color: #ffffff;

    font-size: clamp(33px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.cta-box p,
.final-cta-card p {
    max-width: 610px;

    margin: 0 auto;

    color: #a5aebb;

    line-height: 1.7;
}

.cta-buttons {
    margin-top: 27px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;
}

.fc-final-cta {
    padding: 90px 0;
}


/* ============================================================
   27. INNER PAGE HERO
   About / Firecrawl / Scrape / Crawl / Legal
   ============================================================ */

.page-hero {
    position: relative;

    overflow: hidden;

    padding: 70px 0 54px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(255, 90, 54, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #fafbfd
        );
}

.page-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.2;

    pointer-events: none;

    background-image:
        linear-gradient(
            #e8ecf2 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            #e8ecf2 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.4),
            transparent
        );
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .inner {
    max-width: 900px;
}

.page-hero .eyebrow {
    margin-bottom: 18px;
}

.page-hero h1 {
    max-width: 900px;

    margin: 0;

    color: var(--heading);

    font-size: clamp(42px, 5vw, 63px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.page-hero .lead {
    max-width: 850px;

    margin: 19px 0 0;

    color: #5b6574;

    font-size: 17px;
    line-height: 1.75;
}


/* ============================================================
   28. INNER CONTENT LAYOUT
   ============================================================ */

.content-wrap {
    padding-top: 48px;
    padding-bottom: 90px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        270px;

    gap: 34px;

    align-items: start;
}


/* ============================================================
   29. ARTICLE / PAGE CONTENT
   ============================================================ */

.article {
    min-width: 0;

    padding: 40px;

    border: 1px solid var(--border);
    border-radius: 21px;

    background: #ffffff;

    box-shadow: var(--shadow-sm);
}

.article > *:first-child {
    margin-top: 0;
}

.article h1 {
    margin-bottom: 20px;

    font-size: 38px;
}

.article h2 {
    position: relative;

    margin: 42px 0 14px;

    color: var(--heading);

    font-size: clamp(25px, 3vw, 31px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.article h2:first-child {
    margin-top: 0;
}

.article h2:not(:first-child)::before {
    content: "";

    display: block;

    width: 48px;
    height: 3px;

    margin-bottom: 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #ff9c76
        );
}

.article h3 {
    margin: 28px 0 11px;

    color: #172033;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.article h4 {
    margin: 25px 0 10px;

    color: #192234;

    font-size: 17px;
}

.article p {
    margin: 0 0 18px;

    color: #566071;

    font-size: 15.5px;
    line-height: 1.8;
}

.article strong {
    color: #172033;
}

.article a {
    color: var(--primary-dark);

    font-weight: 650;

    text-decoration: underline;
    text-decoration-color: rgba(232, 73, 39, 0.28);
    text-underline-offset: 3px;
}

.article a:hover {
    color: #c43b1f;
}

.article ul,
.article ol {
    margin: 14px 0 24px;

    padding-left: 25px;
}

.article li {
    margin: 7px 0;

    color: #566071;

    font-size: 15.5px;
    line-height: 1.7;
}

.article li::marker {
    color: var(--primary);

    font-weight: 800;
}


/* ============================================================
   30. ARTICLE CODE
   ============================================================ */

.article code {
    padding: 3px 6px;

    border-radius: 5px;

    color: #c94325;
    background: #fff1ed;

    font-family: monospace;
    font-size: 0.92em;
}

.article pre {
    max-width: 100%;

    margin: 24px 0;
    padding: 22px;

    overflow-x: auto;

    border: 1px solid #2c3440;
    border-radius: 13px;

    color: #d5dbe5;
    background: #111620;

    font-family: monospace;
    font-size: 12.5px;
    line-height: 1.75;
}

.article pre code {
    padding: 0;

    color: inherit;
    background: transparent;
}

.article blockquote {
    margin: 23px 0;
    padding: 17px 19px;

    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;

    color: #555f6f;
    background: #fff7f4;
}


/* ============================================================
   31. ARTICLE TABLES
   ============================================================ */

.article table {
    width: 100%;

    margin: 24px 0;

    border-collapse: collapse;

    border: 1px solid var(--border);

    background: #ffffff;
}

.article th,
.article td {
    padding: 13px 15px;

    border: 1px solid var(--border);

    text-align: left;

    color: #5c6675;

    font-size: 13px;
}

.article th {
    color: var(--heading);
    background: #f7f9fb;

    font-weight: 750;
}


/* ============================================================
   32. TABLE OF CONTENTS
   ============================================================ */

.toc {
    position: sticky;
    top: 125px;

    align-self: start;

    padding: 21px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: #ffffff;

    box-shadow: var(--shadow-sm);
}

.toc strong {
    display: block;

    margin-bottom: 11px;

    color: var(--heading);

    font-size: 13px;
    font-weight: 800;
}

.toc a {
    display: block;

    margin: 2px 0;
    padding: 8px 9px;

    border-radius: 7px;

    color: #687281;

    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 550;

    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.toc a:hover {
    color: var(--primary);
    background: var(--primary-soft);

    transform: translateX(2px);
}


/* ============================================================
   33. PAGES WITHOUT SIDEBAR
   ============================================================ */

.content-wrap:not(:has(.toc)) {
    grid-template-columns: minmax(0, 920px);

    justify-content: center;
}

.content-wrap:not(:has(.toc)) .article {
    width: 100%;
}


/* ============================================================
   34. CONTACT PAGE / FORMS
   ============================================================ */

.article form,
.contact-form {
    margin-top: 28px;
}

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--heading);

    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select,
.article input,
.article textarea,
.article select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dce1e8;
    border-radius: 10px;
    outline: none;

    color: var(--heading);
    background: #ffffff;

    font-size: 14px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group textarea,
.article textarea {
    min-height: 150px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.article input:focus,
.article textarea:focus,
.article select:focus {
    border-color: rgba(255, 90, 54, 0.7);

    box-shadow:
        0 0 0 3px rgba(255, 90, 54, 0.08);
}


/* ============================================================
   35. LEGAL PAGES
   Privacy / Terms / Disclaimer
   ============================================================ */

.article.legal-content,
.legal-content {
    max-width: 920px;
}

.article.legal-content h2,
.legal-content h2 {
    margin-top: 38px;
}

.article.legal-content p,
.article.legal-content li,
.legal-content p,
.legal-content li {
    color: #5b6574;
}


/* ============================================================
   36. FOOTER
   ============================================================ */

.site-footer {
    width: 100%;

    padding: 70px 0 24px;

    border-top: 1px solid #252d39;

    color: #b9c1ce;
    background: #111620;
}

.footer-main,
.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.7fr)
        repeat(3, minmax(130px, 0.72fr));

    gap: 55px;

    padding-bottom: 52px;
}

.footer-about {
    max-width: 390px;
}

.footer-brand,
.footer-logo {
    display: inline-flex;

    margin-bottom: 19px;

    color: #ffffff;
}

.footer-logo .logo-text,
.footer-brand {
    color: #ffffff;
}

.footer-about p,
.site-footer .muted {
    max-width: 380px;

    margin: 0;

    color: #929baa;

    font-size: 13.5px;
    line-height: 1.8;
}

.footer-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-top: 21px;
    padding: 7px 10px;

    border: 1px solid #303846;
    border-radius: 7px;

    color: #a8b1bf;
    background: #171d27;

    font-size: 10px;
    font-weight: 600;
}

.footer-badge span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #33ca8d;
}

.footer-column h2,
.footer-grid h3 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 13px;
    line-height: 1;
    font-weight: 750;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column a,
.footer-grid a {
    display: inline-block;

    margin-bottom: 10px;

    color: #929dad;

    font-size: 13px;
    line-height: 1.5;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-column a:hover,
.footer-grid a:hover {
    color: #ffffff;

    transform: translateX(2px);
}


/* ============================================================
   37. FOOTER BOTTOM
   ============================================================ */

.footer-bottom {
    padding-top: 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    border-top: 1px solid #29313d;
}

.footer-bottom p {
    margin: 0;

    color: #778190;

    font-size: 10.5px;
    line-height: 1.7;
}

.footer-disclaimer {
    max-width: 550px;

    text-align: right;
}


/* ============================================================
   38. DESKTOP HOVER EFFECTS
   ============================================================ */

@media (hover: hover) {

    .card,
    .guide-card,
    .workflow-card,
    .use-card {
        will-change: transform;
    }

}


/* ============================================================
   39. TABLET - 1100px
   ============================================================ */

@media (max-width: 1100px) {

    .hero-grid,
    .fc-hero-grid {
        grid-template-columns: 1fr 0.9fr;

        gap: 42px;
    }

    .hero h1,
    .fc-hero h1 {
        font-size: 56px;
    }

    .use-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   40. TABLET - 980px
   ============================================================ */

@media (max-width: 980px) {

    .header-container,
    .nav-wrap {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta,
    .nav-cta {
        margin-left: auto;
    }

    .main-navigation,
    .primary-nav {
        position: absolute;

        top: calc(100% + 1px);
        left: 20px;
        right: 20px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        margin: 0;
        padding: 10px;

        border: 1px solid var(--border);
        border-radius: 13px;

        background: #ffffff;

        box-shadow:
            0 20px 50px rgba(16, 24, 39, 0.13);
    }

    .main-navigation.open,
    .primary-nav.open {
        display: flex;
    }

    .main-navigation a,
    .primary-nav a {
        width: 100%;
        min-height: 44px;
    }

    .main-navigation a.active::after,
    .primary-nav a.active::after {
        display: none;
    }


    /* Hero */

    .hero-grid,
    .fc-hero-grid {
        grid-template-columns: 1fr;

        gap: 42px;
    }

    .fc-code-window {
        transform: none;
    }


    /* Cards */

    .cards,
    .workflow-grid,
    .guides-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* Comparison */

    .split,
    .comparison-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    /* Inner pages */

    .content-wrap {
        grid-template-columns: 1fr;

        gap: 23px;

        padding-top: 34px;
        padding-bottom: 70px;
    }

    .toc {
        position: static;

        order: -1;

        display: flex;
        flex-wrap: wrap;

        gap: 6px;
    }

    .toc strong {
        width: 100%;
    }

    .toc a {
        display: inline-flex;

        border: 1px solid #eceff3;

        background: #fafbfd;
    }


    /* Footer */

    .footer-main,
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);

        gap: 38px;
    }

    .footer-about,
    .footer-grid > :first-child {
        grid-column: 1 / -1;

        max-width: 520px;
    }

}


/* ============================================================
   41. MOBILE - 700px
   ============================================================ */

@media (max-width: 700px) {

    .container,
    .header-container,
    .nav-wrap {
        width: min(100% - 28px, var(--container));
    }


    /* Header */

    .header-container,
    .nav-wrap {
        gap: 9px;
    }

    .logo-icon,
    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .logo-text,
    .brand {
        font-size: 17px;
    }

    .header-cta,
    .nav-cta {
        display: none;
    }

    .main-navigation,
    .primary-nav {
        left: 14px;
        right: 14px;
    }


    /* Notice */

    .independent-notice .container,
    .notice {
        padding: 6px 0;

        font-size: 10px;
    }


    /* Home hero */

    .hero,
    .fc-hero {
        padding: 64px 0 58px;
    }

    .hero h1,
    .fc-hero h1 {
        font-size: 42px;
        line-height: 1.03;
    }

    .hero p,
    .fc-hero-text {
        font-size: 15.5px;
    }

    .actions,
    .fc-hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .actions .btn,
    .fc-hero-actions .btn {
        width: 100%;
    }

    .trustline,
    .fc-trust-row {
        flex-direction: column;

        gap: 14px;
    }


    /* Sections */

    .section,
    .fc-section,
    .fc-playground-section,
    .fc-faq-section,
    .fc-final-cta {
        padding: 68px 0;
    }

    .section-head,
    .section-heading {
        margin-bottom: 35px;
    }

    .section-head h2,
    .section-heading h2 {
        font-size: 34px;
    }


    /* Cards */

    .cards,
    .workflow-grid,
    .guides-grid,
    .steps,
    .use-grid {
        grid-template-columns: 1fr;
    }


    /* Code */

    .code-card pre,
    .fc-code-window pre {
        padding: 20px;

        font-size: 11.5px;
    }


    /* Playground */

    .playground-body {
        padding: 19px;
    }

    .url-input-wrap {
        flex-wrap: wrap;
        align-items: stretch;

        padding: 10px;
    }

    .url-input-wrap input {
        width: calc(100% - 35px);
    }

    .url-input-wrap button {
        width: 100%;
    }


    /* Comparison */

    .compare-row {
        grid-template-columns: 1.3fr 0.7fr 0.7fr;
    }

    .compare-row > div {
        padding: 13px 9px;

        font-size: 11px;
    }


    /* Inner hero */

    .page-hero {
        padding: 52px 0 37px;
    }

    .page-hero h1 {
        font-size: 39px;
    }

    .page-hero .lead {
        font-size: 15.5px;
    }


    /* Article */

    .content-wrap {
        padding-top: 24px;
        padding-bottom: 55px;
    }

    .article {
        padding: 24px 20px;

        border-radius: 16px;
    }

    .article h1 {
        font-size: 31px;
    }

    .article h2 {
        margin-top: 33px;

        font-size: 24px;
    }

    .article h3 {
        font-size: 18px;
    }

    .article p,
    .article li {
        font-size: 14.5px;
    }

    .article pre {
        padding: 17px;

        font-size: 11.5px;
    }


    /* Tables */

    .article table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }


    /* Contact */

    .form-grid {
        grid-template-columns: 1fr;
    }


    /* CTA */

    .cta-box,
    .final-cta-card {
        padding: 52px 20px;

        border-radius: 20px;
    }

    .cta-box h2,
    .final-cta-card h2 {
        font-size: 34px;
    }


    /* Footer */

    .site-footer {
        padding-top: 52px;
    }

    .footer-main,
    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;

        padding-bottom: 38px;
    }

    .footer-about,
    .footer-grid > :first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 9px;
    }

    .footer-disclaimer {
        text-align: left;
    }

}


/* ============================================================
   42. SMALL MOBILE - 480px
   ============================================================ */

@media (max-width: 480px) {

    .hero h1,
    .fc-hero h1 {
        font-size: 37px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .section-head h2,
    .section-heading h2 {
        font-size: 30px;
    }

    .article {
        padding: 21px 17px;
    }

    .playground-toolbar {
        padding: 0 15px;
    }

    .playground-body {
        padding: 15px;
    }

}


/* ============================================================
   43. UTILITY
   ============================================================ */

.text-link {
    display: inline-flex;

    margin-top: 10px;

    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}

.text-link:hover {
    color: var(--primary-dark);
}

.check {
    width: 23px;
    height: 23px;

    display: inline-grid;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;
    background: var(--green);

    font-size: 10px;
}

hr {
    height: 1px;

    margin: 32px 0;

    border: 0;

    background: var(--border);
}


/* ============================================================
   END OF FIRECRAWLAPI MASTER CSS
   ============================================================ */