/* ==============================
   Design tokens & base styles
   ============================== */
:root {
    --green:#3ab54a;
    --green2:#2f9f3f;
    --green-soft:#eef8ef;
    --ink:#2d3133;
    --muted:#6f7477;
    --line:#e6e8e6;
    --soft:#f5f6f5;
    --white:#fff;
    --dark:#252a27;
    --page:1180px;
    --wide:1380px;
    --shadow:0 18px 46px rgba(28,36,29,.08)
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    font-family:Montserrat,Arial,sans-serif;
    color:var(--ink);
    background:#fff;
    font-size:15px;
    line-height:1.72;
    -webkit-font-smoothing:antialiased
}

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

a {
    color:inherit
}

.page {
    max-width:var(--page);
    margin:auto;
    padding-left:28px;
    padding-right:28px
}

.wide {
    max-width:var(--wide);
    margin:auto;
    padding-left:32px;
    padding-right:32px
}

/* ==============================
   Header & navigation
   ============================== */
.site-header {
    height:90px;
    background:#fff;
    border-bottom:1px solid rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:1000
}

.site-header.scrolled {
    box-shadow:0 8px 28px rgba(28,36,29,.08)
}

.header-row {
    height:100%;
    display:flex;
    align-items:center;
    gap:38px
}

.brand {
    flex:none
}

.brand img {
    width:174px;
    max-height:48px
}

.main-nav {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:29px;
    flex:1;
    height:100%
}

.main-nav>a,.nav-group>button {
    position:relative;
    border:0;
    background:none;
    text-decoration:none;
    font:500 14px Montserrat;
    color:#444a47;
    padding:34px 0;
    cursor:pointer;
    white-space:nowrap
}

.main-nav>a:after,.nav-group>button:after {
    content:'';
    position:absolute;
    height:2px;
    background:var(--green);
    left:0;
    right:100%;
    bottom:25px;
    transition:.2s
}

.main-nav>a:hover,.main-nav>a.active,.nav-group:hover>button,.nav-group.active>button {
    color:var(--green)
}

.main-nav>a:hover:after,.main-nav>a.active:after,.nav-group:hover>button:after,.nav-group.active>button:after {
    right:0
}

.nav-group {
    height:100%;
    display:flex;
    align-items:center;
    position:relative
}

.nav-group>button span {
    font-size:17px;
    margin-left:3px;
    position: absolute;
    top: 25px;
}

.mega-menu {
    position:absolute;
    top:76px;
    left:-25px;
    width:330px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:10px;
    box-shadow:0 20px 48px rgba(25,31,26,.13);
    padding:11px;
    opacity:0;
    visibility:hidden;
    transform:translateY(7px);
    transition:.18s
}

.nav-group:hover .mega-menu,.nav-group.open .mega-menu {
    opacity:1;
    visibility:visible;
    transform:none
}

.mega-menu a {
    display:flex;
    flex-direction:column;
    text-decoration:none;
    padding:12px 14px;
    border-radius:7px
}

.mega-menu a:hover {
    background:var(--green-soft)
}

.mega-menu b {
    font-size:13px
}

.mega-menu small {
    font-size:10px;
    color:var(--muted);
    margin-top:2px
}

.header-actions {
    display:flex;
    align-items:center;
    gap:18px
}

.login-link {
    text-decoration:none;
    font-size:14px;
    font-weight:500
}

.login-link:hover {
    color:var(--green)
}

.mobile-toggle {
    display:none;
    border:0;
    background:none
}

.mobile-toggle span {
    display:block;
    width:25px;
    height:2px;
    background:var(--ink);
    margin:5px 0
}

/* ==============================
   Buttons & small UI elements
   ============================== */
.btn {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:50px;
    padding:0 27px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    border:1px solid transparent;
    transition:.18s
}

.btn:hover {
    transform:translateY(-1px)
}

.btn-green {
    background:var(--green);
    color:#fff
}

.btn-green:hover {
    background:var(--green2)
}

.btn-header {
    min-height:44px;
    padding:0 22px
}

.btn-white {
    background:#fff;
    color:var(--ink)
}

.btn-ghost-white {
    border-color:rgba(255,255,255,.5);
    color:#fff
}

.btn-ghost-white:hover {
    background:#fff;
    color:var(--green2)
}

.overline {
    display:block;
    font-size:11px;
    font-weight:700;
    letter-spacing:.14em;
    color:var(--green);
    text-transform:uppercase;
    margin-bottom:17px
}

