:root {
  --color-primary: #0FA4AF;
  --color-secondary: #024950;
  --color-accent: #964734;
  --color-bg: #AFDDE5;
  --color-bg-tint: #AFDDE5;
  --color-bg-mid: #AFDDE5;
  --gradient-primary: linear-gradient(135deg, #0FA4AF, #024950);
  --gradient-accent: linear-gradient(90deg, #003135, #024950, #0FA4AF);
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafb;
  color: #1f2937;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6, p, a, span, li {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 74px clamp(20px, 5vw, 80px) 20px;
  background: linear-gradient(160deg, #AFDDE5 0%, rgba(175, 221, 229, 0.45) 50%, #f8fafb 100%);
  width: 100%;
  overflow: hidden;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
}

/* ── Text column ───────────────────────────────────────── */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(15, 164, 175, 0.1);
  border: 1px solid rgba(15, 164, 175, 0.25);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #024950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  align-self: flex-start;
}

.hero-text h1 {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #0f172a;
  letter-spacing: -0.8px;
}

.hero-accent {
  color: #0FA4AF;
}

.hero-text p {
  font-size: clamp(14px, 1.3vw, 16px);
  color: #475569;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 460px;
}

/* ── Subtags row ───────────────────────────────────────── */
.hero-subtags {
  display: flex;
  gap: clamp(4px, 1.2vw, 20px);
  margin-top: 20px;
  margin-bottom: 22px;
  flex-wrap: nowrap;
  align-items: center;
}

.hero-subtags span {
  font-weight: 700;
  font-size: clamp(10px, 3.2vw, 22px);
  letter-spacing: clamp(0.2px, 0.3vw, 1.5px);
  position: relative;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  animation: subtag-fade-in-up 0.8s ease forwards;
}

.hero-subtags span:nth-child(1) {
  color: #0FA4AF;
  animation-delay: 0.2s;
}
.hero-subtags span:nth-child(3) {
  color: #024950;
  animation-delay: 0.4s;
}
.hero-subtags span:nth-child(5) {
  color: #003135;
  animation-delay: 0.6s;
}
.hero-subtags span:nth-child(7) {
  color: #964734;
  animation-delay: 0.8s;
}

.hero-subtags span:not(.subtag-sep)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-subtags span:not(.subtag-sep):hover {
  transform: translateY(-3px) scale(1.08);
  text-shadow: 0 6px 20px currentColor;
  filter: brightness(1.2);
}

.hero-subtags span:not(.subtag-sep):hover::after {
  width: 100%;
}

.subtag-sep {
  color: #cbd5e1;
  font-weight: 300;
  opacity: 0;
  animation: subtag-fade-in 1s ease forwards 1s;
  transition: all 0.3s ease;
}

@keyframes subtag-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtag-fade-in {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

/* ── CTA buttons ───────────────────────────────────────── */
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: #024950;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 49, 53, 0.2);
}

.hero-btn-primary:hover {
  background: #003135;
  box-shadow: 0 4px 16px rgba(0, 49, 53, 0.3);
  color: #ffffff;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid #024950;
  color: #024950;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-btn-secondary:hover {
  background: #024950;
  color: #ffffff;
}

/* ── Visual column ─────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-height: 320px;
}

.hero-image-stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  height: 90%;
  background: #AFDDE5;
  border-radius: 200px 200px 0 0;
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  height: 100%;
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.07));
}

/* ── Wave divider ──────────────────────────────────────── */
.hero-divider {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  background: var(--color-bg-tint);
}

.hero-divider svg {
  width: 100%;
  height: clamp(40px, 5vw, 80px);
  display: block;
}

/* ── Hero responsive ───────────────────────────────────── */
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero { padding: 74px 40px 20px; }
  .hero-content { max-width: 920px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero { padding: 74px 32px 20px; }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: unset;
    max-width: 580px;
    text-align: center;
  }
  .hero-text { padding-bottom: 0; align-items: center; }
  .hero-eyebrow { align-self: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; height: 300px; }
  .hero-image-stage { height: 100%; width: 66%; }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero { padding: 64px 20px 0; }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: unset;
    text-align: center;
  }
  .hero-text { padding-bottom: 0; align-items: center; }
  .hero-eyebrow { align-self: center; }
  .hero-text h1 { font-size: 26px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; height: 260px; }
  .hero-image-stage { height: 100%; width: 70%; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 16px 0; }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: unset;
    text-align: center;
  }
  .hero-text { padding-bottom: 0; align-items: center; }
  .hero-eyebrow { align-self: center; }
  .hero-text h1 { font-size: 24px; letter-spacing: -0.5px; }
  .hero-text p { margin-left: auto; margin-right: auto; font-size: 13px; }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
    font-size: 13px;
  }
  .hero-visual { order: -1; height: 220px; }
  .hero-image-stage { height: 100%; width: 74%; }
}

/* ================================================================
   PLATFORM HUB
   ================================================================ */
.platform-hub {
  background: #ffffff;
  width: 100%;
}

.hub-intro {
  text-align: center;
  padding: 24px clamp(20px, 5vw, 80px) 24px;
  max-width: 860px;
  margin: 0 auto;
}

.hub-eyebrow {
  display: inline-block;
  background: rgba(15, 164, 175, 0.1);
  border: 1px solid rgba(15, 164, 175, 0.25);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #024950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hub-intro h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hub-intro p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: #475569;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .hub-intro { max-width: 1100px; }
  .hub-intro h2 {
    white-space: nowrap;
    font-size: clamp(20px, 1.9vw, 26px);
  }
}

