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

:root {
    --bg: #07111f;
    --bg-soft: #0d182b;
    --bg-soft-2: #10223c;

    --panel: rgba(10, 21, 36, 0.72);
    --panel-strong: rgba(10, 21, 36, 0.84);
    --panel-border: rgba(255, 255, 255, 0.11);
    --panel-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);

    --text: #eff6ff;
    --muted: #b6c6d9;
    --line: rgba(255, 255, 255, 0.11);

    --accent: #66e3c4;
    --accent-2: #6aa2ff;
    --accent-3: rgba(255, 223, 120, 0.75);
    --danger: #ff7782;

    --max: 1180px;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;

    --hero-height: clamp(250px, 54vw, 520px);
}

/* =========================
   BASE
========================= */
html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(102, 227, 196, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(106, 162, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #091223 0%, #07111f 100%);
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

a {
    color: inherit;
}

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

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* =========================
   PAGE WRAP
========================= */
.page-shell {
    position: relative;
    isolation: isolate;
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: clamp(16px, 2vw, 28px) clamp(14px, 2vw, 20px) 42px;
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(9, 18, 35, 0.10) 0%, rgba(7, 17, 31, 0) 30%),
        linear-gradient(180deg, rgba(9, 18, 35, 0.12) 0%, rgba(7, 17, 31, 0.55) 100%);
}

/* =========================
   HERO
========================= */
.hero {
    margin-bottom: clamp(26px, 4vw, 38px);
}

.hero__frame {
    display: grid;
    gap: clamp(18px, 3vw, 28px);
}

.hero__media {
    position: relative;
    min-height: var(--hero-height);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #0b1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero__image {
    width: 100%;
    height: 100%;
    min-height: var(--hero-height);
    object-fit: cover;
    object-position: center center;
}

.hero__glow,
.hero__fade,
.hero__divider {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.hero__glow {
    bottom: 12%;
    height: 38%;
    background:
        radial-gradient(circle at 50% 100%, rgba(255, 224, 132, 0.22), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(102, 227, 196, 0.18), transparent 54%);
    mix-blend-mode: screen;
}

.hero__fade {
    bottom: 0;
    height: 42%;
    background: linear-gradient(
        180deg,
        rgba(7, 17, 31, 0) 0%,
        rgba(7, 17, 31, 0.08) 24%,
        rgba(7, 17, 31, 0.36) 58%,
        rgba(7, 17, 31, 0.86) 100%
    );
}

.hero__divider {
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.36) 20%,
        rgba(102, 227, 196, 0.75) 50%,
        rgba(255, 255, 255, 0.36) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 -12px 36px rgba(102, 227, 196, 0.18);
}

.hero__content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 14px;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #eafff9;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5.8vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #9fd7ff 42%, #7ef1d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 auto;
    max-width: 60ch;
    color: #d7e4f2;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    justify-content: center;
    margin-bottom: 440px;

}

/* =========================
   LAYOUT
========================= */
.layout {
    display: grid;
    gap: 20px;
    width: min(100%, 980px);
    margin: 0 auto;
}

.layout--single {
    grid-template-columns: minmax(0, 1fr);
}

/* =========================
   PANELS
========================= */
.panel {
    border-radius: var(--radius-xl);
    border: 1px solid var(--panel-border);
    background: var(--panel);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: clamp(18px, 2.4vw, 28px);
}

.panel--secondary {
    background: rgba(10, 21, 36, 0.60);
}

