:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --teal: #14b8a6;
    --dark: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f6f9ff;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 22px 70px rgba(15, 23, 42, .09);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .25);
}

.brand strong {
    display: block;
    font-size: 16px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    color: #475569;
}

.nav-menu a:hover {
    color: var(--primary);
    background: #eff6ff;
}

.nav-ico {
    font-size: 15px;
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 21px;
}

.btn-primary,
.btn-outline,
.btn-soft,
.btn-danger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px !important;
    border-radius: 15px !important;
    font-weight: 900 !important;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.btn-outline {
    background: #fff !important;
    color: var(--primary-dark) !important;
    border-color: #bfdbfe !important;
}

.btn-soft {
    background: var(--primary-soft) !important;
    color: var(--primary-dark) !important;
}

.btn-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.btn-lg {
    padding: 15px 23px !important;
}

.full {
    width: 100%;
}

.hero-clean {
    min-height: 680px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 15%, rgba(37, 99, 235, .16), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(20, 184, 166, .18), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
}

.hero-clean-inner {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 60px;
    align-items: center;
}

.hero-label,
.mini-title {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #e0ecff;
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 13px;
}

.hero-label span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px rgba(20, 184, 166, .14);
}

.hero-left h1 {
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.05;
    letter-spacing: -1.8px;
    margin: 22px 0;
    color: var(--dark);
}

.hero-left h1 em {
    display: block;
    font-style: normal;
    color: var(--primary);
}

.hero-left p {
    font-size: 18px;
    line-height: 1.85;
    color: var(--muted);
    max-width: 740px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 540px;
    margin-top: 36px;
}

.hero-stats div {
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .05);
}

.hero-stats strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
}

.hero-stats span {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.hero-right {
    position: relative;
    min-height: 500px;
}

.glass-card {
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(226, 232, 240, .95);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.main-predict-card {
    width: min(390px, 100%);
    border-radius: 32px;
    padding: 30px;
    position: absolute;
    top: 78px;
    right: 55px;
    animation: floatY 4.5s ease-in-out infinite;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #16a34a;
    font-weight: 900;
    margin-bottom: 18px;
}

.card-status span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 7px rgba(22, 163, 74, .14);
}

.predict-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.predict-row span {
    color: var(--muted);
}

.predict-result {
    margin-top: 22px;
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: #fff;
}

.predict-result small,
.predict-result span {
    display: block;
    opacity: .9;
}

.predict-result strong {
    display: block;
    font-size: 36px;
    margin: 8px 0;
}

.orbit-chip {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-weight: 900;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .11);
}

.chip-a { top: 38px; right: 8px; }
.chip-b { top: 115px; left: 24px; }
.chip-c { bottom: 105px; left: 0; }
.chip-d { bottom: 52px; right: 70px; }

.landing-section {
    padding: 86px 0;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    color: var(--dark);
    margin: 18px 0 12px;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.8;
}

.modern-grid {
    display: grid;
    gap: 22px;
}

.modern-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.modern-card,
.category-modern-card,
.method-clean,
.profile-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 14px 45px rgba(15, 23, 42, .05);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #e0ecff;
    color: var(--primary-dark);
    font-weight: 900;
    margin-bottom: 18px;
}

.modern-card p,
.category-modern-card p {
    color: var(--muted);
    line-height: 1.7;
}

.flow-clean {
    background: linear-gradient(135deg, #0f172a, #1e40af);
}

.section-heading.light h2,
.section-heading.light p {
    color: #fff;
}

.mini-title.white {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.flow-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.flow-step {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius);
    padding: 24px;
    color: #fff;
}

.flow-step strong {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .15);
}

.flow-step p {
    color: #dbeafe;
    line-height: 1.7;
}

.category-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-modern-card span {
    color: var(--primary);
    font-weight: 900;
}

.category-modern-card.wide {
    grid-column: span 2;
}

.method-clean {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #fff, #eff6ff);
}

.method-clean h2 {
    font-size: clamp(30px, 4vw, 42px);
}

.method-clean p {
    color: var(--muted);
    line-height: 1.8;
}

