/* ===== Landing Page - Cloodit ===== */

/* ===== Variables ===== */
:root {
  --primary-orange: #FF7043;
  --primary-orange-dark: #D84315;
  --primary-purple: #6C5CE7;
  --primary-purple-dark: #4A3CB5;
  --desert-sand: #F4D03F;
  --desert-sky: #87CEEB;
  --dark-text: #2E2E42;
  --medium-text: #777;
  --light-text: #ECF0F1;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --success-green: #16A085;
  --star-yellow: #F1C40F;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Quicksand', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--bg-white);
}

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

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

/* ===== Utility ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 16px;
}

.section-heading.light {
  color: var(--bg-white);
}

.section-sub {
  font-size: 20px;
  color: var(--medium-text);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.5;
}

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

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero is always visible */
.hero {
  opacity: 1;
  transform: none;
}

/* ===== SECTION 1: Navigation ===== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--medium-text);
  padding: 10px 22px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--dark-text);
  background: rgba(0,0,0,0.04);
}

.nav-link-action {
  background: var(--primary-orange);
  color: #fff !important;
  border-radius: 14px;
  font-weight: 700;
  padding: 10px 22px;
  box-shadow: 0 4px 0 var(--primary-orange-dark);
}

.nav-link-action:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--primary-orange-dark);
}

.nav-link-action:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--primary-orange-dark);
}

.nav-link-signin {
  background: #EDE7FF;
  color: var(--primary-purple) !important;
  border-radius: 14px;
  font-weight: 700;
  padding: 10px 22px;
  box-shadow: 0 4px 0 var(--primary-purple-dark);
}

.nav-link-signin:hover {
  background: #EDE7FF;
  color: var(--primary-purple) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--primary-purple-dark);
}

.nav-link-signin:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--primary-purple-dark);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-hamburger:hover {
  background: rgba(0,0,0,0.04);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Floating shapes ===== */
.shape {
  position: absolute;
  border-radius: 20px;
  opacity: 0.08;
  pointer-events: none;
}
.shape-1 {
  width: 120px; height: 120px;
  background: #FF6B6B;
  top: 12%; left: 8%;
  transform: rotate(15deg);
  animation: drift 7s ease-in-out infinite;
}
.shape-2 {
  width: 80px; height: 80px;
  background: #FFC048;
  top: 20%; right: 12%;
  border-radius: 50%;
  animation: drift 9s ease-in-out infinite reverse;
}
.shape-3 {
  width: 100px; height: 100px;
  background: #00B894;
  bottom: 15%; left: 15%;
  border-radius: 50%;
  animation: drift 8s ease-in-out infinite;
}
.shape-4 {
  width: 90px; height: 90px;
  background: #6C5CE7;
  bottom: 20%; right: 10%;
  transform: rotate(-20deg);
  animation: drift 10s ease-in-out infinite reverse;
}
.shape-5 {
  width: 60px; height: 60px;
  background: #42A5F5;
  top: 50%; left: 5%;
  border-radius: 50%;
  animation: drift 6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  33% { transform: translate(15px, -10px) rotate(var(--r, 0deg)); }
  66% { transform: translate(-10px, 15px) rotate(var(--r, 0deg)); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== SECTION 2: Hero (full viewport) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(108,92,231,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,107,107,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255,193,7,0.05) 0%, transparent 50%),
    linear-gradient(170deg, #ffffff 0%, #FFF8F5 40%, #F5F0FF 70%, #F0FAFF 100%);
  padding: 88px 24px 48px;
  overflow: hidden;
}

.hero-card {
  background: #fff;
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.07),
    0 0 0 3px rgba(108,92,231,0.10);
  max-width: 580px;
  position: relative;
  z-index: 1;
  text-align: center;
  animation: popIn 0.5s ease-out;
}

.hero-logo {
  width: min(360px, 70vw);
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  background: linear-gradient(
    90deg,
    #E74C8A,
    #F47B3E,
    #F5C842,
    #4EBF6E,
    #3CABD6,
    #7C6DD8,
    #B76DAF
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: popIn 0.5s ease-out 0.1s both;
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 19px);
  color: var(--medium-text);
  margin-bottom: 32px;
  font-weight: 600;
  animation: popIn 0.5s ease-out 0.2s both;
}

.hero-sub em {
  font-style: normal;
  color: var(--primary-purple);
  font-weight: 700;
}

.hero-btns {
  animation: popIn 0.5s ease-out 0.3s both;
}

.btn-hero {
  font-size: 20px;
  padding: 14px 38px;
}

.hero-join-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  animation: popIn 0.5s ease-out 0.35s both;
}

.hero-join-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: #888;
}

.hero-join-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-join-input {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  width: 130px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: #f7f7f7;
  color: #333;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.hero-join-input::placeholder {
  color: #bbb;
  letter-spacing: 2px;
  font-weight: 400;
}

.hero-join-input:focus {
  border-color: #aaa;
  background: #fff;
}

.hero-join-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #e8734a;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.hero-join-btn:hover {
  background: #d4623b;
}

.hero-secondary {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  animation: popIn 0.5s ease-out 0.4s both;
}

.hero-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-purple);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.hero-link:hover {
  border-bottom-color: var(--primary-purple);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--medium-text);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.2s ease;
  padding: 8px;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-orange);
  color: white;
  padding: 14px 38px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--primary-orange-dark);
  transition: all 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--primary-orange-dark);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-orange-dark);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  color: var(--primary-purple);
  padding: 14px 38px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 16px;
  border: 2px solid var(--primary-purple);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #F0EAFF;
}

.btn-play {
  font-size: 14px;
}

.btn-xl {
  font-size: 22px;
  padding: 22px 52px;
}

