@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ─── Variables ─────────────────────────────────────────── */
#lms-chrome {
  --primary-blue: #1d1d70;
  --accent-yellow: #ffb800;
  --text-dark: #1d1d70;
  --bg-subtle: #f4f5f7;
  --transition: all 0.3s ease;
  --max-width: 1400px;
}

/* ─── Reset ──────────────────────────────────────────────── */
#lms-chrome {
  overflow-x: hidden;
}

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

#lms-chrome {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-subtle);
}

#lms-chrome h1,
#lms-chrome h2,
#lms-chrome h3 {
  font-weight: 800;
  line-height: 1.2;
}
#lms-chrome p {
  color: #555;
}
#lms-chrome img {
  max-width: 100%;
  display: block;
}

/* ─── Container ──────────────────────────────────────────── */
#lms-chrome .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ─── Button ─────────────────────────────────────────────── */
#lms-chrome .btn {
  display: inline-block;
  padding: 15px 42px;
  background-color: var(--accent-yellow);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.4);
}

#lms-chrome .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(255, 184, 0, 0.5);
}

#lms-chrome section {
  padding: 80px 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
#lms-chrome .hero {
  padding: 50px 0 70px;
}

/* ── Rounded white card ── */
#lms-chrome .hero-inner {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(29, 29, 112, 0.18);
  border-radius: 36px;
  padding: 100px 60px 100px 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  margin: 0 20px;
  min-height: 320px;
  /* Allow icons to overflow card edges */
  overflow: visible;
}

/* ── Decorative dots — left side of card ── */
/* Large orange dot */
#lms-chrome .deco-dot--large {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5a623;
  left: 28px;
  top: 32%;
  z-index: 3;
}

/* Small yellow dot below */
#lms-chrome .deco-dot--small {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-yellow);
  left: 38px;
  top: 68%;
  z-index: 3;
  opacity: 0.75;
}

/* ── Hero portrait ── */
#lms-chrome .hero-image {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
}

#lms-chrome .hero-image .main-hero {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0px);
  }
}

#lms-chrome .hero-image .main-hero {
  width: 320px;
  height: 320px;
  object-fit: contain;
  z-index: 5;
  position: relative;
}

/* ── Floating tech icons ──
   All use position:absolute relative to .hero-inner
   Percentages derived from Figma layout
── */
#lms-chrome .hero-icon {
  position: absolute;
  object-fit: contain;
  transition: transform 0.3s ease;
  z-index: 10;
}

#lms-chrome .hero-icon:hover {
  transform: scale(1.15);
}

/* JS — top edge, just left of text column start */
#lms-chrome .icon-js {
  width: 60px;
  height: 60px;
  top: 20px;
  left: 30%;
}

/* HTML — top-right corner */
#lms-chrome .icon-html {
  width: 60px;
  height: 60px;
  top: 35px;
  right: 90px;
}

/* C — bottom edge, below text column left */
#lms-chrome .icon-c {
  width: 56px;
  height: 56px;
  bottom: 22px;
  left: 35%;
}

/* Python — bottom edge, center of text column */
#lms-chrome .icon-python {
  width: 60px;
  height: 60px;
  bottom: 60px;
  left: 70%;
}

/* CSS — bottom-right corner */
#lms-chrome .icon-css {
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
}

/* ── Hero text ── */
#lms-chrome .hero-content {
  flex: 1;
  z-index: 3;
  padding-left: 10px;
}

#lms-chrome .hero-content h1 {
  font-size: clamp(28px, 3vw, 46px);
  color: var(--primary-blue);
  margin-bottom: 14px;
  font-weight: 900;
  line-height: 1.15;
}

#lms-chrome .hero-content h2 {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--primary-blue);
  margin-bottom: 14px;
  font-weight: 700;
}

#lms-chrome .hero-content p {
  font-size: clamp(14px, 1.1vw, 16px);
  color: #666;
  margin-bottom: 28px;
  max-width: 580px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   SECTION LABELS
═══════════════════════════════════════════════════════════ */
#lms-chrome .section-label {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--primary-blue);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

#lms-chrome .tagline {
  display: block;
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

#lms-chrome .tagline-2 {
  display: block;
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 auto 15px auto;
  border: 1.5px solid var(--accent-yellow);
  border-radius: 100px;
  max-width: 310px;
  padding: 6px 20px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   PRACTICE SECTION
═══════════════════════════════════════════════════════════ */
#lms-chrome .practice {
  background: var(--primary-blue);
  padding: 100px 0;
  color: white;
}

#lms-chrome .practice .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 992px) {
  #lms-chrome .practice .container {
    grid-template-columns: 1fr 1fr;
  }
}

#lms-chrome .practice-content h2 {
  color: white;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 28px;
}

#lms-chrome .practice-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.8;
}

#lms-chrome .code-mockup {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

#lms-chrome .code-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

#lms-chrome .macos-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

