/* X3 Academy — static marketing site
   Palette: navy / teal. System sans-serif. No build step. */

:root {
  --navy: #0b1c2e;
  --navy-deep: #071421;
  --navy-mid: #16324a;
  --teal: #0f746e;
  --teal-hover: #0c5f5a;
  --teal-bright: #2aafa7;
  --teal-soft: #e7f4f3;
  --cream: #f5f3ef;
  --paper: #ffffff;
  --ink: #17202a;
  --ink-soft: #3d4a57;
  --muted: #5c6b76;
  --line: #d6ddd9;
  --line-soft: #e6eae7;
  --shadow: 0 16px 40px rgba(11, 28, 46, 0.10);
  --shadow-sm: 0 6px 18px rgba(11, 28, 46, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 72px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-hover);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 200;
  background: var(--paper);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--teal-soft);
  border-color: var(--teal-soft);
  color: var(--navy);
}

.btn-nav {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: #fff;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #10263d;
  border: 1px solid rgba(42, 175, 167, 0.55);
  color: var(--teal-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-text {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  font-weight: 600;
  opacity: 0.92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-row-links {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 20, 33, 0.94) 0%,
      rgba(7, 20, 33, 0.86) 28%,
      rgba(7, 20, 33, 0.48) 58%,
      rgba(7, 20, 33, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 20, 33, 0.18) 0%,
      rgba(7, 20, 33, 0) 30%,
      rgba(7, 20, 33, 0.28) 100%
    );
}

.hero-inner {
  padding: 5.5rem 0 7.5rem;
  max-width: 40rem;
  margin-left: 0;
}

.hero-inner .eyebrow {
  color: var(--teal-bright);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.9);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Credibility strip ---------- */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -3.25rem;
  padding-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.stat {
  padding: 1.6rem 1.5rem 1.7rem;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line-soft);
}

.stat-value {
  display: block;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ---------- Shared sections ---------- */

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

#courses,
#about,
#how,
#notify {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

/* ---------- Courses ---------- */

.courses {
  padding-top: 4.75rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy-mid);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.35rem 1.5rem;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.card-body > p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.card-body ul {
  list-style: none;
  margin-top: auto;
}

.card-body li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.3rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
}

.card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: inset 0 0 0 2px var(--teal);
}

/* ---------- About ---------- */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.about-copy p + p {
  margin-top: 1em;
}

.about-creds {
  display: grid;
  gap: 1.15rem;
}

.cred {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.55rem;
}

.cred-num {
  display: block;
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.cred-num span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy-mid);
  margin-left: 0.15rem;
}

.cred-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  align-items: center;
}

.how-photo {
  position: relative;
}

.how-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.how-photo::after {
  content: "";
  position: absolute;
  inset: auto -0.85rem -0.85rem auto;
  width: 42%;
  height: 42%;
  background: var(--teal-soft);
  border-radius: var(--radius);
  z-index: -1;
}

.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.how-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.how-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0.25rem;
}

.how-item p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.cta .eyebrow {
  color: var(--teal-bright);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta p {
  color: rgba(245, 243, 239, 0.86);
  font-size: 1.08rem;
  margin-bottom: 1.6rem;
}


/* ---------- Notify form ---------- */

.cta-inner {
  max-width: 40rem;
}

.notify-form {
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 1.05rem;
}

.form-field label,
.interest-legend {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.92);
}

.form-field .optional {
  font-weight: 500;
  color: rgba(245, 243, 239, 0.62);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(245, 243, 239, 0.45);
}

.form-field input:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
}

.form-field input:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 2px;
  border-color: var(--teal-bright);
}

.interest-fieldset {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0;
}

.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
}

.interest-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(245, 243, 239, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.interest-option input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--teal-bright);
  flex-shrink: 0;
}

.notify-form .btn {
  width: 100%;
}

.notify-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  text-align: left;
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
}

.form-status.is-success {
  background: rgba(42, 175, 167, 0.18);
  border: 1px solid rgba(42, 175, 167, 0.55);
  color: #d8f4f2;
}

.form-status.is-error {
  background: rgba(220, 80, 80, 0.16);
  border: 1px solid rgba(232, 130, 130, 0.5);
  color: #ffd6d6;
}

.honeypot {
  display: none !important;
}

/* ---------- Thanks page ---------- */

.thanks {
  min-height: calc(70vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.thanks-inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.thanks-inner h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.thanks-inner p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 1.6rem;
}

@media (max-width: 800px) {
  .thanks {
    padding: 3.75rem 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 243, 239, 0.78);
  padding: 2.75rem 0 2.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-brand a.email {
  color: rgba(245, 243, 239, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.footer-brand a.email:hover {
  color: var(--teal-bright);
}

.footer-meta {
  text-align: right;
}

.footer-disclaimer,
.footer-copy {
  max-width: 52rem;
  margin: 0 0 0.7rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(245, 243, 239, 0.7);
}

.footer-copy {
  margin: 0;
  color: rgba(245, 243, 239, 0.7);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .course-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .about-grid,
  .how-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .how-photo {
    order: -1;
  }

  .about-creds {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  :root {
    --nav-h: auto;
  }

  .nav-inner {
    flex-wrap: wrap;
    min-height: 60px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.35rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-row-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.1rem;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0.15rem 0 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-row-links a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.35rem 0;
  }

  .nav-row-links a:hover {
    color: #fff;
  }

  .hero {
    min-height: 0;
  }

  .hero-img {
    object-position: 78% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(7, 20, 33, 0.78) 0%,
        rgba(7, 20, 33, 0.82) 55%,
        rgba(7, 20, 33, 0.9) 100%
      );
  }

  .hero-inner {
    max-width: none;
    padding: 3.25rem 0 5.5rem;
  }

  .stats {
    margin-top: -2.4rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .courses {
    padding-top: 3.5rem;
  }

  .cta {
    padding: 3.75rem 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(var(--max), calc(100% - 2rem));
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .stat {
    padding: 1.2rem 1.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-creds {
    grid-template-columns: 1fr;
  }

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

  .footer-meta {
    text-align: left;
  }

  .how-photo::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .course-card,
  .btn {
    transition: none;
  }

  .course-card:hover {
    transform: none;
  }
}
.form-field textarea { resize: vertical; font-family: inherit; }
