:root {
    --bg: #f5f7fb;
    --bg-soft: #eef3fb;
    --card: #ffffff;
    --line: rgba(3, 17, 45, 0.10);
    --text: #16233b;
    --muted: #667085;
    --yellow: #f2c40f;
    --yellow-strong: #ffd84b;
    --red: #cb1c13;
    --blue: #0a1ca8;
    --green: #25d366;
    --shadow: 0 18px 45px rgba(3, 17, 45, 0.08);
    --header-bg: #ffffff;
    --topbar-bg: #071a4a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(3, 17, 45, 0.08);
    box-shadow: 0 8px 24px rgba(3, 17, 45, 0.05);
}

.topbar {
    background: var(--topbar-bg);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.topbar-wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-left span,
.topbar-right a {
    color: rgba(255, 255, 255, 0.88);
}

.topbar-right a:hover {
    color: #ffffff;
}

.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img,
.footer-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(3, 17, 45, 0.10);
    flex-shrink: 0;
}

.brand strong,
.footer-brand strong {
    display: block;
    color: #03112d;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.brand span,
.footer-brand span {
    display: block;
    color: #5f6b85;
    font-size: 0.84rem;
    font-weight: 500;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    color: #24324a;
    font-weight: 600;
    font-size: 0.97rem;
    padding: 10px 0;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
    color: #0a1ca8;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #f2c40f;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid rgba(3, 17, 45, 0.12);
    color: #03112d;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0a1ca8;
    color: #ffffff;
    border: 1px solid #0a1ca8;
    border-radius: 10px;
    padding: 14px 22px;
    font-weight: 700;
    box-shadow: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: #081784;
    border-color: #081784;
    color: #ffffff;
    filter: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(3, 17, 45, 0.16);
    background: #ffffff;
    color: #03112d;
    border-radius: 10px;
    padding: 13px 22px;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-outline:hover {
    border-color: #0a1ca8;
    color: #0a1ca8;
    background: #f8faff;
}

.btn-small {
    padding: 11px 18px;
    border-radius: 10px;
}

/* HERO */
.hero {
    padding: 72px 0 40px;
    background: linear-gradient(180deg, rgba(10, 28, 168, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-grid,
.two-col {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(10, 28, 168, 0.10);
    background: rgba(10, 28, 168, 0.05);
    color: #0a1ca8;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero h1,
.section-head h2,
.content-block h2 {
    margin: 18px 0 0;
    line-height: 1.12;
    font-size: clamp(2.1rem, 4.2vw, 3.9rem);
    color: #071a3d;
    word-break: break-word;
}

.hero p.lead,
.section-head p,
.content-block p {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.85;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* SECTIONS */
.section {
    padding: 52px 0 36px;
}

.section-head {
    margin-bottom: 24px;
}

.section-head .eyebrow,
.content-block .eyebrow,
.contact-card .eyebrow {
    color: #0a1ca8;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.85rem;
}

/* COMMON CARDS / GRIDS */
.pill-grid,
.stats-grid,
.card-grid,
.feature-grid,
.plans-grid,
.faq-grid,
.testimonial-grid {
    display: grid;
    gap: 18px;
}

.pill-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
}

.pill,
.stat-card,
.card,
.feature,
.faq-item,
.testimonial,
.list-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(3, 17, 45, 0.04);
}

.pill {
    padding: 18px;
}

.pill strong {
    display: block;
    margin-bottom: 8px;
    color: #071a3d;
}

.pill span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* HERO PANEL */
.hero-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel img.cover,
.image-panel img {
    border-radius: 16px;
    height: 320px;
    width: 100%;
    object-fit: cover;
    border: 1px solid rgba(3, 17, 45, 0.08);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.info-box,
.contact-strip {
    background: #f8faff;
    border: 1px solid rgba(3, 17, 45, 0.08);
    border-radius: 16px;
    padding: 18px;
}

.info-box small,
.contact-strip small {
    color: var(--muted);
    display: block;
}

.info-box strong,
.contact-strip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    color: #071a3d;
}

.info-box span {
    color: var(--muted);
    display: block;
    margin-top: 6px;
    line-height: 1.65;
}

.contact-strip {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.whatsapp {
    color: var(--green);
    font-weight: 700;
}

/* STATS */
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 12px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-card strong {
    display: block;
    color: #0a1ca8;
    font-size: 2rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.6;
}

/* CARDS */
.card-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 26px;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 28, 168, 0.06);
    border: 1px solid rgba(10, 28, 168, 0.10);
    color: #0a1ca8;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.card h3 {
    margin: 16px 0 10px;
    font-size: 1.2rem;
    color: #071a3d;
}

.card p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

/* FEATURES */
.feature-grid {
    grid-template-columns: repeat(2, 1fr);
}

.feature {
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature strong {
    display: block;
    margin-bottom: 6px;
    color: #071a3d;
}

.feature p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.two-col.reverse {
    grid-template-columns: .95fr 1.05fr;
}

.image-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* LIST */
.content-block .list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.list-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
}

.list-item strong {
    display: block;
    margin-bottom: 6px;
    color: #071a3d;
}

.list-item p {
    margin: 0;
    color: var(--muted);
}

/* PLANS / FAQ / TESTIMONIALS */
.plans-grid {
    grid-template-columns: repeat(3, 1fr);
}

.faq-grid {
    grid-template-columns: 1fr;
}

.faq-item {
    padding: 22px;
}

.faq-item h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.faq-item p,
.testimonial p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial {
    padding: 24px;
}

.testimonial .stars {
    color: var(--yellow);
    margin-bottom: 10px;
}

.testimonial strong {
    display: block;
    margin-top: 16px;
    color: #071a3d;
}

.testimonial span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
}

.contact-card {
    background: linear-gradient(180deg, #0a1ca8 0%, #071a4a 100%);
    color: #ffffff;
    border: 1px solid rgba(10, 28, 168, 0.18);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.contact-card .eyebrow,
.contact-card h2 {
    color: #ffffff;
}

.contact-card p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.contact-list div {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.form-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
}

form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1b2b48;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid rgba(3, 17, 45, 0.12);
    background: #ffffff;
    color: #16233b;
    padding: 14px 16px;
    font: inherit;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(10, 28, 168, 0.45);
    box-shadow: 0 0 0 4px rgba(10, 28, 168, 0.08);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

/* FLASH */
.flash {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font-weight: 600;
    background: #ffffff;
}

.flash-success {
    background: rgba(37, 211, 102, 0.10);
    color: #1a7d43;
}

.flash-error {
    background: rgba(203, 28, 19, 0.10);
    color: #a52a22;
}

/* FOOTER */
.site-footer {
    margin-top: 44px;
    border-top: 1px solid rgba(3, 17, 45, 0.08);
    background: #eef3fb;
}

.footer-grid {
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-grid h4 {
    margin: 0 0 14px;
    color: #071a3d;
}

.footer-grid a,
.footer-grid p {
    color: #5f6b85;
    display: block;
    margin: 0 0 10px;
    line-height: 1.7;
}

.footer-grid a:hover {
    color: #0a1ca8;
}

.footer-bottom {
    padding: 14px 0 24px;
    color: #667085;
    font-size: 0.9rem;
}

/* ADMIN */
.admin-wrap {
    padding: 54px 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(3, 17, 45, 0.08);
    vertical-align: top;
    color: #16233b;
}

th {
    background: #f5f8fd;
    color: #0a1ca8;
}

.login-card {
    max-width: 520px;
    margin: 70px auto;
}

.notice {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--muted);
    line-height: 1.7;
}

/* TABLET */
@media (max-width: 1100px) {
    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.93rem;
    }

    .hero-grid,
    .two-col {
        gap: 28px;
    }

    .hero-panel img.cover,
    .image-panel img {
        height: 300px;
    }
}

/* MOBILE NAV / TABLET */
@media (max-width: 980px) {
    .topbar {
        font-size: 0.88rem;
    }

    .topbar-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 0;
    }

    .topbar-left,
    .topbar-right {
        gap: 10px 14px;
    }

    .nav-wrap {
        min-height: 76px;
    }

    .hero-grid,
    .two-col,
    .contact-grid,
    .footer-grid,
    .stats-grid,
    .card-grid,
    .plans-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .info-boxes,
    .pill-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #ffffff;
        border: 1px solid rgba(3, 17, 45, 0.10);
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 20px 40px rgba(3, 17, 45, 0.10);
        z-index: 120;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 10px;
        white-space: normal;
        border-radius: 10px;
    }

    .main-nav a.active,
    .main-nav a:hover {
        background: #f5f8fd;
    }

    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none;
    }

    .main-nav .btn.btn-small {
        width: 100%;
        margin-top: 4px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 54px 0 28px;
    }

    .section {
        padding: 40px 0 28px;
    }

    .hero-panel img.cover,
    .image-panel img {
        height: 280px;
    }

    .stat-card,
    .card,
    .testimonial,
    .faq-item,
    .pill,
    .feature,
    .list-item,
    .contact-card,
    .form-card {
        padding: 20px;
    }
}

/* PHONE */
@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100% - 20px));
    }

    .brand {
        gap: 10px;
        max-width: calc(100% - 56px);
    }

    .brand img,
    .footer-brand img {
        width: 46px;
        height: 46px;
    }

    .brand strong,
    .footer-brand strong {
        font-size: 0.98rem;
    }

    .brand span,
    .footer-brand span {
        font-size: 0.76rem;
    }

    .hero {
        padding-top: 42px;
    }

    .hero h1,
    .section-head h2,
    .content-block h2 {
        font-size: 1.75rem;
        line-height: 1.18;
    }

    .hero p.lead,
    .section-head p,
    .content-block p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .badge {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        width: 100%;
    }

    .contact-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-panel,
    .image-panel,
    .contact-card,
    .form-card {
        border-radius: 18px;
    }

    .hero-panel img.cover,
    .image-panel img {
        height: 240px;
        border-radius: 14px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .card h3 {
        font-size: 1.08rem;
    }

    .footer-grid {
        gap: 10px;
    }

    .footer-bottom {
        padding: 10px 0 20px;
        font-size: 0.85rem;
    }

    input,
    select,
    textarea {
        padding: 13px 14px;
        font-size: 16px;
    }
}

/* VERY SMALL PHONE */
@media (max-width: 420px) {
    .topbar-left,
    .topbar-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-wrap {
        gap: 12px;
    }

    .brand {
        max-width: calc(100% - 52px);
    }

    .hero h1,
    .section-head h2,
    .content-block h2 {
        font-size: 1.58rem;
    }

    .hero-panel img.cover,
    .image-panel img {
        height: 210px;
    }

    .stat-card strong {
        font-size: 1.7rem;
    }

    .main-nav {
        padding: 14px;
    }
}