#lms-chrome .macos-dot.red {
  background: #ff5f56;
}
#lms-chrome .macos-dot.yellow {
  background: #ffbd2e;
}
#lms-chrome .macos-dot.green {
  background: #27c93f;
}

#lms-chrome .code-window {
  background: #f8f9fa;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 28px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
}

#lms-chrome .code-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 10px 0 14px 0;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

#lms-chrome .code-btn:hover {
  background: var(--accent-yellow);
  color: var(--primary-blue);
}

/* ═══════════════════════════════════════════════════════════
   LEARN SECTION
═══════════════════════════════════════════════════════════ */
#lms-chrome .learn {
  padding: 100px 0;
  text-align: center;
}

#lms-chrome .learn-header {
  margin-bottom: 60px;
}

#lms-chrome .learn-header h2 {
  font-size: clamp(32px, 4vw, 50px);
  color: var(--primary-blue);
  margin-bottom: 20px;
}

#lms-chrome .learn-desc {
  font-size: 17px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

#lms-chrome .learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
}

@media (min-width: 1200px) {
  #lms-chrome .learn-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

#lms-chrome .learn-grid a {
  text-decoration: none;
}

#lms-chrome .card {
  border-radius: 28px;
  border: 1px solid #e0e0e0;
  padding: 30px;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-height: 260px;
}

#lms-chrome .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-yellow);
}

#lms-chrome .card h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

#lms-chrome .card p {
  font-size: 15px;
  color: #666;
  line-height: 1.55;
}

#lms-chrome .card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤991px
═══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  #lms-chrome .hero-inner {
    flex-direction: column;
    padding: 50px 24px 80px;
    gap: 28px;
    border-radius: 28px;
    margin: 0 12px;
    min-height: unset;
  }

  /* Hide decorative dots on mobile */
  #lms-chrome .deco-dot--large,
  #lms-chrome .deco-dot--small {
    display: none;
  }

  #lms-chrome .hero-image {
    width: 240px;
    height: 240px;
  }

  #lms-chrome .hero-image .main-hero {
    width: 240px;
    height: 240px;
  }

  /* On mobile, icons go around the image */
  #lms-chrome .hero-icon {
    width: 38px !important;
    height: 38px !important;
    position: absolute;
  }

  #lms-chrome .icon-js {
    top: 30px;
    left: 50%;
    transform: translateX(-120px);
  }

  #lms-chrome .icon-html {
    top: 30px;
    left: 50%;
    right: auto;
    transform: translateX(60px);
  }

  #lms-chrome .icon-c {
    bottom: 30px;
    left: 50%;
    transform: translateX(-130px);
  }

  #lms-chrome .icon-python {
    bottom: 22px;
    left: 50%;
    transform: translateX(-20px);
  }

  #lms-chrome .icon-css {
    bottom: 30px;
    left: 50%;
    right: auto;
    transform: translateX(70px);
  }

  #lms-chrome .hero-content {
    padding-left: 0;
    text-align: center;
  }

  #lms-chrome .hero-content p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #lms-chrome .hero {
    padding: 30px 0 50px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE ≤768px
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #lms-chrome section {
    padding: 60px 0;
  }

  #lms-chrome .practice {
    padding: 60px 0;
  }
  #lms-chrome .practice .container {
    gap: 40px;
  }
  #lms-chrome .practice-content {
    text-align: center;
  }
  #lms-chrome .practice-content h2 {
    font-size: clamp(26px, 6vw, 36px);
  }
  #lms-chrome .practice-content p {
    font-size: 16px;
  }

  #lms-chrome .code-mockup {
    padding: 16px;
  }
  #lms-chrome .code-window {
    padding: 16px;
    font-size: 12px;
  }

  #lms-chrome .learn {
    padding: 60px 0;
  }
  #lms-chrome .learn-header {
    margin-bottom: 40px;
  }
  #lms-chrome .learn-header h2 {
    font-size: clamp(28px, 6vw, 38px);
  }
  #lms-chrome .learn-desc {
    font-size: 15px;
  }

  #lms-chrome .card {
    padding: 20px;
    min-height: unset;
  }
  #lms-chrome .card h3 {
    font-size: 18px;
  }
  #lms-chrome .card p {
    font-size: 14px;
  }
  #lms-chrome .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }

  #lms-chrome .icon-js {
    width: 60px;
    height: 60px;
    top: 4%;
    left: 40%;
  }

  /* HTML — top-right corner */
  #lms-chrome .icon-html {
    width: 60px;
    height: 60px;
    top: 4%;
    right: 2%;
  }

  /* C — bottom edge, below text column left */
  #lms-chrome .icon-c {
    width: 56px;
    height: 56px;
    bottom: 80%;
    left: 45%;
  }

  /* Python — bottom edge, center of text column */
  #lms-chrome .icon-python {
    width: 60px;
    height: 60px;
    bottom: 60%;
    left: 20%;
  }

  /* CSS — bottom-right corner */
  #lms-chrome .icon-css {
    width: 60px;
    height: 60px;
    bottom: 75%;
    left: 66%;
  }
}
