.app-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.topbar-left,
.topbar-right,
.brand {
  display: flex;
  align-items: center;
}

.topbar-left { gap: 18px; }

.back-button,
.language-button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition);
}

.back-button:hover,
.language-button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.topbar-divider {
  height: 28px;
  width: 1px;
  background: var(--border);
}

.brand { gap: 11px; font-weight: 800; letter-spacing: -.3px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}
.brand-name { line-height: 1.1; }
.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.hero-section {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 35px;
  padding: 66px 5%;
  margin-top: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 80% 45%, rgba(121,105,255,.18), transparent 38%),
    linear-gradient(125deg, #151c34, #111629 65%, #191a37);
  box-shadow: var(--shadow-card);
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -140px;
  top: -200px;
  border-radius: 50%;
  border: 1px solid rgba(168,157,255,.18);
  box-shadow: 0 0 0 35px rgba(168,157,255,.025),
              0 0 0 70px rgba(168,157,255,.02);
}

.hero-content { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  color: var(--primary-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.hero-content h1 {
  max-width: 650px;
  margin: 20px 0 16px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.18;
  letter-spacing: -1.7px;
}

.gradient-text {
  display: block;
  background: linear-gradient(100deg, #a3a4ff, #d0a4ff 65%, #72dff4);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-content > p {
  max-width: 570px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 12px 19px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 9px 25px rgba(124,125,255,.22);
  transition: transform var(--transition), box-shadow var(--transition);
}
.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(124,125,255,.34);
}

.hero-art {
  min-height: 285px;
  display: grid;
  place-items: center;
  position: relative;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(167,158,255,.17);
  border-radius: 50%;
}
.orbit-one { width: 290px; height: 290px; }
.orbit-two { width: 230px; height: 230px; }

.code-window {
  width: min(310px, 100%);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(180,180,255,.25);
  border-radius: 16px;
  background: rgba(12,17,34,.94);
  box-shadow: 0 25px 60px rgba(0,0,0,.4), var(--shadow-glow);
  transform: rotate(-3deg);
}

.window-bar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid var(--border);
}
.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7979;
}
.window-bar i:nth-child(2) { background: #ffc66d; }
.window-bar i:nth-child(3) { background: #69dba7; }
.window-bar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.code-lines { padding: 18px 22px 13px; }
.code-lines p {
  margin: 7px 0;
  color: #9da8c7;
  font-family: monospace;
  font-size: 12px;
}
.code-lines b { color: #b8a0ff; }
.code-lines span { color: #e0e4ff; }
.code-lines em { color: #70d9d0; font-style: normal; }

.preview-chip {
  width: fit-content;
  margin: 0 0 15px 20px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(100,223,176,.1);
  color: var(--green);
  font-size: 10px;
}

.floating-token {
  position: absolute;
  z-index: 3;
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(25,33,59,.92);
  color: var(--primary-bright);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}
.token-one { top: 14px; right: 6%; transform: rotate(9deg); }
.token-two { bottom: 16px; left: 4%; color: var(--cyan); }
.token-three { right: 1%; bottom: 28%; color: var(--green); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 24px 0 75px;
}

.stat-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  font-size: 20px;
}
.purple { color: #c0a3ff; background: rgba(177,138,255,.13); }
.blue { color: #92a9ff; background: rgba(120,143,255,.13); }
.cyan { color: var(--cyan); background: rgba(97,217,245,.12); }
.green { color: var(--green); background: rgba(100,223,176,.12); }

.stat-card strong,
.stat-card span:not(.stat-icon) { display: block; }
.stat-card strong { font-size: 21px; line-height: 1.25; }
.stat-card div > span { color: var(--muted); font-size: 11px; margin-top: 5px; }

.progress-stat { position: relative; }
.mini-progress {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 9px;
  height: 3px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
}
.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-primary);
}

.features-section,
.roadmap-section { margin: 0 0 78px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading h2 {
  margin: 7px 0 5px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.7px;
}
.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}
.feature-count {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  --accent: #9a91ff;
  min-height: 215px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -75px;
  top: -85px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .10;
  filter: blur(12px);
  transition: transform 250ms ease, opacity 250ms ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent), transparent 50%);
  background: var(--surface-raised);
}
.feature-card:hover::before {
  transform: scale(1.5);
  opacity: .18;
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.feature-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.feature-card h3 {
  margin: 17px 0 7px;
  font-size: 17px;
  line-height: 1.35;
}
.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}
.feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}
.feature-tag {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.feature-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.055);
  color: var(--text-soft);
  transition: var(--transition);
}
.feature-card:hover .feature-arrow {
  background: var(--accent);
  color: #101326;
  transform: translateX(3px);
}
.loading-message { color: var(--muted); }

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.roadmap-step {
  position: relative;
  padding: 19px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.roadmap-step .step-number {
  color: var(--primary-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.roadmap-step h3 { margin: 9px 0 5px; font-size: 14px; }
.roadmap-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.footer {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr .8fr; padding: 45px 4%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-track { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 28px, var(--container)); }
  .topbar { min-height: 66px; }
  .topbar-left { gap: 9px; }
  .back-button { padding: 8px 10px; font-size: 11px; }
  .topbar-divider { display: none; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; font-size: 18px; }
  .brand-name { font-size: 12px; }
  .brand-name small { font-size: 7px; letter-spacing: 1.4px; }
  .language-button { padding: 8px 10px; font-size: 10px; }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 34px 23px 20px;
    margin-top: 15px;
    border-radius: 21px;
  }
  .hero-content h1 { font-size: clamp(32px, 9vw, 43px); }
  .hero-content > p { font-size: 13px; }
  .hero-art { min-height: 245px; }
  .orbit-one { width: 245px; height: 245px; }
  .orbit-two { width: 190px; height: 190px; }
  .code-window { width: 270px; }

  .stats-grid { gap: 10px; margin: 16px 0 55px; }
  .stat-card { min-height: 82px; gap: 9px; padding: 11px; }
  .stat-icon { width: 35px; height: 35px; flex-basis: 35px; font-size: 17px; }
  .stat-card strong { font-size: 18px; }
  .stat-card div > span { font-size: 10px; }

  .features-section, .roadmap-section { margin-bottom: 55px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 24px; }
  .section-heading p { font-size: 11px; }
  .feature-count { font-size: 8px; padding: 6px 8px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: 195px; padding: 19px; }
  .feature-card h3 { font-size: 16px; }
  .feature-card p { font-size: 12px; }
  .roadmap-track { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; justify-content: center; padding: 17px 0; gap: 3px; }
}

@media (max-width: 370px) {
  .app-shell { width: calc(100% - 20px); }
  .back-button { padding: 7px 8px; }
  .brand-name { font-size: 10px; }
  .language-button { font-size: 9px; padding: 7px; }
  .roadmap-track { grid-template-columns: 1fr; }
}

/* ===== PHOTO-STYLE CSS ACADEMY UPDATE ===== */

.back-button span:first-child {
  font-size: 17px;
  margin-right: 3px;
}

.hero-art {
  min-height: 320px;
  border-radius: 22px;
}

.hero-photo {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  border-radius: 19px;
  opacity: .78;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(9,14,30,.05), rgba(9,14,30,.55));
  z-index: 1;
  pointer-events: none;
}

