:root {
    --navy-950: #03101f;
    --navy-900: #061426;
    --navy-850: #081a30;
    --navy-800: #0a2342;
    --blue-700: #0b4fc2;
    --blue-600: #1769e0;
    --blue-500: #2f7df4;
    --gold-600: #d69a18;
    --gold-500: #f0b735;
    --gold-300: #ffda78;
    --ink: #0b1729;
    --muted: #667085;
    --muted-light: #a8b3c3;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --surface-blue: #edf4ff;
    --border: #dfe6ef;
    --success: #168253;
    --danger: #b42318;
    --warning: #b7791f;
    --shadow-sm: 0 8px 24px rgba(3, 16, 31, .08);
    --shadow-md: 0 18px 48px rgba(3, 16, 31, .14);
    --shadow-lg: 0 28px 70px rgba(3, 16, 31, .22);
    --radius: 14px;
    --radius-lg: 22px;
    --transition: 180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--surface); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Navigation */
.navbar { position: fixed; inset: 0 0 auto; z-index: 1000; background: rgba(3,16,31,.84); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); transition: var(--transition); }
.navbar.scrolled { background: rgba(3,16,31,.97); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.nav-wrapper { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.brand-logo { width: 66px; height: 66px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240,183,53,.24); }
.brand-name { font-size: 1.05rem; letter-spacing: .05em; }
.brand-name strong { color: var(--gold-500); }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-link { position: relative; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 650; letter-spacing: .03em; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -12px; height: 2px; background: var(--gold-500); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-greeting { color: rgba(255,255,255,.8); font-size: .92rem; }
.mobile-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15); background: transparent; border-radius: 10px; padding: 10px; }
.mobile-toggle span { display: block; height: 2px; background: #fff; margin: 4px 0; border-radius: 99px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: .8rem 1.25rem; font-weight: 750; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .62rem 1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.45rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: 0 10px 28px rgba(23,105,224,.23); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(23,105,224,.32); }
.btn-gold { background: linear-gradient(135deg, #ffd96e, var(--gold-500)); color: #1d2734; box-shadow: 0 12px 28px rgba(240,183,53,.23); }
.btn-outline { border-color: rgba(240,183,53,.8); color: #fff; background: rgba(255,255,255,.03); }
.btn-outline:hover { background: var(--gold-500); color: var(--navy-950); }
.btn-light { background: #fff; color: var(--navy-800); }

/* Hero */
.hero { position: relative; min-height: 690px; padding: 148px 0 78px; color: #fff; overflow: hidden; background: radial-gradient(circle at 74% 44%, rgba(24,102,210,.28), transparent 34%), linear-gradient(135deg, #03101f 0%, #06162c 48%, #071d38 100%); }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; top: 38px; right: -170px; background: radial-gradient(circle, rgba(240,183,53,.12), transparent 64%); filter: blur(2px); }
.hero-grid-overlay { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 54px; }
.hero-copy { max-width: 620px; }
.eyebrow, .section-kicker { display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; color: var(--blue-700); }
.eyebrow { justify-content: flex-start; color: var(--gold-300); margin-bottom: 18px; }
.eyebrow span { width: 28px; height: 2px; background: var(--gold-500); }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5.3vw, 5.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 700; margin-bottom: 24px; }
.hero h1 em { color: var(--gold-500); font-style: normal; }
.hero-copy > p { max-width: 590px; font-size: 1.08rem; color: #c8d4e3; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: #9fb1c7; font-size: .86rem; }
.hero-trust i { color: var(--gold-500); margin-right: 5px; }
.hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.hero-visual img { position: relative; z-index: 2; width: min(520px, 100%); aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-radius: 50%; border: 1px solid rgba(173,216,255,.35); box-shadow: 0 0 0 14px rgba(255,255,255,.025), 0 0 100px rgba(77,154,255,.28); }
.hero-glow { position: absolute; z-index: 1; width: 330px; height: 120px; bottom: 20px; background: rgba(243,145,47,.48); filter: blur(58px); }
.hero-orbit { position: absolute; border: 1px solid rgba(138,194,255,.23); border-radius: 50%; }
.orbit-one { width: 570px; height: 570px; }
.orbit-two { width: 635px; height: 635px; border-style: dashed; opacity: .55; }

/* Sections */
section { padding: 82px 0; }
.section-kicker { margin-bottom: 10px; }
.section-kicker.left { justify-content: flex-start; }
.section-header { max-width: 800px; text-align: center; margin: 0 auto 38px; }
.section-header.compact { margin-bottom: 34px; }
.section-header h2, .training-copy h2, .resource-layout h2, .about-copy h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.section-header p { color: var(--muted); margin-top: 10px; }

/* Books */
.books-section { background: #fff; }
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.book-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(23,105,224,.24); }
.book-image { position: relative; height: 370px; background: #eef2f7; overflow: hidden; }
.book-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.book-card:hover .book-image img { transform: scale(1.025); }
.status-badge { position: absolute; z-index: 3; top: 14px; right: 14px; padding: 7px 11px; border-radius: 999px; background: linear-gradient(135deg, #ffd96e, var(--gold-500)); color: #172033; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 7px 20px rgba(0,0,0,.18); }
.book-info { padding: 20px; }
.book-category { display: block; color: var(--blue-700); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.book-info h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.25; margin-bottom: 9px; }
.book-description { font-size: .9rem; color: var(--muted); min-height: 68px; }
.book-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-700); font-weight: 800; font-size: .88rem; margin-top: 14px; }
.book-link.muted { color: var(--warning); }
.coming-soon-card { border-color: rgba(214,154,24,.45); }

/* Programs */
.programs-section { background: linear-gradient(180deg, #f4f8fe 0%, #fff 44%); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.program-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 26px rgba(8,28,56,.06); }
.program-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); margin-bottom: 16px; }
.program-card h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 9px; }
.program-card p { color: var(--muted); font-size: .88rem; min-height: 86px; }
.program-card a { display: inline-flex; gap: 7px; align-items: center; color: var(--blue-700); font-weight: 800; font-size: .85rem; margin-top: 13px; }
.training-request { margin-top: 46px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; padding: 42px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(circle at 10% 0%, rgba(47,125,244,.28), transparent 40%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); box-shadow: var(--shadow-lg); }
.training-copy h2 { color: #fff; margin: 8px 0 14px; }
.training-copy p { color: #bdcbda; }
.training-points { display: grid; gap: 9px; margin-top: 22px; color: #d8e2ef; }
.training-points i { color: var(--gold-500); margin-right: 8px; }
.training-form-wrapper { padding: 26px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(12px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .84rem; font-weight: 750; margin-bottom: 6px; }
.form-control { width: 100%; min-height: 48px; border: 1px solid #d5dce6; border-radius: 9px; padding: .75rem .9rem; color: var(--ink); background: #fff; outline: none; transition: border var(--transition), box-shadow var(--transition); }
.form-control:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,125,244,.16); }
.form-note { text-align: center; font-size: .78rem; color: #b9c6d5; margin-top: 11px; }

/* Resources */
.resources-section { background: var(--surface); }
.resource-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 55px; align-items: center; }
.resource-layout > div:first-child > p { margin-top: 14px; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-grid article { padding: 24px 20px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.resource-grid i { font-size: 1.35rem; color: var(--gold-600); margin-bottom: 15px; }
.resource-grid h3 { font-size: .98rem; margin-bottom: 7px; }
.resource-grid p { color: var(--muted); font-size: .85rem; }

/* About */
.about-section { background: #f7f9fc; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-copy h2 span { color: var(--gold-600); }
.about-copy p { color: var(--muted); margin: 14px 0 22px; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pillar-card { padding: 28px 18px; text-align: center; border-right: 1px solid var(--border); }
.pillar-card:last-child { border-right: none; }
.pillar-card i { font-size: 1.7rem; color: var(--gold-600); margin-bottom: 13px; }
.pillar-card h3 { color: var(--blue-700); text-transform: uppercase; font-size: .92rem; letter-spacing: .06em; margin-bottom: 7px; }
.pillar-card p { font-size: .82rem; color: var(--muted); }

/* Footer */
.footer { background: var(--navy-950); color: #fff; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 82px; height: 82px; border-radius: 50%; }
.footer-brand p, .footer-col a { color: #9db0c7; font-size: .88rem; }
.footer-col h4 { margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.09); text-align: center; color: #8497ac; font-size: .84rem; }

/* Auth */
.auth-page, .auth-container { min-height: 100vh; }
.auth-container { position: relative; display: grid; place-items: center; padding: 115px 20px 50px; overflow: hidden; background: radial-gradient(circle at 20% 15%, rgba(23,105,224,.26), transparent 30%), radial-gradient(circle at 86% 88%, rgba(240,183,53,.13), transparent 28%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.auth-container::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; }
.auth-card { position: relative; z-index: 1; width: min(500px, 100%); padding: 34px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.85); border-radius: 20px; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.auth-card .logo { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; color: var(--navy-900); }
.auth-logo { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-sm); }
.auth-card h2 { font-family: Georgia, "Times New Roman", serif; text-align: center; margin-bottom: 6px; font-size: 2rem; }
.auth-card .form-group label { color: #344054; }
.auth-card .btn-primary { margin-top: 5px; }
.auth-divider { position: relative; text-align: center; color: var(--muted); margin: 22px 0 14px; font-size: .85rem; }
.auth-link { text-align: center; }
.auth-link a, .auth-card a:not(.btn):hover { color: var(--blue-700); }
.alert { padding: 12px 14px; border-radius: 9px; margin-bottom: 16px; font-size: .9rem; }
.alert-success { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; }
.alert-danger { color: var(--danger); background: #fef3f2; border: 1px solid #fecdca; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Dashboard */
.dashboard { min-height: 100vh; padding: 110px 0 55px; background: #f4f7fb; }
.dashboard-header { background: linear-gradient(135deg, #fff, #f7faff); padding: 32px 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.dashboard-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.dashboard-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(3,16,31,.06); }
.dashboard-card h3 { margin-bottom: 14px; }
.dashboard-card table { width: 100%; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
    .nav-menu { gap: 18px; }
    .books-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-card:nth-child(2) { border-right: none; }
    .pillar-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .resource-layout, .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 860px) {
    .nav-wrapper { min-height: 74px; }
    .brand-logo { width: 56px; height: 56px; }
    .brand-name { display: none; }
    .mobile-toggle { display: block; }
    .nav-menu { position: fixed; top: 74px; left: 16px; right: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border-radius: 14px; background: rgba(3,16,31,.98); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 170ms ease; }
    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-link { padding: 12px 8px; }
    .nav-link::after { display: none; }
    .user-menu { margin-top: 8px; }
    .user-menu .btn { width: 100%; }
    .hero { padding-top: 120px; }
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { margin: 0 auto; }
    .eyebrow { justify-content: center; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-visual { min-height: 390px; }
    .hero-visual img { width: min(390px, 88vw); }
    .orbit-one { width: 430px; height: 430px; }
    .orbit-two { width: 480px; height: 480px; }
    .training-request { grid-template-columns: 1fr; padding: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1180px); }
    section { padding: 62px 0; }
    .hero { min-height: auto; padding-bottom: 58px; }
    .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
    .hero-visual { min-height: 315px; }
    .orbit-one, .orbit-two { display: none; }
    .books-grid, .program-grid, .resource-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .book-image { height: 440px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .training-request { padding: 22px; }
    .pillar-grid { grid-template-columns: 1fr; }
    .pillar-card { border-right: none; border-bottom: 1px solid var(--border); }
    .pillar-card:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { align-items: flex-start; }
    .auth-card { padding: 26px 20px; }
}
