/* ============================================================
   bigopt.css — Shared styles for BigOpt services & about pages
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&family=Manrope:wght@400;500;600;700&display=swap");

/* ── TOKENS ── */
:root {
    --navy: #0a1628;
    --navy2: #0f2040;
    --blue: #1255cc;
    --blue-light: #1e6ef5;
    --green: #00c98d;
    --green-dark: #00a874;
    --gold: #f5a623;
    --red: #e84040;
    --rose: #e74c3c;
    --white: #ffffff;
    --gray: #f0f4fb;
    --gray2: #dde5f4;
    --text: #1a2540;
    --muted: #6b7fa3;
    --border: rgba(18, 85, 204, 0.15);
    --shadow: 0 8px 40px rgba(10, 22, 40, 0.12);
    --shadow-hover: 0 20px 60px rgba(10, 22, 40, 0.22);
    --r: 18px;
}

/* ── RESET ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #f7faff;
    color: var(--text);
    overflow-x: hidden;
}

/* ── TYPOGRAPHY HELPERS ── */
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 3.5vw, 36px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.25;
}

.section-title.light {
    color: white;
}

.section-sub {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 580px;
    margin-top: 12px;
}

.section-sub.light {
    color: rgba(255, 255, 255, .55);
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── HERO (shared base) ── */
.hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 80px 24px 100px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(18, 85, 204, .55) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0, 201, 141, .15) 0%, transparent 60%);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 201, 141, .15);
    border: 1px solid rgba(0, 201, 141, .4);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
    position: relative;
}

.hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 5vw, 52px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    max-width: 820px;
    margin: 0 auto 20px;
    position: relative;
}

.hero h1 span {
    color: var(--green);
}

.hero > p {
    font-size: 17px;
    color: rgba(255, 255, 255, .65);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    position: relative;
}

.hero-stat strong {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.hero-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .5px;
    margin-top: 4px;
    display: block;
}

/* ── HOW IT WORKS (shared base) ── */
.how {
    background: var(--navy2);
    padding: 64px 24px;
}

.how-inner {
    max-width: 900px;
    margin: 0 auto;
}

.how h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    padding: 0 24px;
    position: relative;
    text-align: center;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 24px;
    color: rgba(255, 255, 255, .2);
    font-size: 22px;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: white;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.6;
}

/* ── TELEGRAM BLOCK (shared) ── */
.telegram {
    background: var(--gray);
    padding: 80px 24px;
}

.telegram-inner {
    max-width: 920px;
    margin: 0 auto;
    background: var(--navy);
    border-radius: 24px;
    padding: 56px 52px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 44px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 22, 40, .25);
}

@media (max-width: 680px) {
    .telegram-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 28px;
        gap: 28px;
    }

    .telegram-inner .section-label {
        text-align: center;
    }
}

.telegram-inner::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 85, 204, .25) 0%, transparent 70%);
}

.tg-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ED9, #1a8dc1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 30px rgba(34, 158, 217, .4);
}

.tg-right {
    position: relative;
    z-index: 1;
}

.tg-right .section-label {
    text-align: left;
}

.tg-right h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(17px, 2.5vw, 24px);
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 12px;
}

.tg-right p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .55);
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-tg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #229ED9, #1a8dc1);
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(34, 158, 217, .4);
    transition: transform .15s, box-shadow .15s;
}

.btn-tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 158, 217, .5);
}

/* ── SHARED DARK SECTION (buyers-db / marketing-section share pattern) ── */
.dark-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0d1e3a 100%);
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
}

.dark-section::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 85, 204, .2) 0%, transparent 70%);
}

/* ── SHARED GRID HELPERS ── */
.two-col {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step:not(:last-child)::after {
        display: none;
    }
}

/* ── DB-CARDS (buyers db pattern used on both pages) ── */
.db-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 22px 20px;
    transition: background .2s, border-color .2s;
}

.db-card:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(0, 201, 141, .4);
}

.db-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
    margin-bottom: 8px;
}

.db-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.db-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    line-height: 1.5;
}

/* ── CTA (blue gradient, shared) ── */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, #0d40a0 100%);
    padding: 72px 24px;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(20px, 3.5vw, 36px);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: white;
    color: var(--blue);
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.btn-cta-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, .4);
    padding: 14px 34px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s;
}

.btn-cta-ghost:hover {
    border-color: white;
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    text-align: center;
    padding: 28px;
    color: rgba(255, 255, 255, .3);
    font-size: 13px;
}

footer a {
    color: var(--green);
    text-decoration: none;
}

/* ── SHARED FORM ELEMENTS ── */
.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fafbff;
    outline: none;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aab5cc;
}

.form-note {
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    margin-top: 5px;
}

/* ── SHARED BUTTONS ── */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 6px 22px rgba(18, 85, 204, .35);
    transition: transform .15s, box-shadow .15s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(18, 85, 204, .45);
}

.btn-hero-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
    padding: 17px 38px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 201, 141, .35);
    transition: transform .15s, box-shadow .15s;
    display: inline-block;
}

.btn-hero-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 201, 141, .45);
}

.btn-hero-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, .3);
    padding: 15px 36px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s;
    display: inline-block;
}

.btn-hero-ghost:hover {
    border-color: white;
}

.hero-cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ── SHARED DARK FEATURE-GRID (mkt-features pattern) ── */
.mkt-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .mkt-features {
        grid-template-columns: 1fr;
    }
}

.mkt-feature {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: background .2s, border-color .2s;
}

.mkt-feature:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(0, 201, 141, .25);
}

.mkt-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.mkt-feature strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.mkt-feature span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .4);
    line-height: 1.5;
}

/* ── TAG / BADGE ── */
.tag-trusted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 201, 141, .1);
    border: 1px solid rgba(0, 201, 141, .3);
    color: var(--green-dark);
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.card.featured .tag-trusted {
    background: rgba(0, 201, 141, .2);
    border-color: rgba(0, 201, 141, .5);
    color: var(--green);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

.modal .modal-content {
    position: relative;
    padding: 1em 2em;
    margin: 1em;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fafbff;
    outline: none;
    transition: border-color .2s;
    width: 600px;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    overflow: auto;
}

.modal .modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal .modal-body {
    display: block;
    width: 100%;
    margin: 10px 0 30px;
}

.modal .modal-body a {
    color: var(--green);
    text-decoration: none;
}
.modal .modal-body a:hover {
    text-decoration: underline;
}

.modal .modal-close {
    font-size: 36px;
    text-decoration: none;
}

.modal .error {
    color: var(--rose);
    text-align: center;
    visibility: hidden;
}

.left-logo-text-img {
    margin-left: 10px;
}