.overline.light {
    color:rgba(255,255,255,.78)
}

.plain-arrow {
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    font-size:14px;
    font-weight:600
}

.plain-arrow b {
    color:var(--green);
    font-size:18px;
    transition:.18s
}

.plain-arrow:hover b {
    transform:translateX(4px)
}

/* ==============================
   Homepage / marketing sections
   ============================== */
.marketing-hero {
    padding:74px 0 80px;
    background:linear-gradient(#fff,#fbfcfb);
    overflow:hidden
}

.hero-grid {
    display:grid;
    grid-template-columns:1.03fr .97fr;
    align-items:center;
    gap:55px
}

.hero-copy {
    padding:30px 0
}

.hero-copy h1 {
    font-size:59px;
    line-height:1.09;
    letter-spacing:-.04em;
    font-weight:600;
    margin:0 0 23px
}

.hero-copy h1 em {
    font-style:normal;
    color:var(--green)
}

.hero-copy>p {
    font-size:18px;
    line-height:1.75;
    color:#62686a;
    margin:0 0 34px;
    max-width:650px
}

.hero-actions {
    display:flex;
    align-items:center;
    gap:28px;
    margin-bottom:40px
}

.hero-stats {
    display:flex;
    gap:43px;
    border-top:1px solid var(--line);
    padding-top:29px;
    max-width:535px
}

.hero-stats div {
    display:flex;
    flex-direction:column
}

.hero-stats strong {
    font-size:24px;
    line-height:1
}

.hero-stats span {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#7e8481;
    margin-top:8px
}

.hero-art {
    position:relative;
    min-height:520px;
    display:flex;
    align-items:center;
    justify-content:center
}

.art-circle {
    position:absolute;
    width:465px;
    height:465px;
    border-radius:50%;
    background:#eff8f0;
    right:6%;
    top:4%
}

.hero-image {
    width:535px;
    position:relative;
    z-index:2
}

.float-card {
    position:absolute;
    z-index:3;
    background:#fff;
    display:flex;
    align-items:center;
    gap:12px;
    min-width:180px;
    padding:13px 16px;
    border-radius:9px;
    box-shadow:0 15px 38px rgba(25,37,28,.14)
}

.float-card small {
    display:block;
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#858b87
}

.float-card b {
    font-size:12px
}

.float-card i {
    width:11px;
    height:11px;
    background:var(--green);
    border-radius:50%;
    box-shadow:0 0 0 5px var(--green-soft)
}

.fc-one {
    right:-5px;
    top:70px
}

.fc-two {
    left:0;
    bottom:52px
}

.mini-api {
    width:34px;
    height:34px;
    background:var(--green-soft);
    color:var(--green2);
    display:grid;
    place-items:center;
    border-radius:6px;
    font-size:10px;
    font-weight:700
}

.statement {
    padding:80px 0;
    border-top:1px solid #f0f1f0;
    border-bottom:1px solid var(--line)
}

.statement-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:90px;
    align-items:end
}

.statement h2,.section-title h2,.env-grid h2 {
    font-size:39px;
    line-height:1.23;
    letter-spacing:-.025em;
    margin:0;
    font-weight:600
}

.statement-grid>p {
    color:var(--muted);
    font-size:16px;
    margin:0
}

.section {
    padding:104px 0
}

.section.soft {
    background:var(--soft)
}

.section-title {
    max-width:760px;
    margin-bottom:48px
}

.section-title.center {
    text-align:center;
    margin-left:auto;
    margin-right:auto
}

.section-title>p {
    color:var(--muted);
    font-size:16px
}

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

.marketing-cards article {
    position:relative;
    border:1px solid var(--line);
    border-radius:11px;
    padding:33px 30px;
    min-height:356px;
    transition:.18s
}

.marketing-cards article:hover {
    transform:translateY(-4px);
    box-shadow:var(--shadow);
    border-color:#d7e6d9
}

.marketing-cards img {
    width:56px;
    height:56px;
    object-fit:contain;
    margin-bottom:25px
}

.marketing-cards .num {
    position:absolute;
    right:23px;
    top:22px;
    font-size:11px;
    color:#c4cac6;
    font-weight:700
}

.marketing-cards h3 {
    font-size:21px;
    margin:0 0 13px
}

.marketing-cards p {
    font-size:13px;
    color:var(--muted);
    min-height:105px
}

