:root {
  --bg: #f7f8f3;
  --bg-strong: #e5ead4;
  --surface: #ffffff;
  --ink: #0d1b2a;
  --ink-soft: #3f4d5b;
  --line: #d5debc;
  --accent: #ff6b35;
  --accent-2: #2f9c95;
  --shadow: 0 20px 50px rgba(13, 27, 42, 0.08);
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f8f1 0%, #eef1e2 100%);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(213, 222, 188, 0.8);
  backdrop-filter: blur(8px);
  background: rgba(248, 248, 241, 0.85);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--accent-2);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.12;
  margin: 0;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.lead {
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0.8rem;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
}

.btn-primary {
  background: #0b63ce;
  color: #fff;
}

.btn-secondary {
  background: #dfe8c0;
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #084a99;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #cddba1;
}

.btn:focus-visible {
  outline: 3px solid #0d1b2a;
  outline-offset: 2px;
}

.hero-panel {
  background: radial-gradient(circle at 20% 10%, #f8ffdd, #ebf0d5 55%, #dde5c2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.hero-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.hero-panel li + li {
  margin-top: 0.4rem;
}

.shape {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.65;
}

.shape-one {
  width: 260px;
  height: 260px;
  background: linear-gradient(180deg, #ffd69e, #ff9966);
  top: -70px;
  right: -60px;
}

.shape-two {
  width: 220px;
  height: 220px;
  background: linear-gradient(180deg, #8bd5d0, #5b9b95);
  bottom: -80px;
  left: -80px;
}

.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--ink);
  color: #fff;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.22rem;
}

.card p {
  color: var(--ink-soft);
}

.card a {
  color: var(--ink);
  font-weight: 700;
}

.card a.btn-primary {
  color: #fff;
}

.blog-card .tag,
.platform {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.platform.udemy {
  color: #6f3ff5;
}

.platform.pluralsight {
  color: #ea1d5d;
}

.courses {
  background: linear-gradient(180deg, rgba(223, 232, 192, 0.34), transparent);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.path-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f9fbe7;
  padding: 1.2rem;
}

.path-card p {
  color: var(--ink-soft);
}

.path-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}

.path-link:hover,
.path-link:focus-visible {
  color: var(--accent-2);
}

.newsletter-inner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #eef5da 100%);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  width: min(420px, 100%);
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.66rem 0.88rem;
}

.newsletter-form input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.newsletter-form input.input-error {
  border-color: #c73e1d;
  background: #fff1ed;
}

.newsletter-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.newsletter-status {
  margin: 0.6rem 0 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.newsletter-status.success {
  color: #1f7a3b;
}

.newsletter-status.error {
  color: #c73e1d;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.blog-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.blog-main h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.blog-meta {
  margin: 0.5rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.blog-main h2 {
  font-size: 1.3rem;
  margin: 1.2rem 0 0.4rem;
}

.blog-main p,
.blog-main li {
  color: var(--ink-soft);
}

.blog-main ul {
  margin: 0.2rem 0 0.8rem;
}

.blog-sidebar {
  background: #f9fbe7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.blog-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.blog-sidebar p,
.blog-sidebar li {
  color: var(--ink-soft);
  margin: 0.35rem 0;
}

.blog-template-note {
  border: 1px dashed var(--accent-2);
  border-radius: 12px;
  background: #f1f8f6;
  padding: 0.7rem;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--ink-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .path-grid,
  .course-grid,
  .blog-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 4%;
    left: 4%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }
}
