:root {
    --api-navy: #061b3d;
    --api-deep: #03132e;
    --api-blue: #1769ed;
    --api-cyan: #35c6e8;
    --api-ink: #17365f;
    --api-muted: #6e8290;
    --api-line: #dce6f2;
    --api-soft: #f4f8ff;
}

.api-hero {
    min-height: 650px;
    padding: 145px 0 76px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 73% 42%, rgba(30, 112, 239, .34), transparent 31%),
        radial-gradient(circle at 17% 18%, rgba(53, 198, 232, .10), transparent 25%),
        linear-gradient(118deg, #03142f 0%, #08275a 52%, #041833 100%);
}

.api-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .17;
    background-image: linear-gradient(rgba(70, 153, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 153, 255, .18) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(90deg, transparent, #000 38%, #000 100%);
}

.api-hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: 48%;
    top: 12%;
    border: 1px solid rgba(88, 162, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 110px rgba(32, 111, 229, .15), inset 0 0 70px rgba(32, 111, 229, .08);
}

.api-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(50px, 8vw, 120px);
}

.api-hero-copy { order: 1; max-width: 610px; }
.api-code-stage { order: 2; }

.api-kicker,
.api-section-head > span,
.api-section-head > div > span,
.api-use-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--api-blue);
    font-size: .84rem;
    font-weight: 800;
}

