/* ===== Metacent Academy — Styles ===== */

:root {
  --primary: #1a4d4d;
  --primary-dark: #1a4d4d;
  --primary-soft: #e6f6ef;
  --accent: #c67b3c;
  --accent-soft: #fef3e2;

  --bg: #ffffff;
  --bg-soft: #f5f9f7;
  --bg-soft-2: #eef5f1;

  --text: #13211a;
  --text-muted: #5b6b62;
  --text-light: #8a9990;

  --border: #e3ece7;
  --danger: #dc2626;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 40px rgba(11, 61, 46, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

img {
  max-width: 15rem;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #1a4d4d;
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  background: #1a4d4d;
}

.btn-reg {
  padding: 15px 28px;
  font-size: 16px;
  background: var(--accent);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(11, 61, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.brand-accent {
  color: var(--accent);
}

.site-header.scrolled .brand-logo {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #fff;
}

.site-header.scrolled .nav-link {
  color: var(--text-muted);
}
.site-header.scrolled .nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.site-header.scrolled .nav-toggle {
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(245, 158, 11, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(14, 159, 110, 0.5), transparent 55%),
    linear-gradient(135deg, #0b3d2e 0%, #0e6d4e 55%, #0e9f6e 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 34, 26, 0.45), rgba(8, 34, 26, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 140px 24px 110px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title em {
  font-style: normal;
  color: var(--primary);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* ===== Programs ===== */
.courses-section {
  background: var(--bg-soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.program-card:hover {
  transform: translateY(-4px);
}

.program-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.program-icon-beginner {
  background: var(--primary-soft);
  color: var(--primary);
}
.program-icon-advanced {
  background: var(--accent-soft);
  color: var(--accent);
}

.program-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.tag-beginner {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.tag-advanced {
  background: var(--accent-soft);
  color: #b45309;
}

.program-title {
  font-size: 24px;
  font-weight: 700;
}

.program-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
}

.program-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.program-item:last-child {
  border-bottom: none;
}

.program-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
  flex-shrink: 0;
}
.program-card-advanced .program-dot {
  background: var(--accent);
}

.program-item-body {
  display: flex;
  flex-direction: column;
}
.program-item-body strong {
  font-family: var(--font-heading);
  font-size: 16px;
}
.program-courses {
  color: var(--text-muted);
  font-size: 14px;
}
.program-courses em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-soft-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Registration ===== */
.register-section {
  background: var(--bg-soft);
}

.register-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

.register-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.form-title-spaced {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}
.req {
  color: var(--danger);
}
.optional {
  color: var(--text-light);
  font-weight: 400;
  font-family: var(--font-body);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Level toggle */
.level-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-soft-2);
  padding: 5px;
  border-radius: 999px;
}

.level-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.level-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Track cards */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.track-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.track-card:hover {
  border-color: var(--primary);
}
.track-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.track-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.track-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.track-card.selected .track-radio {
  border-color: var(--primary);
}
.track-card.selected .track-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.track-body {
  display: flex;
  flex-direction: column;
}
.track-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.track-courses {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}
.track-courses em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.field-hidden {
  display: none;
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Submit */
.submit-btn {
  margin-top: 8px;
  font-size: 16px;
  padding: 16px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 14px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.success {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(14, 159, 110, 0.3);
}
.form-status.error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Aside */
.register-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.aside-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.aside-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.aside-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  font-size: 14px;
  color: var(--text-muted);
}
.aside-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #b45309;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aside-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  background: #0c2b20;
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 24px 50px;
}

/*.brand-light .brand-logo {
  color: #fff;
}*/

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  max-width: 260px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #fff;
}
.footer-link-static {
  cursor: default;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease;
}
.social-link:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeUp 0.7s ease both;
}
.hero-badge { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-subtitle { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.hero-stats { animation-delay: 0.45s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .register-layout {
    grid-template-columns: 1fr;
  }
  .register-aside {
    position: static;
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px;
    box-shadow: 0 20px 30px rgba(11, 61, 46, 0.1);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    color: var(--text-muted);
    padding: 12px 0;
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
  .header-actions .btn-primary {
    display: none;
  }

  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-stats {
    gap: 26px;
  }

  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 30px;
  }

  .form-grid,
  .track-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .register-card {
    padding: 26px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}