.marketing-cards code {
    font-size:11px;
    background:#f1f4f1;
    padding:2px 5px;
    border-radius:4px
}

.env-grid {
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:86px;
    align-items:center
}

.env-grid>div:first-child>p {
    color:var(--muted);
    font-size:16px
}

.no-customer {
    display:flex;
    flex-direction:column;
    background:#fff;
    border-left:3px solid var(--green);
    padding:19px 22px;
    margin-top:29px
}

.no-customer b {
    font-size:14px
}

.no-customer span {
    font-size:12px;
    color:var(--muted)
}

.env-cards {
    display:grid;
    gap:17px
}

.env-cards article {
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    padding:27px 28px
}

.env-cards h3 {
    font-size:19px;
    margin:11px 0
}

.env-cards code {
    display:block;
    background:#f3f7f3;
    color:#296b34;
    padding:10px 11px;
    border-radius:5px;
    font:12px ui-monospace,monospace;
    word-break:break-all
}

.env-cards p {
    font-size:12px;
    color:var(--muted);
    margin-bottom:0
}

.pill {
    display:inline-flex;
    background:var(--green-soft);
    color:#267f35;
    padding:5px 10px;
    border-radius:20px;
    font-size:9px;
    letter-spacing:.08em;
    text-transform:uppercase;
    font-weight:700
}

.pill.gray {
    background:#edf0ee;
    color:#4b514e
}

.cap-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px
}

.cap-grid>a {
    display:block;
    text-decoration:none;
    border:1px solid var(--line);
    border-radius:11px;
    padding:32px;
    min-height:242px;
    transition:.18s
}

.cap-grid>a:hover {
    transform:translateY(-3px);
    box-shadow:var(--shadow)
}

.cap-grid>a>span {
    font-size:11px;
    color:var(--green);
    font-weight:700
}

.cap-grid h3 {
    font-size:24px;
    margin:19px 0 9px
}

.cap-grid p {
    color:var(--muted);
    margin-bottom:25px
}

.cap-grid b {
    font-size:12px
}

.cap-grid .green-card {
    background:var(--green);
    border-color:var(--green);
    color:#fff
}

.cap-grid .green-card>span,.cap-grid .green-card p {
    color:rgba(255,255,255,.8)
}

/* ==============================
   Documentation pages
   ============================== */
.docs-page {
    padding-top:58px;
    padding-bottom:92px
}

.docs-page>.hero {
    background:var(--soft);
    border-radius:13px;
    padding:54px 57px;
    margin-bottom:68px;
    position:relative;
    overflow:hidden
}

.docs-page>.hero:after {
    content:'';
    position:absolute;
    right:-80px;
    top:-125px;
    width:310px;
    height:310px;
    border:68px solid rgba(58,181,74,.08);
    border-radius:50%
}

.docs-page .hero .eyebrow {
    display:block;
    color:var(--green);
    font-size:11px;
    font-weight:700;
    letter-spacing:.14em;
    margin-bottom:15px
}

.docs-page .hero h1 {
    position:relative;
    z-index:1;
    font-size:45px;
    line-height:1.18;
    letter-spacing:-.03em;
    max-width:850px;
    font-weight:600;
    margin:0 0 17px
}

.docs-page .hero>p {
    position:relative;
    z-index:1;
    color:var(--muted);
    font-size:16px;
    max-width:800px
}

.docs-page .hero-actions {
    position:relative;
    z-index:1;
    display:flex;
    flex-wrap:wrap;
    gap:11px;
    margin-top:27px
}

.docs-page .hero-actions .btn,.docs-page .btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 20px;
    border:1px solid #d9ddda;
    border-radius:6px;
    text-decoration:none;
    background:#fff;
    font-size:12px;
    font-weight:600
}

.docs-page .btn.primary {
    background:var(--green);
    color:#fff;
    border-color:var(--green)
}

.docs-page h2 {
    font-size:31px;
    line-height:1.27;
    letter-spacing:-.02em;
    font-weight:600;
    margin:60px 0 15px;
    scroll-margin-top:115px
}

.docs-page h3 {
    font-size:20px;
    line-height:1.35;
    margin:25px 0 10px
}

.docs-page p {
    color:#575d60
}

.docs-page .section-intro {
    font-size:16px;
    max-width:830px;
    color:var(--muted)
}

.grid {
    display:grid;
    gap:19px
}

.grid.three {
    grid-template-columns:repeat(3,1fr)
}

.grid.two {
    grid-template-columns:repeat(2,1fr)
}