.api-kicker { color: #8fc8ff; }

.api-kicker::before,
.api-section-head > span::before,
.api-section-head > div > span::before,
.api-use-copy > span::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.api-hero h1 {
    max-width: 600px;
    margin: 0 0 20px;
    font-size: clamp(2.25rem, 4.25vw, 4.25rem);
    line-height: 1.22;
    letter-spacing: -.045em;
}

.api-hero h1 span { display: block; color: #58b9ff; }
.api-hero-copy > p { max-width: 580px; margin: 0; color: rgba(255,255,255,.76); font-size: 1.02rem; line-height: 2; }
.api-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.api-btn-primary,
.api-btn-ghost {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 9px;
    font-weight: 750;
}

.api-btn-primary { color: #fff; border: 1px solid var(--api-blue); background: linear-gradient(135deg, #2379f4, #0b56d3); box-shadow: 0 12px 28px rgba(19, 96, 222, .25); }
.api-btn-primary:hover { color: #fff; transform: translateY(-2px); }
.api-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.43); background: rgba(255,255,255,.035); }
.api-btn-ghost:hover { color: #fff; border-color: #fff; }
.api-trust-points { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.56); font-size: .75rem; }
.api-trust-points li::before { content: "✓"; margin-left: 6px; color: #55c6ff; font-weight: 900; }

.api-code-stage { position: relative; min-height: 360px; display: grid; place-items: center; perspective: 1000px; }
.api-code-window { width: min(100%, 550px); overflow: hidden; direction: ltr; border: 1px solid rgba(112,174,255,.25); border-radius: 16px; background: rgba(3, 18, 43, .88); box-shadow: 0 34px 70px rgba(0,8,26,.48); transform: rotateY(3deg); }
.api-code-bar { height: 48px; padding: 0 15px; display: flex; align-items: center; gap: 12px; color: #7192b7; border-bottom: 1px solid rgba(125,177,241,.13); background: rgba(255,255,255,.025); }
.api-code-bar code { flex: 1; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; white-space: nowrap; }
.api-code-bar b { padding: 4px 9px; color: #a8ffdf; border-radius: 5px; background: rgba(20,195,133,.14); font-size: .65rem; }
.api-window-dots { display: flex; gap: 5px; }
.api-window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e45a67; }
.api-window-dots i:nth-child(2) { background: #e8bb42; }
.api-window-dots i:nth-child(3) { background: #33c591; }
.api-endpoint { display: flex; gap: 10px; align-items: center; margin: 22px 25px 0; padding: 11px 13px; color: #9cb7d7; border: 1px solid rgba(105,163,232,.12); border-radius: 8px; background: rgba(14,51,91,.36); }
.api-endpoint span { padding: 4px 7px; color: #9effd8; border-radius: 4px; background: rgba(21,186,126,.13); font-size: .62rem; }
.api-endpoint code { font-size: .72rem; }
.api-code-window pre { min-height: 245px; margin: 0; padding: 24px 34px 30px; color: #d0e0f3; text-align: left; font: 500 .87rem/1.85 Consolas, Monaco, monospace; white-space: pre-wrap; }
.api-code-key { color: #78b9ff; }
.api-code-string { color: #72e1c2; }
.api-code-number { color: #ffca72; }
.api-float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 11px 14px; color: #d7eaff; border: 1px solid rgba(124,178,244,.24); border-radius: 9px; background: rgba(10,39,78,.94); box-shadow: 0 14px 30px rgba(0,0,0,.22); font-size: .72rem; }
.api-float-chip span { width: 8px; height: 8px; border-radius: 50%; background: #39d89f; box-shadow: 0 0 12px #39d89f; }
.api-float-top { top: 1%; right: -1%; }
.api-float-bottom { bottom: 2%; left: 1%; }

.api-section { padding: 92px 0; }
.api-section-head h2,
.api-use-copy h2 { margin: 0; color: var(--api-ink); font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.45; letter-spacing: -.035em; }
.api-section-head p { color: var(--api-muted); line-height: 1.9; }
.api-head-split { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 70px; margin-bottom: 42px; }
.api-head-split > p { max-width: 520px; margin: 0; }
.api-head-split > div > span { margin-bottom: 8px; }
.api-section-head.centered { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.api-section-head.centered > span { justify-content: center; }
.api-section-head.centered > span::before { display: none; }
.api-section-head.centered p { margin: 12px auto 0; }

.api-value { background: #fff; }
.api-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; padding: 10px; border: 1px solid #e5ecf4; border-radius: 15px; background: #fff; box-shadow: 0 16px 42px rgba(26,61,103,.08); }
.api-flow article { min-height: 78px; display: flex; align-items: center; gap: 15px; padding: 12px 20px; border-radius: 10px; }
.api-flow article.is-active { background: #f0f6ff; }
.api-flow-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--api-blue); border-radius: 10px; background: #eaf2ff; font: 800 1rem/1 Consolas, monospace; }
.api-flow b, .api-flow small { display: block; }
.api-flow b { color: var(--api-ink); font-size: .87rem; }
.api-flow small { margin-top: 5px; color: #8a9aad; font-size: .7rem; }
.api-flow-arrow { color: #a6b8cc; }

.api-capabilities { background: var(--api-soft); }
.api-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.api-feature-grid article { position: relative; min-height: 190px; padding: 28px; overflow: hidden; border: 1px solid #e2eaf4; border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 10px 28px rgba(31,75,126,.04); }
.api-feature-grid article:hover { transform: translateY(-4px); border-color: #b9d4f6; box-shadow: 0 16px 36px rgba(31,75,126,.09); }
.api-card-number { position: absolute; top: 14px; left: 17px; color: #e8eef7; font-size: 1.35rem; font-weight: 900; }
.api-line-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--api-blue); border: 1px solid #dce8fa; border-radius: 11px; background: #f2f7ff; font-size: 1.3rem; font-weight: 800; }
.api-feature-grid h3, .api-data-grid h3 { margin: 18px 0 8px; color: var(--api-ink); font-size: 1rem; }
.api-feature-grid p, .api-data-grid p { margin: 0; color: var(--api-muted); font-size: .79rem; line-height: 1.9; }

.api-data { background: #fff; }
.api-data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.api-data-grid article { position: relative; min-height: 235px; padding: 28px; border: 1px solid #e1e8f1; border-radius: 13px; background: #fff; }
.api-data-index { position: absolute; top: 25px; left: 25px; color: #dce5f0; font-size: 1.55rem; font-weight: 900; }
.api-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.api-tags span { padding: 5px 9px; color: #657d98; border: 1px solid #e1e9f3; border-radius: 999px; background: #f9fbfd; font-size: .65rem; }
.api-text-link { width: fit-content; display: flex; gap: 8px; margin: 28px auto 0; color: var(--api-blue); font-size: .82rem; font-weight: 800; }

.api-use-cases { padding: 86px 0; color: #fff; background: radial-gradient(circle at 80% 40%, rgba(28,101,212,.28), transparent 32%), linear-gradient(115deg, #03142f, #082553 70%, #061b3d); }
.api-use-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; align-items: center; }
.api-use-copy > span { color: #71b5ff; }
.api-use-copy h2 { color: #fff; }
.api-use-copy p { max-width: 420px; color: rgba(255,255,255,.62); line-height: 1.95; }
.api-use-copy a { color: #65b9ff; font-size: .78rem; font-weight: 800; }
.api-use-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.11); }
.api-use-list .api-line-icon { color: #67baff; border-color: rgba(104,177,255,.2); background: rgba(64,137,223,.08); }
.api-use-list h3 { margin: 0 0 5px; color: #fff; font-size: .94rem; }
.api-use-list p { margin: 0; color: rgba(255,255,255,.52); font-size: .72rem; }
.api-use-list article > span:last-child { color: #4f95df; }

.api-console-section { background: #fff; }
.api-console-cta p { margin: 0 0 15px; }
.api-dashboard { display: grid; grid-template-columns: 190px 1fr; min-height: 440px; overflow: hidden; direction: rtl; border: 1px solid #dce7f4; border-radius: 16px; background: #f8fbff; box-shadow: 0 24px 60px rgba(23,54,95,.11); }
.api-dashboard aside { display: flex; flex-direction: column; gap: 7px; padding: 25px 16px; border-left: 1px solid #e3ebf4; background: #f1f6fd; }
.api-dashboard aside b { margin-bottom: 15px; color: var(--api-ink); font-size: .83rem; }
.api-dashboard aside span { padding: 11px 12px; color: #71849a; border-radius: 8px; font-size: .72rem; }
.api-dashboard aside span.active { color: #1769ed; background: #fff; box-shadow: 0 5px 18px rgba(32,76,128,.08); }
.api-dashboard-main { padding: 28px; }
.api-dashboard-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #e1e9f2; }
.api-dashboard-title small { color: #7c90a7; }
.api-dashboard-title h3 { margin: 5px 0 0; color: var(--api-ink); }
.api-dashboard-title > span { padding: 6px 11px; color: #079d68; border-radius: 6px; background: #e4f8f0; font: 800 .7rem Consolas, monospace; }
.api-request-line { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px; direction: ltr; border: 1px solid #dfe8f2; border-radius: 8px; background: #fff; }
.api-request-line code { flex: 1; overflow: hidden; color: #59728f; text-overflow: ellipsis; white-space: nowrap; }
.api-request-line button { padding: 6px 11px; color: #fff; border: 0; border-radius: 5px; background: var(--api-blue); }
.api-dashboard-panels { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; margin-top: 20px; direction: rtl; }
.api-dashboard-panels > div, .api-dashboard-panels pre { min-height: 245px; padding: 20px; border: 1px solid #e0e8f1; border-radius: 9px; background: #fff; }
.api-dashboard-panels h4 { margin: 0 0 14px; color: var(--api-ink); }
.api-dashboard-panels label { display: block; margin: 10px 0 6px; color: #6d829a; font-size: .68rem; }
.api-dashboard-panels label b { color: #e66565; font-size: .6rem; }
.api-input { display: block; padding: 10px; color: #a1afbf; border: 1px solid #e1e7ef; border-radius: 6px; font-size: .68rem; }
.api-dashboard-panels pre { margin: 0; direction: ltr; color: #b8d2ed; background: #041a37; font: .75rem/1.8 Consolas, monospace; }
.api-dashboard-panels pre span { color: #63e0ad; }

.api-process { background: var(--api-soft); text-align: center; }
.api-step-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; max-width: 900px; margin: 0 auto 34px; }
.api-step-grid::before { content: ""; position: absolute; z-index: 0; top: 30px; right: 14%; left: 14%; border-top: 1px dashed #afc5df; }
.api-step-grid article { position: relative; z-index: 1; }
.api-step-grid article > span { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--api-blue); border: 1px solid #cbdcf0; border-radius: 16px; background: #fff; box-shadow: 0 10px 22px rgba(31,78,133,.09); font-size: 1.2rem; font-weight: 900; }
.api-step-grid b { display: block; color: var(--api-ink); }
.api-step-grid p { color: var(--api-muted); font-size: .74rem; line-height: 1.8; }
.api-process-action { display: inline-flex; }

.api-final-cta { padding: 58px 0; color: #fff; background: linear-gradient(110deg, #0872ee, #1454d0 65%, #073da8); }
.api-final-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.api-final-cta span { color: rgba(255,255,255,.72); font-size: .75rem; }
.api-final-cta h2 { margin: 8px 0 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.5; }
.api-final-cta .btn { min-height: 50px; padding: 0 25px; color: #1455c9; border: 0; border-radius: 9px; background: #fff; font-weight: 800; }

.api-faq { background: #fff; }
.api-faq-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 90px; }
.api-faq .api-section-head p { max-width: 330px; }
.api-accordion details { border-bottom: 1px solid #e1e8f0; }
.api-accordion summary { display: flex; justify-content: space-between; gap: 20px; padding: 19px 3px; color: var(--api-ink); cursor: pointer; list-style: none; font-size: .86rem; font-weight: 700; }
.api-accordion summary::-webkit-details-marker { display: none; }
.api-accordion summary span { color: var(--api-blue); }
.api-accordion details[open] summary span { transform: rotate(45deg); }
.api-accordion details p { margin: -5px 0 20px; padding-left: 40px; color: var(--api-muted); font-size: .78rem; line-height: 1.9; }

@media (max-width: 980px) {
    .api-hero { min-height: auto; padding-top: 125px; }
    .api-hero-grid { grid-template-columns: 1fr; gap: 55px; }
    .api-hero-copy, .api-code-stage { order: initial; }
    .api-hero-copy { max-width: 720px; }
    .api-code-window { width: min(100%, 650px); }
    .api-head-split, .api-use-grid, .api-faq-grid { grid-template-columns: 1fr; gap: 28px; }
    .api-feature-grid, .api-data-grid { grid-template-columns: repeat(2, 1fr); }
    .api-dashboard { grid-template-columns: 150px 1fr; }
}

@media (max-width: 720px) {
    .api-hero { padding: 104px 0 52px; }
    .api-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .api-hero-copy > p { font-size: .9rem; }
    .api-code-stage { min-height: 300px; }
    .api-code-window { transform: none; }
    .api-code-window pre { min-height: 210px; padding: 18px; font-size: .69rem; }
    .api-float-chip { display: none; }
    .api-section { padding: 66px 0; }
    .api-head-split { margin-bottom: 30px; }
    .api-section-head h2, .api-use-copy h2 { font-size: 1.75rem; }
    .api-flow { grid-template-columns: 1fr; }
    .api-flow-arrow { transform: rotate(-90deg); text-align: center; }
    .api-feature-grid, .api-data-grid { grid-template-columns: 1fr; }
    .api-feature-grid article { min-height: 170px; }
    .api-use-cases { padding: 66px 0; }
    .api-dashboard { grid-template-columns: 1fr; }
    .api-dashboard aside { display: none; }
    .api-dashboard-main { padding: 16px; }
    .api-dashboard-panels { grid-template-columns: 1fr; }
    .api-dashboard-panels > div { min-height: auto; }
    .api-request-line code { max-width: 65vw; }
    .api-step-grid { grid-template-columns: 1fr; gap: 24px; }
    .api-step-grid::before { top: 20px; bottom: 20px; right: 50%; left: auto; height: auto; border-top: 0; border-right: 1px dashed #afc5df; }
    .api-step-grid article { padding: 0 12%; background: var(--api-soft); }
    .api-final-cta .container { flex-direction: column; align-items: flex-start; }
    .api-final-cta .btn { width: 100%; }
}

@media (max-width: 430px) {
    .api-hero-actions .btn { width: 100%; }
    .api-trust-points { gap: 10px; font-size: .68rem; }
    .api-code-bar code { max-width: 155px; }
    .api-endpoint { margin-inline: 12px; }
    .api-section-head h2 br, .api-use-copy h2 br, .api-final-cta h2 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .api-feature-grid article, .api-btn-primary { transition: none; }
}