.method-points {
    display: grid;
    gap: 14px;
}

.method-points div {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 18px;
}

.method-points span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.cta-clean {
    padding: 20px 0 80px;
}

.cta-clean-inner {
    text-align: center;
    color: #fff;
    border-radius: 34px;
    padding: 50px;
    background:
        radial-gradient(circle at left top, rgba(255, 255, 255, .22), transparent 30%),
        linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: var(--shadow);
}

.cta-clean-inner h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 10px;
}

.cta-clean-inner p {
    opacity: .9;
    margin-bottom: 26px;
}

.landing-footer {
    padding: 34px 0;
    text-align: center;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.badge-white {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 800;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.bottom-dock {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(420px, calc(100% - 28px));
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    padding: 9px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    z-index: 120;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .35);
}

.bottom-dock a {
    color: #dbeafe;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 9px 8px;
    border-radius: 18px;
    font-weight: 800;
}

.bottom-dock a span {
    font-size: 20px;
}

.bottom-dock a small {
    font-size: 11px;
}

.bottom-dock a:hover,
.bottom-dock .dock-profile {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.profile-hero {
    background:
        radial-gradient(circle at right top, rgba(20, 184, 166, .3), transparent 30%),
        linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: 32px;
    padding: 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    font-size: 42px;
    font-weight: 900;
}

.profile-hero h1 {
    margin: 14px 0 4px;
    font-size: 36px;
}

.profile-hero p {
    margin: 0;
    color: #dbeafe;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.profile-row span {
    color: var(--muted);
}

.profile-stat {
    background: #eff6ff;
    border-radius: 22px;
    padding: 24px;
    margin: 18px 0;
}

.profile-stat strong {
    display: block;
    font-size: 46px;
    color: var(--primary);
}

.profile-stat span {
    color: var(--muted);
}

.profile-actions {
    display: grid;
    gap: 12px;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 1024px) {
    .hero-clean-inner,
    .method-clean {
        grid-template-columns: 1fr;
    }

    .hero-right {
        min-height: 420px;
    }

    .modern-grid.four,
    .flow-line,
    .category-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 88px;
    }

    .nav-inner {
        height: auto;
        padding: 14px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 4%;
        right: 4%;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 24px;
        padding: 14px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu.show {
        display: flex;
    }

    .hero-clean,
    .hero-clean-inner {
        min-height: auto;
    }

    .hero-clean-inner {
        padding: 56px 0 38px;
    }

    .hero-left h1 {
        font-size: 38px;
    }

    .hero-stats,
    .modern-grid.four,
    .flow-line,
    .category-modern-grid {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .landing-section {
        padding: 58px 0;
    }

    .category-modern-card.wide {
        grid-column: auto;
    }

    .cta-clean-inner {
        padding: 34px 22px;
    }

    .bottom-dock {
        display: grid;
    }

    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ======================================================
   MODAL POPUP
====================================================== */

.modal{
    display:none;
    position:fixed;
    z-index:99999;
    inset:0;
    background:rgba(0,0,0,.45);

    justify-content:center;
    align-items:center;

    animation:fadeIn .25s ease;
}

.modal.show{
    display:flex;
}

.modal-content{
    width:100%;
    max-width:620px;

    background:#ffffff;

    border-radius:18px;

    box-shadow:0 18px 60px rgba(0,0,0,.25);

    overflow:hidden;

    animation:zoomIn .25s ease;
}

/* Header */

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px 28px;

    border-bottom:1px solid #edf2f7;
}

.modal-header h3{

    margin:0;

    font-size:22px;

    font-weight:700;

    color:#1e293b;
}

.modal-close{

    width:38px;

    height:38px;

    border:none;

    border-radius:50%;

    background:#f1f5f9;

    cursor:pointer;

    transition:.25s;
}

.modal-close:hover{

    background:#e2e8f0;
}

/* Body */

.modal-body{

    padding:28px;
}

/* Footer */

.modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    padding:20px 28px;

    border-top:1px solid #edf2f7;
}

/* ======================================================
   FORM
====================================================== */

.form-group{

    margin-bottom:20px;
}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#334155;
}

.form-control{

    width:100%;

    height:48px;

    padding:0 15px;

    border:1px solid #dbe4ee;

    border-radius:10px;

    font-size:15px;

    transition:.25s;
}

.form-control:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* ======================================================
   BUTTON
====================================================== */

.btn-primary{

    display:inline-flex;

    align-items:center;

    gap:8px;

    border:none;

    background:#2563eb;

    color:#fff;

    padding:11px 22px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;
}

.btn-primary:hover{

    background:#1d4ed8;
}

.btn-secondary{

    display:inline-flex;

    align-items:center;

    gap:8px;

    border:none;

    background:#e2e8f0;

    color:#334155;

    padding:11px 22px;

    border-radius:10px;

    cursor:pointer;

    font-weight:600;
}

.btn-secondary:hover{

    background:#cbd5e1;
}

/* ======================================================
   ANIMATION
====================================================== */

@keyframes fadeIn{

    from{

        opacity:0;
    }

    to{

        opacity:1;
    }
}

@keyframes zoomIn{

    from{

        opacity:0;

        transform:scale(.9);
    }

    to{

        opacity:1;

        transform:scale(1);
    }
}
/* ======================================================
   MODAL OVERLAY
====================================================== */

.modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
    backdrop-filter:blur(6px);
    animation:fadeModal .25s ease;
}

