* {
  box-sizing: border-box;
}

:root {
  --bg: #f6fbff;
  --bg-alt: #eef8ff;
  --text: #11324a;
  --muted: #5f7d93;
  --primary: #48b9ff;
  --primary-strong: #1497f2;
  --white: #ffffff;
  --line: rgba(17, 50, 74, 0.1);
  --shadow: 0 20px 60px rgba(48, 125, 180, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(72, 185, 255, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(20, 151, 242, 0.12), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(238,248,255,0.9));
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  width: min(calc(100% - 1rem), 1220px);
  margin: 16px auto 0;
  border: 1px solid rgba(255,255,255,0.45);
}

.glass {
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-xl);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 30px rgba(20, 151, 242, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 99px;
  margin: 5px 0;
  transition: 0.3s ease;
}

.hero {
  padding-top: 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(72, 185, 255, 0.14);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-strong), #7bd5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(20, 151, 242, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(20, 151, 242, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.8);
  box-shadow: inset 0 0 0 1px rgba(17, 50, 74, 0.08);
}

.btn-sm {
  min-height: 42px;
  padding: 0.75rem 1rem;
}

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

.stat {
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(420px, 100%);
  padding: 1rem;
  border-radius: 36px;
  position: relative;
}

.phone-top {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(17, 50, 74, 0.28);
}

.phone-content {
  padding: 1rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(230,246,255,0.9));
}

.lesson-card,
.mini-card,
.feature-card,
.step,
.info-panel,
.code-card,
.backend-points,
.cta,
.pricing-card {
  border-radius: var(--radius-lg);
}

.lesson-card {
  background: linear-gradient(180deg, #56c3ff, #139ef8);
  color: white;
  padding: 1.2rem;
  box-shadow: 0 24px 50px rgba(20, 151, 242, 0.25);
}

.lesson-card small {
  opacity: 0.92;
}

.lesson-card h3 {
  margin-top: 0.5rem;
  line-height: 1.2;
}

.progress-row {
  margin: 1rem 0 0.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 82%;
  height: 100%;
  background: white;
  border-radius: inherit;
}

.mini-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.mini-card {
  background: rgba(255,255,255,0.86);
  padding: 1rem;
  box-shadow: 0 14px 26px rgba(48, 125, 180, 0.1);
}

.mini-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid,
.steps,
.pricing-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.step,
.pricing-card {
  padding: 1.4rem;
}

.icon-wrap {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(72, 185, 255, 0.12);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  border-radius: 12px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.split-grid,
.backend-layout,
.cta,
.footer-wrap {
  display: grid;
  gap: 1.2rem;
}

.split-grid {
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin-bottom: 0.9rem;
  padding-left: 1.8rem;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--primary-strong);
}

.info-panel {
  padding: 1.4rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-card .plan-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(72,185,255,0.14);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(72,185,255,0.18), rgba(255,255,255,0.9));
  transform: translateY(-8px);
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.plan-subtitle {
  margin-bottom: 1rem;
}

.plan-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  padding: 0.55rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.plan-list li:last-child {
  border-bottom: 0;
}

.backend-layout {
  grid-template-columns: 1fr 0.9fr;
}

.code-card,
.backend-points {
  padding: 1.4rem;
}

pre {
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem;
  border-radius: 16px;
  background: #0c2333;
  color: #d8f3ff;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.code-card,
.backend-points,
.backend-layout > * {
  min-width: 0;
}

.backend-point {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.backend-point:last-child {
  border-bottom: 0;
}

.cta {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.5rem;
}

.site-footer {
  padding: 1.4rem 0 3rem;
}

.footer-wrap {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: #70d4ff;
  top: 10%;
  left: -40px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #7abfff;
  right: -80px;
  bottom: 12%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.floating {
  animation: floatY 6s ease-in-out infinite;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .steps,
  .split-grid,
  .pricing-grid,
  .backend-layout,
  .cta,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 80px 0;
  }

  h1 {
    font-size: clamp(2.3rem, 9vw, 3.7rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.7rem);
  }

  .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  #backend .section-heading {
    margin-bottom: 1.25rem;
  }

  #backend .code-card,
  #backend .backend-points {
    padding: 1rem;
    border-radius: 18px;
  }

  #backend h2 {
    max-width: 9ch;
  }

  #backend pre {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.9rem;
  }
}


/* ===== Premium mobile polish for backend section ===== */
.code-card h3 {
  margin-bottom: 1rem;
}

.dedication-code {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.footer-copy p {
  margin: 0;
}

.footer-credit {
  margin-top: 0.35rem !important;
  font-size: 0.95rem;
  color: var(--primary-strong);
  font-weight: 700;
}

#backend .backend-layout {
  align-items: stretch;
}

#backend .code-card,
#backend .backend-points {
  height: 100%;
}

@media (max-width: 760px) {
  #backend {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  #backend .section-heading {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  #backend .eyebrow {
    margin-bottom: 0.85rem;
  }

  #backend h2 {
    max-width: 8ch;
    margin-bottom: 0.85rem;
    line-height: 1.02;
  }

  #backend .code-card,
  #backend .backend-points {
    padding: 0.95rem;
    border-radius: 20px;
  }

  #backend .code-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
  }

  #backend pre {
    padding: 1rem;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-shadow: inset 0 0 0 1px rgba(123, 213, 255, 0.08);
  }

  #backend .backend-point {
    padding: 0.9rem 0;
  }

  #backend .backend-point strong,
  #backend .backend-point span {
    display: block;
  }

  #backend .backend-point strong {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
  }

  .footer-wrap {
    gap: 0.85rem;
  }

  .footer-copy {
    display: grid;
    gap: 0.25rem;
  }

  .footer-credit {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

@media (max-width: 430px) {
  #backend .container {
    width: calc(100% - 1rem);
  }

  #backend .section-heading p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  #backend .code-card,
  #backend .backend-points {
    padding: 0.85rem;
    border-radius: 18px;
  }

  #backend pre {
    font-size: 0.82rem;
    line-height: 1.58;
    padding: 0.85rem;
  }

  .dedication-code {
    font-weight: 600;
  }
}
