:root {
    --navy:        #0b1726;
    --navy-2:      #0f1f33;
    --navy-deep:   #07111c;
    --orange:      #f97316;
    --orange-soft: #ffe6d4;
    --orange-dark: #ea580c;
    --blue:        #2563eb;
    --blue-dark:   #1d4ed8;
    --green:       #15734a;
    --green-soft:  #d6f0e1;
    --ink:         #0f172a;
    --ink-soft:    #475569;
    --muted:       #64748b;
    --line:        #e5e7eb;
    --bg:          #f5f7fa;
    --card:        #ffffff;
    --radius:      14px;
    --radius-lg:   22px;
    --shadow-sm:   0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
    --shadow:      0 10px 30px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
    --shadow-lg:   0 30px 60px rgba(15,23,42,.18), 0 8px 20px rgba(15,23,42,.10);
    --maxw:        1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;     /* allow hero image to bleed past the right edge without scrollbar */
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== NAV (always white) ===== */
.site-nav {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand--footer .brand-logo { height: 28px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links .nav-cta {
    background: var(--orange);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s;
}
.nav-links .nav-cta:hover { background: var(--orange-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 0; cursor: pointer;
    transition: transform .15s ease, background .2s, box-shadow .2s;
    text-decoration: none;
    line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,.35); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.30); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }
.btn .arrow { width: 16px; height: 16px; }

/* ===== HERO (dark) ===== */
.hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 90px 0 40px;
    position: relative;
    overflow: visible;
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,.18), transparent 70%);
    pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 880px; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 20px; }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.78); margin: 0 0 32px; max-width: 540px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    z-index: 3;
}
.hero-visual img.shot {
    width: 100%;            /* fills the fixed-width image column (880px) */
    max-width: 100%;
    height: auto;
    margin-bottom: -160px;  /* bleed into the next section */
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.35));
}
/* Push the next section down so the bleed sits inside it instead of "floating" over content */
.hero + .section { padding-top: 180px; }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section--bg { background: var(--bg); }
.section--dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }

/* ===== FEATURE GRID (4-up) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card);
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card .icon-wrap {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    background: var(--orange-soft);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--orange);
}
.feature-card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* ===== HOW IT WORKS ===== */
.steps { display: flex; flex-direction: column; gap: 60px; max-width: 980px; margin: 0 auto; }
.step { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.step-label { font-weight: 700; font-size: 18px; color: var(--ink); }
.step-label .num { display: inline-block; padding: 4px 14px; background: var(--orange); color: #fff; border-radius: 999px; font-size: 13px; margin-right: 10px; }
.step-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}
.step-card img { border-radius: 10px; width: 100%; }
.steps-cta { text-align: center; margin-top: 50px; }

/* ===== SMTP & API block ===== */
.smtp-block {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.smtp-block h2 { font-size: 32px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.5px; }
.smtp-block p { color: rgba(255,255,255,.75); margin: 0 0 28px; }
.smtp-cards { display: flex; flex-direction: column; gap: 16px; }
.smtp-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    padding: 22px;
    border-radius: var(--radius);
}
.smtp-card .tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.smtp-card h4 { margin: 0 0 6px; font-size: 16px; }
.smtp-card p { font-size: 14px; color: rgba(255,255,255,.7); margin: 0; }

/* ===== TEAMS ROW ===== */
.teams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; }
.team-card .icon-wrap { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--orange-soft); color: var(--orange); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.team-card h3 { margin: 0 0 8px; font-size: 17px; }
.team-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== FEATURES PAGE — alternating rows ===== */
.feature-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse { grid-template-columns: 1.2fr 1fr; }
.feature-row.reverse .feature-row-text { order: 2; }
.feature-row-text h3 { font-size: 26px; font-weight: 700; margin: 0 0 12px; letter-spacing: -.3px; }
.feature-row-text p { color: var(--muted); margin: 0; font-size: 15px; }
.feature-row-visual img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

