:root {
  --bg: #f7faf9;
  --bg-soft: #eef5f2;
  --ink: #0b1f2a;
  --muted: #5f6f76;
  --panel: #ffffff;
  --panel-tint: #f4faf7;
  --panel-strong: #0f3d3e;
  --accent: #0f766e;
  --accent-2: #f59e0b;
  --accent-3: #2563eb;
  --line: rgba(11, 31, 42, 0.12);
  --line-strong: rgba(11, 31, 42, 0.2);
  --shadow: 0 22px 60px rgba(15, 61, 62, 0.13);
  --shadow-soft: 0 12px 34px rgba(15, 61, 62, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 85% 8%, rgba(37, 99, 235, 0.11), transparent 26rem),
    radial-gradient(circle at 8% 20%, rgba(15, 118, 110, 0.12), transparent 30rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  font-family: "Aptos Display", "Segoe UI Variable", "Aptos", "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(247, 250, 249, 0.2), rgba(247, 250, 249, 0.92) 42rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(247, 250, 249, 0.82);
  border-bottom: 1px solid rgba(11, 31, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    var(--panel-strong);
  box-shadow: 0 10px 24px rgba(15, 61, 62, 0.22);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.25rem 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 74px);
  padding-top: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--accent-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 7.4vw, 6.7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 1.2rem;
  color: #1f3440;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 650;
  line-height: 1.35;
}

.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--panel-strong);
  box-shadow: 0 14px 30px rgba(15, 61, 62, 0.22);
}

.button.secondary {
  color: var(--panel-strong);
  border-color: var(--line);
  background: #ffffff;
}

.button.secondary:hover {
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.project-card,
.mini-dashboard,
.card,
.tools-section article,
.tools-section a,
.module-grid article,
.module-grid a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border-radius: 26px;
}

.hero-panel::before {
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.hero-panel::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  content: "";
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
}

.panel-header,
.panel-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 850;
}

.panel-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(15, 118, 110, 0.13);
}

.process-list {
  position: relative;
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.92rem 0.95rem;
  border: 1px solid rgba(11, 31, 42, 0.07);
  border-radius: 16px;
  background: #ffffff;
}

.process-list span {
  min-width: 2.2rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 950;
}

.problem-grid,
.project-section,
.tools-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.text-column {
  color: var(--muted);
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 1rem;
  content: "✓";
  color: var(--accent);
  font-weight: 950;
}

.workflow-section {
  text-align: center;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.workflow div {
  position: relative;
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 61, 62, 0.16);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    var(--panel-strong);
  font-weight: 900;
}

.workflow div::after {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 70px;
  height: 70px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid,
.tool-grid,
.security-grid,
.module-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  min-height: 178px;
  padding: 1.15rem;
  border-radius: 20px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.tools-section article:hover,
.tools-section a:hover,
.module-grid article:hover,
.module-grid a:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card p,
.tools-section p,
.module-grid small {
  color: var(--muted);
}

.security-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.22), transparent 18rem),
    linear-gradient(135deg, #0b1f2a, #0f3d3e 58%, #14524f);
  box-shadow: 0 28px 80px rgba(11, 31, 42, 0.24);
}

.security-band .eyebrow {
  color: #fbbf24;
}

.security-grid {
  grid-template-columns: repeat(2, 1fr);
}

.security-grid div {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 820;
}

.project-card,
.mini-dashboard {
  padding: 1.45rem;
  border-radius: 24px;
}

.project-card {
  background:
    linear-gradient(180deg, #ffffff, var(--panel-tint));
}

.dashboard-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.dashboard-row.strong {
  color: var(--ink);
  font-weight: 900;
}

.module-grid {
  grid-template-columns: repeat(3, 1fr);
}

.module-grid article,
.module-grid a {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}

.module-grid span {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 950;
}

.module-grid strong,
.module-grid small {
  display: block;
}

.tool-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tools-section article,
.tools-section a {
  min-height: 170px;
  padding: 1.25rem;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
}

.final-cta {
  max-width: 900px;
  text-align: center;
}

.final-cta p {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .problem-grid,
  .project-section,
  .tools-section,
  .security-band {
    grid-template-columns: 1fr;
  }

  .workflow,
  .card-grid.five,
  .module-grid,
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 1rem;
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .workflow,
  .card-grid.five,
  .module-grid,
  .tool-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

.course-page {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 118, 110, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
}

.course-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.course-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.course-sidebar strong {
  margin-bottom: 0.35rem;
}

.course-sidebar a {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 750;
}

.course-sidebar a:hover {
  color: var(--ink);
  background: var(--panel-tint);
}

.lesson {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.lesson h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
}

.lesson h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.lesson h3 {
  margin-top: 1.7rem;
  font-size: 1.2rem;
}

.lesson p,
.lesson li {
  color: var(--muted);
  font-size: 1.04rem;
}

.lesson ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.35rem;
}

.lesson pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  background: #0b1f2a;
  color: #e7fffb;
}

.lesson code {
  font-family: "Cascadia Code", "Consolas", monospace;
}

.lesson p code,
.lesson li code {
  padding: 0.13rem 0.34rem;
  border-radius: 7px;
  color: var(--panel-strong);
  background: rgba(15, 118, 110, 0.1);
}

.lesson table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.lesson td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.lesson tr:first-child td {
  color: var(--ink);
  background: var(--panel-tint);
  font-weight: 850;
}

.module-list-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.module-link {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.module-link span {
  color: var(--accent);
  font-weight: 950;
}

.module-link strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .course-shell {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .module-list-page {
    grid-template-columns: 1fr;
  }
}