.card {
    border:1px solid var(--line);
    border-radius:10px;
    padding:26px;
    background:#fff
}

.card p {
    font-size:13px
}

.card a {
    color:#278137;
    text-decoration:none;
    font-size:12px;
    font-weight:600
}

.card-number {
    width:34px;
    height:34px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--green-soft);
    color:#247b32;
    font-size:11px;
    font-weight:700
}

.small {
    font-size:12px
}

.muted {
    color:#858b8e
}

.callout {
    padding:19px 21px;
    margin:23px 0;
    border-left:3px solid #b9c1ba;
    border-radius:7px;
    background:#f7f9f7
}

.callout.info {
    background:var(--green-soft);
    border-left-color:var(--green)
}

.callout.warning {
    background:#fff7e6;
    border-left-color:#e2ad31
}

.callout.danger {
    background:#fff0ef;
    border-left-color:#d95d56
}

.callout-title {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:700
}

.callout p {
    font-size:13px;
    margin:0
}

.table-wrap {
    overflow:auto;
    border:1px solid var(--line);
    border-radius:8px;
    margin:21px 0 31px
}

table {
    width:100%;
    border-collapse:collapse;
    background:#fff
}

th {
    background:#f6f7f6;
    text-align:left;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.07em;
    color:#626967;
    padding:14px 16px;
    border-bottom:1px solid var(--line)
}

td {
    font-size:13px;
    padding:15px 16px;
    border-bottom:1px solid #eceeec;
    vertical-align:top
}

tr:last-child td {
    border-bottom:0
}

.inline-code,code {
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace
}

.inline-code {
    background:#f1f4f1;
    color:#2d6636;
    padding:2px 6px;
    border-radius:4px;
    font-size:.9em
}

pre {
    position:relative;
    background:#242825;
    color:#edf3ee;
    border-radius:8px;
    padding:22px 24px;
    overflow:auto;
    font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    white-space:pre
}

.copy-button {
    position:absolute;
    right:9px;
    top:9px;
    background:#333a35;
    border:1px solid rgba(255,255,255,.2);
    color:#e8eee9;
    border-radius:4px;
    font-size:9px;
    padding:5px 8px;
    cursor:pointer
}

.endpoint {
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    margin:13px 0
}

.endpoint summary {
    list-style:none;
    background:#fbfcfb;
    padding:16px 18px;
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    font-size:13px;
    font-weight:600
}

.endpoint summary::-webkit-details-marker {
    display:none
}

.endpoint summary:after {
    content:'+';
    margin-left:auto;
    color:var(--green);
    font-size:20px;
    font-weight:400
}

.endpoint[open] summary:after {
    content:'−'
}

.endpoint-body {
    padding:8px 21px 24px;
    border-top:1px solid var(--line)
}

.endpoint-body p {
    font-size:13px
}

.endpoint-path {
    font:12px ui-monospace,monospace
}

.method {
    display:inline-flex;
    justify-content:center;
    min-width:48px;
    padding:4px 7px;
    border-radius:4px;
    font-size:9px;
    font-weight:700
}

.method.get {
    background:#e6f4e8;
    color:#247632
}

.method.post {
    background:#e9eef7;
    color:#3d5d91
}

.step {
    /*display:grid;
    grid-template-columns:42px 1fr;*/
    gap:16px;
    margin:27px 0
}

.step-number {
    width:38px;
    height:38px;
    border-radius:50%;
    background:var(--green);
    color:#fff;
    display:grid;
    place-items:center;
    font-size:11px;
    font-weight:700
}

.step h3 {
    margin:4px 0 4px
}

.step p {
    margin:0
}

.screenshot {
    width:100%;
    border:1px solid var(--line);
    border-radius:9px;
    box-shadow:0 12px 34px rgba(23,31,25,.08);
    margin:24px 0
}

/* ==============================
   CTA band & footer
   ============================== */
.ready-band {
    background:var(--green);
    color:#fff;
    padding:65px 0
}

.ready-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:45px
}

.ready-row h2 {
    font-size:34px;
    line-height:1.25;
    max-width:700px;
    margin:0
}

.ready-actions {
    display:flex;
    gap:11px;
    flex:none
}

.site-footer {
    background:#f4f5f4;
    padding:65px 0 18px
}

.footer-cols {
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:55px;
    padding-bottom:48px
}

.footer-about img {
    width:180px;
    margin-bottom:19px
}