.cta-bar { background: var(--navy); color: #fff; padding: 60px 0; text-align: center; }
.cta-bar h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.5px; }
.cta-bar p { color: rgba(255,255,255,.7); margin: 0 0 24px; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: -80px auto 0; position: relative; z-index: 2; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { background: var(--orange-soft); border-color: transparent; transform: translateY(-12px); box-shadow: var(--shadow); }
.price-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.price-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-card ul li { padding: 6px 0; font-size: 14px; color: var(--ink-soft); }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price-card .price .amount { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.price-card .price .per { color: var(--muted); font-size: 14px; }

.faq { max-width: 800px; margin: 0 auto; }
.faq h2 { text-align: center; margin: 0 0 36px; font-size: 28px; font-weight: 800; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; color: var(--muted); font-size: 18px; transition: transform .2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ===== AUTH FORMS ===== */
.auth-wrap {
    min-height: calc(100vh - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 24px;
    background: var(--bg);
}
.auth-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.auth-card h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.3px; }
.auth-card .auth-sub { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
    transition: border .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--orange); font-weight: 600; }

.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.alert--err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert--ok  { background: var(--green-soft); color: var(--green); border: 1px solid #bbf7d0; }

/* ===== CODE / TABS / TABLES ===== */
.code-card {
    background: #0b1220;
    color: #e2e8f0;
    border-radius: var(--radius);
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.code-tabs { display: flex; gap: 0; padding: 0 8px; border-bottom: 1px solid #1e293b; background: #0a0f1c; }
.code-tab {
    background: none; border: 0; color: #94a3b8; padding: 12px 16px;
    font-family: inherit; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent;
}
.code-tab.active { color: #fff; border-bottom-color: var(--orange); }
.code-pane { display: none; padding: 22px; overflow-x: auto; }
.code-pane.active { display: block; }
.code-pane pre { margin: 0; font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13px; line-height: 1.6; color: #e2e8f0; }
.code-pane .k { color: #93c5fd; }
.code-pane .s { color: #fcd34d; }
.code-pane .c { color: #64748b; font-style: italic; }
.code-pane .n { color: #c4b5fd; }

.config-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.config-table th, .config-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.config-table th { background: var(--bg); color: var(--ink-soft); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.config-table tr:last-child td { border-bottom: 0; }
.config-table code { background: var(--bg); padding: 4px 8px; border-radius: 6px; font-size: 13px; color: var(--ink); }

.status-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status-list .row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.status-list .row:last-child { border-bottom: 0; }
.status-list .name { font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pill--ok { background: var(--green-soft); color: var(--green); }
.pill--ok .dot { background: var(--green); }
.pill--warn { background: #fef3c7; color: #92400e; }
.pill--warn .dot { background: #d97706; }
.pill--down { background: #fee2e2; color: #991b1b; }
.pill--down .dot { background: #dc2626; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 36px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange-soft); }
.doc-card .icon-wrap { width: 44px; height: 44px; background: var(--orange-soft); color: var(--orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.doc-card h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.doc-card p { color: var(--muted); font-size: 14px; margin: 0; }

@media (max-width: 720px) {
    .doc-grid { grid-template-columns: 1fr; }
    .config-table th, .config-table td { padding: 10px 12px; font-size: 13px; }
}

/* ===== FOOTER ===== */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 60px 0 0; color: var(--ink-soft); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin: 14px 0 18px; max-width: 320px; }
.footer-brand .brand--footer { color: var(--ink); }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: var(--muted); transition: background .2s, color .2s; }
.socials a:hover { background: var(--ink); color: #fff; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { margin-top: 50px; padding: 18px 0; background: var(--navy); color: rgba(255,255,255,.6); font-size: 13px; text-align: center; }
.footer-bottom .container { padding: 0 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero { padding: 70px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 640px; margin: 0 auto; }
    .hero-visual img.shot { width: 100%; margin-bottom: -40px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .step { grid-template-columns: 1fr; gap: 16px; }
    .smtp-block { grid-template-columns: 1fr; padding: 40px 28px; }
    .teams-grid, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid { margin-top: -40px; }
    .price-card.featured { transform: none; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; }
    .feature-row.reverse .feature-row-text { order: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
        display: none;
    }
    .site-nav--light .nav-links { background: #fff; border-bottom: 1px solid var(--line); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 0; width: 100%; }
    .nav-links .nav-cta { margin-top: 8px; align-self: flex-start; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