/* Dots (used in carousel mockups) */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28C840; }

/* ===== SECTION 3: How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-purple);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary-purple);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--medium-text);
  line-height: 1.6;
}

/* ===== SECTION 4: See It In Action ===== */
.see-it-in-action {
  padding: 100px 0;
  background: url('images/biomes/dry-desert-biome.png') bottom center / auto 120px repeat-x,
              linear-gradient(180deg, #7FB3D8 0%, #A8C5E8 60%, #D4B896 100%);
  position: relative;
}

.carousel {
  max-width: 700px;
  margin: 48px auto 0;
}

.carousel-track {
  position: relative;
  min-height: 360px;
}

.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-frame {
  width: 100%;
  max-width: 600px;
}

.slide-mockup {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #F0F0F0;
}

.mockup-content {
  padding: 48px 32px;
  text-align: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.demo-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--medium-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Typing demo */
.demo-code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 28px;
  line-height: 1.6;
}

.typed {
  color: var(--success-green);
}

.cursor-blink {
  color: var(--dark-text);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.untyped {
  color: #BDC3C7;
}

.demo-stats {
  display: flex;
  gap: 24px;
  font-size: 16px;
  color: var(--medium-text);
}

/* Stars demo */
.demo-stars {
  display: flex;
  gap: 8px;
}

.demo-star {
  font-size: 48px;
  color: #DDD;
}

.demo-star.filled {
  color: var(--star-yellow);
}

.demo-msg {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-text);
}

/* Badge demo */
.demo-badge-img img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.demo-badge-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-purple);
}

.slide-caption {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  margin-top: 20px;
  text-align: center;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.4);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: white;
  border-color: white;
}

/* ===== SECTION 5: What You'll Learn ===== */
.what-youll-learn {
  padding: 100px 0;
  background: var(--bg-white);
}

.modules-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.modules-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.biome-icon {
  font-size: 48px;
}

.biome-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-text);
}

.biome-sub {
  font-size: 14px;
  color: var(--medium-text);
  margin-top: 2px;
}

.modules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.module-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid #E8E8E8;
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  transition: all 0.2s ease;
  cursor: default;
}

.module-chip:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 2px 8px rgba(108,92,231,0.15);
  transform: translateY(-2px);
}

.chip-num {
  width: 28px;
  height: 28px;
  background: var(--primary-purple);
  color: white;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-label {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
}

.badges-intro {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: var(--dark-text);
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
  cursor: default;
}

.badge-preview:hover {
  transform: scale(1.15);
}

.badge-preview img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.badge-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--medium-text);
}

/* ===== SECTION 6: Why It Works ===== */
.why-it-works {
  padding: 100px 0;
  background: url('images/biomes/dry-desert-biome.png') bottom center / auto 120px repeat-x,
              linear-gradient(180deg, #7FB3D8 0%, #A8C5E8 60%, #D4B896 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 12px;
}

.benefit-desc {
  font-size: 15px;
  color: var(--medium-text);
  line-height: 1.6;
}

/* ===== SECTION 7: For Teachers ===== */
.for-teachers {
  padding: 100px 0;
  background: #F8F9FA;
}

.teacher-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.teacher-list {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.teacher-list li {
  font-size: 18px;
  color: var(--dark-text);
  padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.teacher-list li:last-child {
  border-bottom: none;
}

.check {
  color: var(--success-green);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.teacher-btn {
  margin-top: 8px;
}

/* ===== SECTION 8: Final CTA ===== */
.final-cta {
  padding: 120px 0;
  background: linear-gradient(180deg, rgba(44,62,80,0.85), rgba(44,62,80,0.9)),
              url('images/biomes/sun-sky.png') center / cover no-repeat;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 36px;
  line-height: 1.2;
}

.cta-micro {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-top: 24px;
}

/* ===== SECTION 9: Footer ===== */
.landing-footer {
  background: var(--dark-text);
  color: var(--light-text);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-img {
  height: 36px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: #95A5A6;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #95A5A6;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #7F8C8D;
}

/* ===== RESPONSIVE: Tablet ===== */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 8px 0;
  }

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

  .nav-link {
    padding: 14px 24px;
    border-radius: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link-action,
  .nav-link-signin {
    margin: 4px 16px;
    border-radius: 8px;
    text-align: center;
  }

  /* Hero mobile */
  .hero-card {
    padding: 32px 20px;
    margin: 0 8px;
  }

  .btn-hero {
    font-size: 17px;
    padding: 12px 28px;
  }

  .shape { display: none; }

  /* Sections */
  .section-heading {
    font-size: 32px;
  }

  .how-it-works, .see-it-in-action, .what-youll-learn,
  .why-it-works, .for-teachers {
    padding: 72px 0;
  }

  .modules-card {
    padding: 24px;
  }

  .badges-row {
    gap: 24px;
  }

  .badge-preview img {
    width: 70px;
    height: 70px;
  }

  .teacher-card {
    padding: 32px 24px;
  }

  .teacher-list li {
    font-size: 16px;
  }

  /* CTA */
  .final-cta {
    padding: 80px 0;
  }

  .cta-heading {
    font-size: 32px;
  }

  .btn-xl {
    font-size: 18px;
    padding: 18px 40px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .mockup-content {
    padding: 32px 16px;
    min-height: 200px;
  }

  .demo-code {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 28px;
  }

  .section-heading {
    font-size: 26px;
  }

  .module-chip {
    padding: 6px 14px 6px 6px;
  }

  .chip-label {
    font-size: 12px;
  }

  .badge-preview img {
    width: 60px;
    height: 60px;
  }

  .demo-star {
    font-size: 36px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  section {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
