:root {
  --navy: #0B1628;
  --navy-mid: #152238;
  --navy-light: #1E3152;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --gold: #D4A853;
  --gold-light: #F0C87A;
  --white: #F8F6F1;
  --white-dim: rgba(248,246,241,0.65);
  --white-faint: rgba(248,246,241,0.09);
  --border: rgba(248,246,241,0.10);
  --border-hover: rgba(248,246,241,0.25);
  --green: #4ADE80;
  --green-bg: rgba(34,197,94,0.12);
  --green-border: rgba(74,222,128,0.22);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 2.5rem;
  background: rgba(11,22,40,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', serif; font-size: 1.2rem; color: var(--white);
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo .logo-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--white-dim); text-decoration: none;
  font-size: 0.875rem; font-weight: 400; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-auth { display: flex; gap: 10px; align-items: center; }
.btn-register {
  background: var(--gold); color: var(--navy);
  padding: 0.48rem 1.2rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-register:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-main {
  background: var(--blue); color: #fff;
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-main:hover { background: var(--blue-bright); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold); color: var(--navy);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; border: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 400;
  text-decoration: none; border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-1px); }

.page-head {
  padding: 7.5rem 2rem 2.5rem;
  background: linear-gradient(180deg, rgba(37,99,235,0.12), transparent);
}
.container { max-width: 1080px; margin: 0 auto; }
.learn-article-wrap .container { max-width: 760px; }
.section-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.page-head h1, .section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400; line-height: 1.15; margin-bottom: 1.25rem;
}
.section-sub, .page-head .section-sub {
  font-size: 1.05rem; color: var(--white-dim); max-width: 640px; line-height: 1.75;
}
.learn-crumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.82rem; color: var(--white-dim); margin-bottom: 1rem;
}
.learn-crumb a { color: var(--gold); text-decoration: none; }
.learn-crumb a:hover { text-decoration: underline; }
.learn-meta {
  display: flex; flex-wrap: wrap; gap: 12px 1.25rem;
  font-size: 0.78rem; color: var(--white-dim); margin-top: 1rem;
}

.learn-section { padding: 2.5rem 2rem 4.5rem; }
.learn-category { margin: 0 0 3rem; }
.learn-category h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; margin-bottom: 1.15rem;
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.learn-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.35rem 1.4rem;
  text-decoration: none; color: var(--white);
  transition: border-color 0.2s, transform 0.15s;
  min-width: 0;
}
.learn-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.learn-card-kicker {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}
.learn-card h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.35; }
.learn-card p { font-size: 0.88rem; color: var(--white-dim); line-height: 1.6; }
.learn-card-status {
  margin-top: auto; padding-top: 0.75rem;
  font-size: 0.75rem; color: var(--gold);
}

.takeaways {
  background: var(--navy-mid); border: 1px solid var(--green-border);
  border-radius: 14px; padding: 1.5rem 1.6rem; margin: 0 0 2rem;
}
.takeaways h2 { font-size: 1.15rem; margin-bottom: 0.85rem; }
.takeaways ul { padding-left: 1.15rem; color: var(--white-dim); }
.takeaways li { margin: 0.4rem 0; }

.learn-intro p { color: var(--white-dim); margin-bottom: 1rem; }
.learn-body h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.7rem; font-weight: 400;
  margin: 2.2rem 0 0.85rem;
}
.learn-body h3, .learn-risks h3, .learn-example h3 {
  font-size: 1.05rem; font-weight: 600; margin: 1.4rem 0 0.5rem;
}
.learn-body p, .learn-risks p, .learn-example p { color: var(--white-dim); margin-bottom: 1rem; }
.learn-body ul, .learn-body ol, .learn-risks ul, .learn-example ul {
  padding-left: 1.2rem; color: var(--white-dim); margin: 0 0 1rem;
}
.learn-body li, .learn-risks li, .learn-example li { margin: 0.35rem 0; }
.learn-example, .learn-risks {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.4rem 1.5rem; margin: 2rem 0;
  background: var(--white-faint);
}
.learn-example { border-color: rgba(37,99,235,0.35); }
.learn-risks { border-color: rgba(212,168,83,0.35); }
.learn-example h2, .learn-risks h2 { margin-top: 0; }
.learn-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--navy-mid);
}
.learn-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.learn-table th,
.learn-table td {
  text-align: left;
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.learn-table th {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--white-faint);
}
.learn-table td {
  color: var(--white-dim);
  font-size: 0.92rem;
}
.learn-table tr:last-child td { border-bottom: 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.learn-cta {
  margin-top: 3rem;
  background: linear-gradient(160deg, rgba(37,99,235,0.12) 0%, var(--navy-mid) 60%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: left;
}
.learn-cta h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem; font-weight: 400; margin-bottom: 0.7rem;
}
.learn-cta p { color: var(--white-dim); margin-bottom: 1rem; max-width: 640px; }

footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-family: 'Instrument Serif', serif; font-size: 1rem; }
.footer-logo span { color: var(--gold); }
.footer-company { font-size: 0.75rem; color: var(--white-dim); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--white-dim); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-copy { font-size: 0.75rem; color: var(--white-dim); }
.footer-addr { font-size: 0.72rem; color: rgba(248,246,241,0.35); }

@media (max-width: 960px) {
  .learn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .page-head, .learn-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}
