:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --surface: rgba(15, 29, 48, 0.82);
    --surface-solid: #102038;
    --surface-light: #f8fbff;
    --text: #e8f1ff;
    --muted: #9fb2ca;
    --dark-text: #122033;
    --primary: #38bdf8;
    --primary-2: #2563eb;
    --success: #22c55e;
    --danger: #ef4444;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .22), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(56, 189, 248, .12), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #091525 48%, #0d1b2d 100%);
    padding: 24px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; }

h1, h2, h3 { margin-top: 0; color: var(--text); }

p { color: var(--muted); line-height: 1.7; }

.site-header { max-width: 1240px; margin: 0 auto 26px; position: relative; z-index: 2; }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(9, 22, 38, .78);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    backdrop-filter: blur(18px);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.cyber-icon { font-size: 29px; filter: drop-shadow(0 0 12px rgba(56,189,248,.4)); }

.logo-link span:last-child { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }

.nav-links { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.nav-links a {
    padding: 10px 13px;
    border-radius: 10px;
    text-decoration: none;
    color: #c9d7e9;
    font-weight: 650;
    transition: .2s ease;
}

.nav-links a:hover { color: white; background: rgba(56,189,248,.1); }
.nav-links .nav-cta { color: #06111e; background: linear-gradient(135deg, #67e8f9, #38bdf8); }
.nav-links .nav-cta:hover { color: #06111e; transform: translateY(-1px); }

.hero {
    max-width: 1240px;
    margin: 0 auto 70px;
    min-height: 510px;
    padding: 70px 70px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56,189,248,.18);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(18,42,70,.96), rgba(8,23,40,.92));
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,.18), transparent 68%);
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -2.5px; margin-bottom: 22px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; max-width: 690px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn, a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 19px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 750;
    border: 1px solid transparent;
    transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #04111e; background: linear-gradient(135deg, #67e8f9, #38bdf8); box-shadow: 0 10px 25px rgba(56,189,248,.18); }
.btn-secondary { color: #dbeafe; background: rgba(255,255,255,.05); border-color: var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,.09); }

.hero-orbit { min-height: 320px; position: relative; display: grid; place-items: center; }
.hero-orbit::before { content: ""; width: 280px; height: 280px; border: 1px solid rgba(56,189,248,.25); border-radius: 50%; box-shadow: 0 0 80px rgba(37,99,235,.14); }
.orbit-card { position: absolute; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(17,36,58,.9); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.orbit-card-main { width: 145px; height: 145px; border-radius: 36px; font-size: 70px; box-shadow: 0 0 70px rgba(56,189,248,.14); }
.orbit-card-one, .orbit-card-two, .orbit-card-three { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; }
.orbit-card-one { top: 20px; right: 32px; }
.orbit-card-two { bottom: 24px; left: 35px; }
.orbit-card-three { bottom: 35px; right: 15px; }

.section-heading { max-width: 1240px; margin: 0 auto 25px; }
.section-heading h2 { font-size: 38px; margin-bottom: 8px; }

.card-container { max-width: 1240px; margin: 28px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

.card {
    background: linear-gradient(180deg, rgba(19,37,59,.9), rgba(12,27,45,.9));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 27px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
    transition: .25s ease;
}

.card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,.28); box-shadow: 0 20px 45px rgba(0,0,0,.24); }
.card h3 { margin-bottom: 9px; }
.card p { margin-bottom: 0; }
.feature-card { min-height: 220px; }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 20px; font-size: 25px; background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.16); }

.cta-section {
    max-width: 1240px;
    margin: 70px auto 20px;
    padding: 34px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(56,189,248,.2);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(56,189,248,.06));
}
.cta-section h2 { margin-bottom: 5px; }
.cta-section p { margin: 0; }