@media (max-width: 480px) {
  .hub-intro { padding: 20px 20px 20px; }
}

/* ================================================================
   MODULES GRID
   ================================================================ */
.modules {
  margin: 0 auto;
  padding: 12px clamp(16px, 5vw, 60px) 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 25px;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 1920px) {
  .modules {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 30px;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .modules {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 25px;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .modules {
    max-width: 1200px;
    padding: 0 40px 60px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .modules {
    padding: 0 30px 50px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 20px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .modules {
    padding: 12px 20px 40px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .modules {
    padding: 24px 16px 40px;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
}

/* ================================================================
   MODULE CARDS
   ================================================================ */
.module {
  background: transparent;
  border-radius: 18px;
  min-height: 180px;
  height: auto;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.module-inner {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: auto;
  flex: 1;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.module.flipped .module-inner {
  transform: rotateY(180deg);
}

.module-front,
.module-back {
  position: absolute;
  width: 100%;
  min-height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.module-front {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 164, 175, 0.12);
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  text-align: left;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.module-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0FA4AF, #024950);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.module:not(.no-flip):hover .module-front::before {
  transform: scaleX(1);
}

.module:not(.no-flip):hover .module-front {
  box-shadow: 0 20px 60px rgba(15, 164, 175, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(15, 164, 175, 0.28);
}

.module-back {
  background: linear-gradient(135deg, #0FA4AF 0%, #024950 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  text-align: center;
  color: white;
}

.coming-soon-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: rocket-bounce 1.5s ease-in-out infinite;
}

@keyframes rocket-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

.module-back h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: white;
  font-weight: 700;
}

.module-back p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* ── No-flip (live) cards ──────────────────────────────── */
.module.no-flip:hover {
  transform: translateY(-10px) scale(1.02);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.module.no-flip .module-front {
  box-shadow: 0 10px 40px rgba(15, 164, 175, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.module.no-flip:hover .module-front {
  box-shadow: 0 20px 60px rgba(15, 164, 175, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(15, 164, 175, 0.28);
}

/* ── Mentor card highlight ─────────────────────────────── */
@keyframes mentor-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(2, 73, 80, 0), 0 12px 40px rgba(15, 164, 175, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 164, 175, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(2, 73, 80, 0.12), 0 18px 50px rgba(15, 164, 175, 0.3), inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(2, 73, 80, 0.65);
  }
}

.module[data-module="mentor"] {
  margin-top: -4px;
}

.module[data-module="mentor"] .module-front {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(175, 221, 229, 0.2) 100%);
  border: 1.5px solid rgba(15, 164, 175, 0.3);
  animation: mentor-glow-pulse 3s ease-in-out infinite;
}

.module[data-module="mentor"] .module-front::before {
  transform: scaleX(1);
}

.module[data-module="mentor"]:hover {
  transform: translateY(-8px) scale(1.01);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Live badge ────────────────────────────────────────── */
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.live-badge,
.cta-hint,
.module-desc {
  grid-column: 1 / -1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 164, 175, 0.1);
  color: #024950;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 164, 175, 0.25);
  box-shadow: 0 2px 8px rgba(15, 164, 175, 0.12);
  align-self: center;
  flex-shrink: 0;
  justify-self: start;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0FA4AF;
  flex-shrink: 0;
  animation: live-dot-pulse 1.4s ease-in-out infinite;
}

.cta-hint {
  font-size: 11px;
  color: #0FA4AF;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
}

/* ── Module icon ───────────────────────────────────────── */
.module-icon {
  grid-column: 1;
  grid-row: 1;
  border-radius: 16px;
  padding: 4px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
  color: var(--color-primary);
}

.module-icon svg {
  width: 42px;
  height: 42px;
  display: block;
}

/* ── Module info ───────────────────────────────────────── */
.module-info {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.module-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #024950;
  margin: 0;
  line-height: 1.3;
}

.module-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ── Module responsive ─────────────────────────────────── */
@media (max-width: 480px) {
  .module:not(.no-flip) {
    min-height: 160px;
  }
  .module-inner {
    height: 100%;
    min-height: inherit;
  }
  .module:not(.no-flip) .module-front,
  .module:not(.no-flip) .module-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: inherit;
  }
  .module.no-flip .module-front {
    position: relative;
    height: auto;
    min-height: 0;
    transform: none;
    backface-visibility: visible;
  }
  .module-info h3 { font-size: 16px; }
  .module-desc { font-size: 12px; }
}

/* ================================================================
   JOIN STRIP
   ================================================================ */
.join-strip {
  background: linear-gradient(160deg, #024950 0%, #003135 100%);
  border-top: 1px solid rgba(15, 164, 175, 0.12);
  text-align: center;
  padding: 72px clamp(20px, 5vw, 80px);
  width: 100%;
}

.join-inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hub-eyebrow--light {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.join-strip h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 14px 0 10px;
  line-height: 1.2;
}

.join-strip p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin-bottom: 28px;
}

.join-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.join-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: #AFDDE5;
  color: #003135;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.join-btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: #003135;
}

.join-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.join-btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@media (max-width: 480px) {
  .join-strip { padding: 52px 20px; }
  .join-actions {
    flex-direction: column;
    width: 100%;
  }
  .join-btn-primary,
  .join-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