.hero-art .code-window {
  width: min(270px, 85%);
  transform: rotate(-3deg);
  backdrop-filter: blur(12px);
}

.hero-art .orbit { z-index: 0; }

.feature-quick-nav {
  margin: 0 0 58px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: linear-gradient(120deg, rgba(30,39,69,.85), rgba(19,25,46,.9));
  overflow: hidden;
}

.quick-nav-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--primary-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.quick-nav-heading span {
  color: var(--muted);
  letter-spacing: .5px;
}

.quick-nav-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 1px 9px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.quick-nav-item {
  flex: 0 0 auto;
  min-width: 135px;
  max-width: 175px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.quick-nav-item > span {
  color: var(--primary-bright);
  font-size: 10px;
  font-weight: 800;
}

.quick-nav-item strong {
  font-size: 10px;
  line-height: 1.4;
}

.quick-nav-item:hover,
.quick-nav-item:focus-visible {
  border-color: var(--primary-bright);
  background: rgba(135,124,255,.13);
}

.feature-card {
  padding: 12px;
}

.feature-photo-wrap {
  position: relative;
  height: 155px;
  overflow: hidden;
  border-radius: 13px;
  margin-bottom: 17px;
  background: var(--surface-raised);
}

.feature-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.feature-card:hover .feature-photo {
  transform: scale(1.055);
}

.feature-photo-icon {
  position: absolute;
  left: 11px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 11px;
  background: rgba(12,17,34,.82);
  color: white;
  backdrop-filter: blur(8px);
}

.feature-photo-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin-top: 13px;
}

.roadmap-photo-wrap {
  height: 230px;
  position: relative;
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.roadmap-photo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.roadmap-photo-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 7px;
  padding: 25px;
  background: linear-gradient(0deg, rgba(8,12,25,.9), transparent 85%);
}

.roadmap-photo-caption span {
  color: #c0b6ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.roadmap-photo-caption strong {
  color: white;
  font-size: clamp(20px, 4vw, 30px);
}

@media (max-width: 620px) {
  .hero-art { min-height: 260px; }
  .feature-quick-nav { margin-bottom: 42px; padding: 13px; }
  .feature-photo-wrap { height: 175px; }
  .roadmap-photo-wrap { height: 180px; }
  .roadmap-photo-caption { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-photo,
  .feature-card { transition: none; }
}


/* ===== CLEAN PHOTO DASHBOARD UPDATE ===== */

/* Show the actual laptop hero photo clearly */
.hero-art {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
}

.hero-art::after,
.hero-art .code-window,
.hero-art .orbit,
.hero-art .floating-token {
  display: none !important;
}

/* Feature cards contain only their own photo */
.feature-card {
  display: block;
  min-height: 0;
  padding: 10px;
  background: var(--surface);
}

.feature-card::before {
  display: none;
}

.feature-photo-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 13px;
}

.feature-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 620px) {
  .hero-art {
    min-height: 245px;
  }

  .feature-card {
    padding: 9px;
  }

  .feature-photo-wrap {
    aspect-ratio: 3 / 2;
  }
}

/* Compact arrow Back control */
.topbar .back-button{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 9px;
  font-size:12px;
  line-height:1.2;
}