.panel__head {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel h1,
.panel h2,
.panel h3 {
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* =========================
   FORM
========================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label,
.label-like {
    font-size: 0.94rem;
    color: #f1f7ff;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    appearance: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 15px 16px;
    outline: none;
    transition: 150ms border-color ease, 150ms background ease, 150ms transform ease, 150ms box-shadow ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #aec0d1;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.ts-wrapper.single.focus .ts-control {
    border-color: rgba(102, 227, 196, 0.68);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(102, 227, 196, 0.22),
        0 0 0 4px rgba(102, 227, 196, 0.08);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: rgba(255, 119, 130, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 119, 130, 0.16);
}

.error-text {
    min-height: 18px;
    font-size: 0.84rem;
    color: #ffb4bc;
}

/* =========================
   INTEREST BOXES
========================= */
.interest-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.interest-option {
    position: relative;
    display: block;
}

.interest-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.interest-option span {
    display: grid;
    place-items: center;
    min-height: 64px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    text-align: center;
    transition: 150ms ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.interest-option input:checked + span {
    border-color: rgba(102, 227, 196, 0.75);
    background: rgba(102, 227, 196, 0.16);
    color: #d8fff5;
    box-shadow: 0 0 0 1px rgba(102, 227, 196, 0.18) inset;
}

/* =========================
   BUTTONS
========================= */
.submit-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

.submit-row__meta {
    color: var(--muted);
    line-height: 1.65;
}

.btn-primary,
.btn-secondary,
.ghost-link {
    appearance: none;
    border: 0;
    border-radius: 18px;
    padding: 38px 140px;
    font-weight: 800;
    cursor: pointer;
    transition: 160ms transform ease, 160ms opacity ease, 160ms filter ease, 160ms box-shadow ease;
    text-decoration: none;
}

.btn-primary {
    color: #06121f;
    background: linear-gradient(135deg, var(--accent), #7df1d4);
    box-shadow: 0 18px 30px rgba(102, 227, 196, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover,
.ghost-link:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    filter: grayscale(0.2);
}

.btn-secondary,
.ghost-link {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-scroll {
    min-width: 180px;
}

/* =========================
   ALERTS / CARDS
========================= */
.system-alert,
.response-box,
.success-card,
.mini-card,
.empty-state,
.lead-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.system-alert--ok,
.response-box--success {
    border-color: rgba(102, 227, 196, 0.20);
    background: rgba(102, 227, 196, 0.13);
}

.system-alert--error,
.response-box--error {
    border-color: rgba(255, 119, 130, 0.20);
    background: rgba(255, 119, 130, 0.13);
}

.system-alert__title,
.response-box__title,
.success-card__tag {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #dbfdf6;
}

.system-alert ul,
.response-box ul,
.check-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.system-alert__footnote {
    margin-top: 10px;
}

.response-box {
    margin-bottom: 16px;
}

.response-box p {
    margin: 0;
    color: var(--text);
}

.success-card {
    margin-top: 16px;
}

.success-card h3 {
    margin: 0 0 12px;
}

.success-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.success-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.success-item span,
.mini-card__label {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-card + .mini-card {
    margin-top: 12px;
}

.mini-card__value {
    margin-top: 8px;
    font-size: 1.02rem;
    font-weight: 700;
}

.check-list li + li {
    margin-top: 10px;
}

.is-hidden {
    display: none !important;
}

/* =========================
   TABLE / CARDS
========================= */
.table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
    display: none;
}

.lead-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    background: rgba(255, 255, 255, 0.05);
}

.lead-table th,
.lead-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.lead-table th {
    color: #d6e6fb;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-cards {
    display: grid;
    gap: 12px;
}

.lead-card h3 {
    margin: 10px 0 4px;
}

.lead-card p {
    margin: 0 0 12px;
}

.lead-card__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.lead-card dl {
    margin: 0;
    display: grid;
    gap: 8px;
}

.lead-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.lead-card dt {
    color: var(--muted);
}

.lead-card dd {
    margin: 0;
    text-align: right;
}

.empty-state {
    text-align: center;
    padding: 30px 16px;
}

.empty-state h3 {
    margin-top: 0;
}

/* =========================
   PHONE / INPUT FIXES
========================= */
input,
select,
textarea,
button {
    font: inherit;
    font-size: 16px !important;
}

.iti {
    width: 100%;
}

.iti__tel-input,
.iti input {
    width: 100% !important;
}

.ts-wrapper.single .ts-control,
input,
select,
textarea {
    min-height: 58px;
    border-radius: 16px;
    font-size: 16px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.field {
    position: relative;
}

.field:focus-within {
    z-index: 40;
}

.field select {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.field select option {
    background: #0f1b31;
    color: var(--text);
}

.field select:invalid {
    color: #aec0d1;
}

.ts-wrapper {
    position: relative;
    z-index: 1;
}

.ts-wrapper.single .ts-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid transparent !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
    padding: 12px 14px !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ts-wrapper.single .ts-control,
.ts-wrapper.single .ts-control input,
.ts-wrapper.single .ts-control .item,
.ts-wrapper.single .ts-control .single,
.ts-wrapper.single .ts-control .placeholder {
    color: var(--text) !important;
}

.ts-wrapper.single .ts-control .placeholder,
.ts-dropdown .dropdown-input::placeholder {
    color: #aec0d1 !important;
}

.ts-wrapper.single .ts-control .clear-button,
.ts-wrapper.single .ts-control .dropdown-active,
.ts-wrapper.single .ts-control::after {
    color: #d9e6f5 !important;
}

.ts-dropdown,
.ts-dropdown.form-control,
.ts-dropdown.single {
    z-index: 9999 !important;
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(12, 23, 42, 0.98) !important;
    color: var(--text) !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ts-dropdown .dropdown-input-wrap {
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}

.ts-dropdown .dropdown-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text) !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.ts-dropdown .ts-dropdown-content {
    padding: 0 !important;
}

.ts-dropdown .optgroup-header,
.ts-dropdown .no-results,
.ts-dropdown .create,
.ts-dropdown .option {
    background: transparent !important;
    color: var(--text) !important;
}

.ts-dropdown .option,
.ts-dropdown .create,
.ts-dropdown .no-results {
    padding: 12px 14px !important;
    border-radius: 12px;
}

.ts-dropdown .option + .option {
    margin-top: 2px;
}

.ts-dropdown .active,
.ts-dropdown .option:hover,
.ts-dropdown .create:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.ts-dropdown .selected,
.ts-dropdown .option.selected {
    background: rgba(102, 227, 196, 0.14) !important;
    color: #e8fff9 !important;
}

.iti__country-list {
    z-index: 9999 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(12, 23, 42, 0.98) !important;
    color: var(--text) !important;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36) !important;
}

.iti__country,
.iti__country-name,
.iti__dial-code,
.iti__search-input,
.iti__selected-flag {
    color: var(--text) !important;
}

.iti__country.iti__highlight,
.iti__country:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.iti__dial-code {
    color: #a9bfd5 !important;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    width: min(100%, 980px);
    margin: 28px auto 0;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-footer p,
.site-footer small {
    margin: 0;
}

.site-footer p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: var(--text);
    margin-bottom: 6px;
}

/* =========================
   ANIMATIONS / HELPERS
========================= */
#leadPanel {
    scroll-margin-top: 24px;
    
}

body.js-ready .panel--primary {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

body.js-ready .panel--primary.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 640px) {
    .interest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 860px) {
    :root {
        --hero-height: clamp(340px, 42vw, 560px);
    }

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

    .submit-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .submit-row__meta {
        max-width: 70%;
    }

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

    .table-wrap {
        display: block;
    }

    .mobile-cards {
        display: none;
    }
}

@media (max-width: 680px) {
    .panel,
    .hero__media {
        border-radius: var(--radius-lg);
    }

    .panel__head {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer {
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.js-ready .panel--primary {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.is-hidden {
    display: none !important;
}

.btn-primary.is-success {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.btn-primary.is-success:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.btn-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.success-card {
    scroll-margin-top: 24px;
}