.modal.show{
    display:flex;
}

/* ======================================================
   MODAL BOX
====================================================== */

.modal-content{
    width:100%;
    max-width:560px;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:
        0 20px 60px rgba(15,23,42,.25);
    animation:zoomModal .25s ease;
}

/* ======================================================
   HEADER
====================================================== */

.modal-header{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:22px 28px;

    border-bottom:1px solid #eef2f7;

    background:#ffffff;

}

.modal-title{

    display:flex;
    align-items:center;
    gap:12px;

    font-size:22px;
    font-weight:700;
    color:#1e293b;

}

.modal-title i{

    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:#e8f1ff;

    color:#2563eb;

    font-size:20px;

}

/* ======================================================
   CLOSE BUTTON
====================================================== */

.btn-close{

    width:42px;
    height:42px;

    border:none;

    border-radius:12px;

    background:#f1f5f9;

    font-size:22px;

    cursor:pointer;

    transition:.25s;

}

.btn-close:hover{

    background:#ef4444;

    color:#fff;

}

/* ======================================================
   BODY
====================================================== */

.modal-body{

    padding:28px;

}

/* ======================================================
   LABEL
====================================================== */

.form-label{

    display:block;

    margin-bottom:8px;

    font-size:15px;

    font-weight:600;

    color:#334155;

}

/* ======================================================
   INPUT
====================================================== */

.form-control,
.form-select{

    width:100%;

    height:50px;

    border:1px solid #dbe5f1;

    border-radius:14px;

    padding:0 16px;

    font-size:15px;

    background:#fff;

    transition:.25s;

}

.form-control:focus,
.form-select:focus{

    border-color:#2563eb;

    outline:none;

    box-shadow:0 0 0 4px rgba(37,99,235,.12);

}

/* ======================================================
   SPACING
====================================================== */

.mb-3{

    margin-bottom:22px;

}

/* ======================================================
   FOOTER
====================================================== */

.modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:14px;

    padding:22px 28px;

    background:#f8fafc;

    border-top:1px solid #eef2f7;

}

/* ======================================================
   BUTTON
====================================================== */

.modal-footer button{

    min-width:145px;

    height:48px;

    border:none;

    border-radius:14px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.btn-secondary{

    background:#e2e8f0;

    color:#334155;

}

.btn-secondary:hover{

    background:#cbd5e1;

}

.btn-warning{

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

}

.btn-warning:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(37,99,235,.35);

}

/* ======================================================
   ANIMATION
====================================================== */

@keyframes fadeModal{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

@keyframes zoomModal{

    from{

        opacity:0;

        transform:scale(.9);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}