:root {
  --ink: #10213a;
  --muted: #5f6f82;
  --navy: #07182f;
  --navy-2: #0d2f50;
  --teal: #10a99a;
  --teal-dark: #087b72;
  --gold: #f2b64b;
  --cream: #f8f5ee;
  --surface: #ffffff;
  --line: #dbe4ec;
  --success: #176b49;
  --warning: #845d00;
  --danger: #a32b2b;
  --shadow: 0 18px 50px rgba(7, 24, 47, .12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f6f9fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: var(--teal-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 760px); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.4rem 0; }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h1, .section-heading h2 { margin: 0 0 .55rem; line-height: 1.12; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); }
h3 { font-size: 1.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--teal-dark); }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.skip-link { position: fixed; left: .75rem; top: .75rem; z-index: 9999; transform: translateY(-180%); background: #fff; color: #000; padding: .75rem 1rem; border-radius: .5rem; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(219,228,236,.9); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.08rem; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; margin-top: .28rem; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy-2)); font-weight: 900; box-shadow: 0 8px 22px rgba(16,169,154,.25); }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav > a { color: #31445b; text-decoration: none; font-weight: 700; font-size: .91rem; padding: .65rem .62rem; border-radius: .65rem; }
.primary-nav > a:hover, .primary-nav > a.active { background: #edf5f6; color: var(--teal-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: .7rem; padding: .55rem .8rem; color: var(--navy); font-weight: 800; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 46px; padding: .72rem 1.1rem; border: 1px solid var(--teal); border-radius: .75rem; background: var(--teal); color: #fff !important; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(16,169,154,.18); }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-outline { background: transparent; color: var(--teal-dark) !important; box-shadow: none; }
.button-outline:hover { color: #fff !important; }
.button-dark { background: var(--navy); border-color: var(--navy); }
.button-dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-small { min-height: 38px; padding: .48rem .78rem; font-size: .88rem; }
.button-disabled, .button[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 8% 20%, rgba(16,169,154,.28), transparent 32%), radial-gradient(circle at 92% 8%, rgba(242,182,75,.16), transparent 25%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 650px; gap: 3rem; padding: 5rem 0; }
.hero h1 { margin: .6rem 0 1rem; max-width: 800px; }
.hero p { color: #d5e2ed; font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 660px; }
.hero .eyebrow { color: #71e1d5; }
.hero-art { position: relative; filter: drop-shadow(0 28px 50px rgba(0,0,0,.3)); }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 2rem; }
.hero-proof div { padding: .9rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: .9rem; }
.hero-proof strong { display: block; color: #fff; }
.hero-proof span { color: #b9cbd9; font-size: .84rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 10px 30px rgba(7,24,47,.05); }
.card:hover { border-color: #b9d8d7; }
.card h2, .card h3 { margin-top: 0; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #e7f7f5; color: var(--teal-dark); font-weight: 900; margin-bottom: 1rem; }
.card-footer { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.segment-card { min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; border: 0; overflow: hidden; position: relative; }
.segment-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(7,24,47,.92), rgba(13,47,80,.68)); }
.segment-card > * { position: relative; }
.segment-real-estate { background: linear-gradient(135deg,#5e7a62,#173d3d); }
.segment-stocks { background: linear-gradient(135deg,#1c3f6b,#07182f); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px,1fr)); gap: 1.25rem; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border: 2px solid var(--teal); transform: translateY(-6px); box-shadow: var(--shadow); }
.plan-badge { position: absolute; right: 1rem; top: -12px; background: var(--gold); color: #513800; font-size: .75rem; font-weight: 900; padding: .35rem .65rem; border-radius: 999px; }
.price { font-size: 2rem; font-weight: 900; color: var(--navy); }
.price small { font-size: .88rem; color: var(--muted); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.feature-list li { padding: .5rem 0 .5rem 1.6rem; position: relative; border-bottom: 1px solid #edf1f4; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.plan-card .button { margin-top: auto; }

.page-hero { padding: 4.2rem 0 3rem; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.page-hero h1 { margin: .4rem 0 .65rem; font-size: clamp(2.2rem,4vw,3.6rem); }
.page-hero p { color: #d1deea; font-size: 1.1rem; max-width: 760px; }
.breadcrumbs { font-size: .85rem; color: #aac0d2; }
.breadcrumbs a { color: #dceaf5; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem,4vw,2.25rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-group { display: grid; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--navy); }
input, select, textarea { width: 100%; border: 1px solid #c7d3dd; border-radius: .7rem; background: #fff; color: var(--ink); padding: .72rem .82rem; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(16,169,154,.18); border-color: var(--teal); }
textarea { min-height: 130px; resize: vertical; }
.field-help { color: var(--muted); font-size: .84rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: .65rem; }
.checkbox-row input { width: 18px; min-height: 18px; margin-top: .18rem; }
.password-wrap { display: flex; gap: .5rem; }
.password-wrap button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: .7rem; background: #f3f7fa; padding: .5rem .8rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.flash { border-bottom: 1px solid transparent; padding: .78rem 0; font-weight: 700; }
.flash-success { background: #e7f6ef; color: var(--success); border-color: #b7dfca; }
.flash-warning { background: #fff4d8; color: var(--warning); border-color: #efdca6; }
.flash-error { background: #fdeaea; color: var(--danger); border-color: #f3c1c1; }
.alert { border-radius: .8rem; padding: 1rem; border: 1px solid var(--line); background: #f5f8fa; }
.alert-warning { background: #fff7e5; border-color: #eed8a3; color: #694d0a; }
.alert-danger { background: #fff0f0; border-color: #ecc3c3; color: #762323; }
.alert-success { background: #eaf8f1; border-color: #b9e2cd; color: #176b49; }

.dashboard-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1.3rem; align-items: start; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; }
.stat strong { display: block; font-size: 1.7rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .85rem; }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .28rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 900; background: #e9eff4; color: #43556a; }
.badge-success { background: #e3f6ed; color: var(--success); }
.badge-warning { background: #fff2d4; color: var(--warning); }
.badge-danger { background: #fde6e6; color: var(--danger); }
.badge-info { background: #e5f6f5; color: var(--teal-dark); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f5f8fa; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

.media-card { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.media-placeholder { min-height: 100px; border-radius: .8rem; background: linear-gradient(135deg,#d9eeec,#dbe4ef); display: grid; place-items: center; color: var(--navy); font-weight: 900; }
.course-video { width: 100%; border-radius: 1rem; background: #000; box-shadow: var(--shadow); }
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { border-bottom: 1px solid var(--line); padding: .9rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.locked { opacity: .6; }

.chart { display: grid; gap: .6rem; }
.chart-row { display: grid; grid-template-columns: 130px 1fr 70px; gap: .75rem; align-items: center; font-size: .84rem; }
.chart-track { height: 16px; background: #e9eef2; border-radius: 999px; overflow: hidden; }
.chart-bar { height: 100%; width: var(--bar, 0%); background: linear-gradient(90deg,var(--teal),var(--navy-2)); border-radius: inherit; }
.admin-page main { min-height: 70vh; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.pagination { display: flex; gap: .4rem; margin-top: 1rem; }
.pagination a, .pagination span { border: 1px solid var(--line); background: #fff; padding: .45rem .7rem; border-radius: .55rem; text-decoration: none; }

.cta-band { background: linear-gradient(135deg,var(--teal-dark),var(--navy-2)); color: #fff; border-radius: 24px; padding: clamp(1.5rem,5vw,3.2rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 .5rem; }
.cta-band p { margin: 0; color: #d8e8eb; }
.site-footer { background: var(--navy); color: #cbd8e3; padding: 3.5rem 0 1.3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer a { color: #d7e5ee; display: block; margin: .5rem 0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: .7rem; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; max-height: calc(100vh - 90px); overflow: auto; }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: .75rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 4rem 0; }
  .hero-art { max-width: 690px; margin-inline: auto; }
  .card-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .section { padding: 3.2rem 0; }
  .card-grid, .card-grid.two, .card-grid.four, .dashboard-grid, .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(2.35rem,12vw,3.5rem); }
  .plan-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom, .cta-band { align-items: flex-start; flex-direction: column; }
  .chart-row { grid-template-columns: 88px 1fr 45px; }
  .media-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .stat-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .page-hero { padding: 3.1rem 0 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