input, textarea, select {
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #122033;
    font: inherit;
    outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
textarea { min-height: 130px; resize: vertical; }

button {
    border: 0;
    border-radius: 11px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: white;
    font-weight: 750;
    cursor: pointer;
}
button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.alert { padding: 14px 17px; border-radius: 12px; margin-bottom: 18px; font-weight: 650; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.form-box, .pro-form-box, .payment-card {
    color: var(--dark-text);
    background: #f8fbff;
    border: 1px solid #dbe7f4;
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.form-box { max-width: 650px; margin: 45px auto; padding: 34px; }
.form-box h2, .pro-form-box h1, .pro-form-box h2, .pro-form-box h3, .payment-card h2 { color: var(--dark-text); }
.form-box p, .pro-form-box p, .payment-card p { color: #52647a; }

.login-page { max-width: 1200px; margin: 35px auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #f8fbff; }
.login-left { padding: 70px; min-height: 610px; background: linear-gradient(145deg, #0c2a4d, #0b1728); }
.login-left h1 { color: white; font-size: clamp(38px, 4vw, 55px); }
.login-left p { color: #c4d6ea; font-size: 18px; max-width: 460px; }
.login-illustration { font-size: 130px; margin-top: 90px; filter: drop-shadow(0 0 35px rgba(56,189,248,.2)); }
.login-right { display: flex; align-items: center; justify-content: center; padding: 55px; }
.login-box { width: 100%; max-width: 470px; }
.login-box h2 { color: var(--dark-text); font-size: 38px; text-align: center; margin-bottom: 6px; }
.login-box label, .pro-form-box label { display: block; color: #25364a; font-weight: 750; margin: 16px 0 7px; }
.login-box input { max-width: 100%; }
.login-btn { width: 100%; margin-top: 18px; }
.outline-btn { display: block; width: 100%; text-align: center; color: #2563eb !important; background: white !important; border: 1px solid #cbd5e1; }
.outline-btn:hover { background: #eff6ff !important; }
.divider { text-align: center; color: #64748b; margin: 22px 0; }
.secure-text { text-align: center; color: #64748b !important; margin-top: 24px; }

.page-title { max-width: 1100px; margin: 35px auto; text-align: center; }
.page-title h1 { font-size: 42px; }
.page-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 22px; background: linear-gradient(135deg, #38bdf8, #2563eb); font-size: 30px; }
.center-page { max-width: 1000px; margin: 35px auto; }
.pro-form-box { padding: 35px; }
.form-actions { display: flex; justify-content: center; gap: 12px; margin-top: 25px; padding-top: 22px; border-top: 1px solid #dbe7f4; }
.reset-btn { background: white; color: #334155; border: 1px solid #cbd5e1; }
.bottom-link { text-align: center; margin-top: 22px; }

.course-card { min-height: 320px; display: flex; flex-direction: column; overflow: hidden; }
.course-card::before { content: ""; display: block; height: 5px; margin: -27px -27px 22px; background: linear-gradient(90deg, #2563eb, #38bdf8); }
.course-card p { min-height: 70px; }
.course-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.course-actions a, .course-actions button { width: 100%; text-align: center; }

.progress-info { display: flex; justify-content: space-between; color: #475569; margin: 10px 0; }
.progress-bar { height: 10px; width: 100%; overflow: hidden; border-radius: 99px; background: #dbe5ef; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #38bdf8); }

.lesson-list { display: flex; flex-direction: column; gap: 16px; }
.lesson-card { padding: 23px; border-radius: 18px; background: #f8fbff; color: var(--dark-text); border: 1px solid #dbe7f4; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: 0 8px 25px rgba(15,23,42,.08); }
.lesson-card h3 { color: var(--dark-text); margin-bottom: 6px; }
.lesson-actions { display: flex; gap: 10px; flex-wrap: wrap; min-width: 230px; }
.lesson-actions a { flex: 1; text-align: center; }

.badge-success, .badge-info { display: inline-block; padding: 7px 11px; border-radius: 999px; font-weight: 750; font-size: 13px; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1e40af; }
.page-actions, .table-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.danger-btn { background: #dc2626 !important; }

.payment-page { max-width: 1150px; margin: 40px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.payment-summary { padding: 25px 10px; }
.payment-summary h1 { font-size: 48px; }
.plan-box { margin-top: 25px; padding: 28px; border-radius: 20px; background: linear-gradient(145deg, #122b49, #0c1c30); border: 1px solid var(--border); }
.plan-box h2 { color: white; }
.plan-box .price { color: #67e8f9; font-size: 30px; font-weight: 800; }
.plan-box li { color: #d5e5f5; margin: 12px 0; }
.payment-card { padding: 30px; }
.card-preview { padding: 25px; border-radius: 20px; color: white; background: linear-gradient(135deg, #0f2e50, #2563eb); box-shadow: 0 20px 40px rgba(37,99,235,.25); margin-bottom: 25px; }
.card-top, .card-bottom { display: flex; justify-content: space-between; gap: 20px; }
.card-chip { width: 48px; height: 35px; margin: 32px 0; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.card-number { font-size: 24px; letter-spacing: 3px; margin-bottom: 28px; }
.payment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-btn { width: 100%; margin-top: 20px; background: linear-gradient(135deg, #22c55e, #16a34a); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #f8fbff; color: #122033; border-radius: 16px; overflow: hidden; }
th { background: #102038; color: white; text-align: left; }
td, th { padding: 14px 16px; border-bottom: 1px solid #dbe7f4; }
tr:hover td { background: #eff6ff; }

@media (max-width: 900px) {
    body { padding: 14px; }
    .nav { align-items: flex-start; flex-direction: column; }
    .nav-links { width: 100%; }
    .hero { grid-template-columns: 1fr; padding: 48px 30px; }
    .hero-orbit { min-height: 230px; }
    .login-page, .payment-page { grid-template-columns: 1fr; }
    .login-left { min-height: auto; padding: 48px 35px; }
    .login-illustration { margin-top: 35px; font-size: 90px; }
    .login-right { padding: 35px 25px; }
    .cta-section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .nav-links { flex-direction: column; align-items: stretch; }
    .nav-links a { text-align: center; }
    .hero h1 { letter-spacing: -1.5px; }
    .hero { border-radius: 22px; }
    .hero-orbit { display: none; }
    .section-heading h2 { font-size: 30px; }
    .card { padding: 22px; }
    .payment-row { grid-template-columns: 1fr; }
    .card-number { font-size: 17px; letter-spacing: 2px; }
    .lesson-card { flex-direction: column; align-items: stretch; }
    .lesson-actions { min-width: 0; }
}