.footer-about p {
    font-size:12px;
    color:#6f7572;
    max-width:300px
}

.footer-cols>div:not(.footer-about) {
    display:flex;
    flex-direction:column
}

.footer-cols h4 {
    font-size:11px;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin:2px 0 17px
}

.footer-cols a {
    text-decoration:none;
    color:#686e6b;
    font-size:12px;
    margin:6px 0
}

.footer-cols a:hover {
    color:var(--green)
}

.footer-bottom {
    border-top:1px solid #dde0dd;
    padding-top:17px;
    display:flex;
    justify-content:space-between;
    color:#8b918e;
    font-size:9px
}

/* ==============================
   Responsive styles
   ============================== */
@media(max-width:1100px) {
    .main-nav {
        gap:19px
    }
    .main-nav>a,.nav-group>button {
        font-size:12px
    }
    .hero-copy h1 {
        font-size:50px
    }
    .hero-grid {
        gap:25px
    }
    .marketing-cards {
        grid-template-columns:1fr 1fr
    }
    .grid.three {
        grid-template-columns:1fr 1fr
    }
}

@media(max-width:900px) {
    .site-header {
        height:78px
    }
    .header-row {
        justify-content:space-between
    }
    .mobile-toggle {
        display:block;
        order:3
    }
    .header-actions {
        margin-left:auto
    }
    .login-link {
        display:none
    }
    .main-nav {
        display:none;
        position:absolute;
        left:0;
        right:0;
        top:78px;
        height:auto;
        background:#fff;
        box-shadow:0 15px 30px rgba(0,0,0,.08);
        padding:14px 24px 23px;
        flex-direction:column;
        align-items:stretch;
        gap:0
    }
    .main-nav.open {
        display:flex
    }
    .main-nav>a,.nav-group>button {
        display:block;
        width:100%;
        text-align:left;
        padding:11px 0
    }
    .main-nav>a:after,.nav-group>button:after {
        display:none
    }
    .nav-group {
        height:auto;
        display:block
    }
    .mega-menu {
        position:static;
        width:100%;
        box-shadow:none;
        border:0;
        display:none;
        opacity:1;
        visibility:visible;
        transform:none;
        padding:3px 0 6px 12px
    }
    .nav-group.open .mega-menu {
        display:block
    }
    .hero-grid,.statement-grid,.env-grid {
        grid-template-columns:1fr
    }
    .hero-art {
        min-height:420px
    }
    .statement-grid {
        gap:24px
    }
    .cap-grid {
        grid-template-columns:1fr
    }
    .footer-cols {
        grid-template-columns:1fr 1fr
    }
    .ready-row {
        flex-direction:column;
        align-items:flex-start
    }
    .grid.two,.grid.three {
        grid-template-columns:1fr 1fr
    }
}

@media(max-width:620px) {
    .page,.wide {
        padding-left:20px;
        padding-right:20px
    }
    .header-actions .btn {
        display:none
    }
    .brand img {
        width:154px
    }
    .marketing-hero {
        padding:45px 0 55px
    }
    .hero-copy h1 {
        font-size:39px
    }
    .hero-copy>p {
        font-size:15px
    }
    .hero-actions {
        flex-direction:column;
        align-items:flex-start;
        gap:18px
    }
    .hero-stats {
        gap:22px
    }
    .hero-art {
        min-height:330px
    }
    .art-circle {
        width:300px;
        height:300px
    }
    .hero-image {
        width:360px
    }
    .float-card {
        display:none
    }
    .statement {
        padding:54px 0
    }
    .statement h2,.section-title h2,.env-grid h2 {
        font-size:30px
    }
    .section {
        padding:70px 0
    }
    .marketing-cards {
        grid-template-columns:1fr
    }
    .docs-page {
        padding-top:30px
    }
    .docs-page>.hero {
        padding:34px 24px;
        margin-bottom:47px
    }
    .docs-page .hero h1 {
        font-size:34px
    }
    .docs-page h2 {
        font-size:26px;
        margin-top:47px
    }
    .grid.two,.grid.three {
        grid-template-columns:1fr
    }
    .ready-band {
        padding:47px 0
    }
    .ready-row h2 {
        font-size:27px
    }
    .ready-actions {
        flex-direction:column;
        width:100%
    }
    .footer-cols {
        grid-template-columns:1fr;
        gap:27px
    }
    .footer-bottom {
        flex-direction:column;
        gap:5px
    }
}
