/* ---------------------------------------------------------
   GLOBAL THEME
--------------------------------------------------------- */
:root {
  /* UI Scaling */
  --scale: 1;

  /* Page background: much lighter blue */
  --bg-main: #eaf6ff; /* very light blue */
  /* Panel backgrounds: darker bluish tones for contrast */
  --bg-elevated: #08364f; /* deep blue */
  --bg-chip: #052b3f; /* darker panel */

  --accent-green: #2dd4a2;
  --accent-yellow: #ffd24a;
  --accent-red: #f56565;

  /* Main page text (dark on light background) */
  --text-main: #082033;
  /* Muted text for page (dark secondary) */
  --text-muted: #475e6b;
  /* Light text used on dark panels */
  --panel-text: #dbeefc;

  --border-subtle: rgba(255,255,255,0.06);

  --card-radius: 18px;
  --shadow-soft: 0 18px 40px rgba(4, 23, 41, 0.18);
  --shadow-subtle: 0 10px 25px rgba(4, 23, 41, 0.14);

  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

/* ---------------------------------------------------------
   RESET & BASE
--------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e6f7ff 0, var(--bg-main) 40%, #dff5ff 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #0c3050;
  border-bottom: 1px solid rgba(32, 80, 110, 0.48);
}

header .shell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-inner {
  display: contents;
}

.brand {
  order: 0;
}

.typing-bar {
  padding: 0.2rem 0 0.3rem;
  order: 1;
}

.nav {
  margin-left: auto;
  order: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: -1.5rem;
  padding-left: 0;
  margin-right: 1.5rem;
}

.brand-logo-wrap {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--panel-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--panel-text);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.nav a:hover {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.nav-cta-link {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow));
  color: #0b1120;
  font-weight: 600;
  font-size: 0.75rem;
  border: none;
  box-shadow: 0 10px 25px rgba(79, 209, 197, 0.4);
}

.nav-secondary {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   TYPING BAR
--------------------------------------------------------- */
.typing-bar {
  padding: 0.2rem 0 0.3rem;
}

.typing-code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.6rem;
  color: var(--accent-green);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(79, 209, 197, 0.5);
  display: inline-flex;
  align-items: center;
}

.cursor {
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------------------------------------------------------
   HERO SECTION
--------------------------------------------------------- */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,251,255,0.92));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-title {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-main);
  max-width: 34rem;
  margin-bottom: 1.1rem;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.btn-primary {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow));
  color: #0b1120;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 16px 35px rgba(79, 209, 197, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 20px 40px rgba(79, 209, 197, 0.65);
}

.btn-ghost {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 174, 192, 0.6);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
  background: rgba(26, 32, 44, 0.9);
  border-color: var(--accent-yellow);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   HERO FLOATING POINTS
--------------------------------------------------------- */
.hero-floating-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.floating-point {
  background: var(--bg-elevated);
  border-radius: var(--card-radius);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
  color: var(--panel-text);
  position: relative;
}

.fp-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #e2e8f0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.4rem;
}

.dot-green {
  background: radial-gradient(circle at 30% 20%, #9ae6b4, #48bb78);
}

.dot-yellow {
  background: radial-gradient(circle at 30% 20%, #fefcbf, #f6e05e);
}

.dot-red {
  background: radial-gradient(circle at 30% 20%, #fed7d7, #f56565);
}
/* ---------------------------------------------------------
   HERO RIGHT CARD
--------------------------------------------------------- */
.hero-card {
  background: radial-gradient(circle at top left, #2d3748 0, #1a1f2b 45%, #141824 100%);
  border-radius: 26px;
  padding: 1.4rem 1.4rem 1.2rem;
  min-height: 620px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(99, 179, 237, 0.35);
}

.hero-mobile-image {
  display: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-card-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(79, 209, 197, 0.5);
  border-radius: 18px;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--panel-text);
  line-height: 1.4;
}

  .hero-meta-panel {
    display: grid;
    gap: 1rem;
  }

  .hero-meta-card {
    background: rgba(8, 47, 76, 0.95);
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--panel-text);
  }

  .hero-meta-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
  }

  .hero-meta-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
  }

  .hero-meta-tag {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--panel-text);
    font-size: 0.78rem;
  }

  background: radial-gradient(circle at 30% 20%, #9ae6b4, #48bb78);
}

.hero-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 600px) {
  .hero-card-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------
   CODE PANEL
--------------------------------------------------------- */
.hero-code-panel {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  min-height: 550px;
  border: 1px solid rgba(99, 179, 237, 0.4);
  box-shadow: var(--shadow-subtle);
}

.hero-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--panel-text);
}

.code-dots {
  display: flex;
  gap: 0.25rem;
}

.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4a5568;
}

.code-dot.red {
  background: var(--accent-red);
}

.code-dot.yellow {
  background: var(--accent-yellow);
}

.code-dot.green {
  background: #48bb78;
}

.hero-code-body {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  color: #e2e8f0;
  max-height: 500px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.32) transparent;
}

.hero-code-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.hero-code-body::-webkit-scrollbar-track {
  background: transparent;
}

.hero-code-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hero-code-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}

.code-comment {
  color: #718096;
}

.code-keyword {
  color: var(--accent-red);
}

.code-func {
  color: #63b3ed;
}

.code-var {
  color: var(--accent-yellow);
}

.code-str {
  color: #9f7aea;
}

.code-builtin {
  color: var(--accent-green);
}

/* ---------------------------------------------------------
   GENERIC SECTIONS
--------------------------------------------------------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #63b3ed;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------------------------------------------------------
   JOURNEY SECTION
--------------------------------------------------------- */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.journey-card {
  background: var(--bg-elevated);
  padding: 0.9rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  color: var(--panel-text);
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.journey-step {
  display: flex;
  gap: 1rem;
}

.journey-step-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #63b3ed;
  color: #0b1120;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.journey-step-text {
  color: var(--panel-text);
  font-size: 0.9rem;
}

.journey-highlight {
  margin-top: 0.6rem;
  padding: 0.65rem;
  background: rgba(79, 209, 197, 0.08);
  border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: var(--card-radius);
  font-size: 0.9rem;
}

.journey-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.journey-pill {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(43, 50, 69, 0.9);
  border: 1px solid rgba(99, 179, 237, 0.35);
  font-size: 0.85rem;
  color: var(--panel-text);
}

.journey-side-card {
  background: var(--bg-elevated);
  padding: 1.2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  color: var(--panel-text);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   PROGRAMS
--------------------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.program-card {
  background: var(--bg-elevated);
  padding: 1.6rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--panel-text);
}

.program-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.program-tagline {
  font-size: 0.9rem;
  color: #63b3ed;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.program-meta-item {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(43, 50, 69, 0.9);
  border: 1px solid rgba(99, 179, 237, 0.35);
  font-size: 0.75rem;
  color: var(--panel-text);
}

.programs-note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   WHY US
--------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-elevated);
  padding: 1.6rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  color: var(--panel-text);
}

.why-card h3 {
  margin-bottom: 0.6rem;
  color: #e2e8f0;
}

/* ---------------------------------------------------------
   IMPACT
--------------------------------------------------------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.impact-card {
  background: var(--bg-elevated);
  padding: 1.6rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--panel-text);
}

.impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--panel-text);
}

.stats-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--panel-text);
}

/* ---------------------------------------------------------
   SUPPORT OUR MISSION
--------------------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.support-card {
  background: var(--bg-elevated);
  padding: 1.6rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  color: var(--panel-text);
}

.support-card-accent {
  border-color: rgba(79, 209, 197, 0.6);
}

.support-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.support-form input {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #0f1524;
  color: #e2e8f0;
}

.form-note {
  font-size: 0.8rem;
  color: var(--panel-text);
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   REGISTER
--------------------------------------------------------- */
.register-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.register-card {
  background: var(--bg-elevated);
  padding: 1.6rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  color: var(--panel-text);
}

.register-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--panel-text);
}

.register-form input,
.register-form select {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 179, 237, 0.4);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

/* ---------------------------------------------------------
   ABOUT & CAREERS
--------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-elevated);
  padding: 1.6rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  color: var(--panel-text);
}

.about-card h3 {
  margin-bottom: 0.6rem;
  color: #e2e8f0;
}

.about-card .btn-ghost {
  color: var(--panel-text);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.footer {
  background: var(--bg-chip);
  padding: 2.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-main {
  max-width: 360px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--panel-text);
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--panel-text);
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-heading {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--panel-text);
}

.footer-column a {
  color: var(--panel-text);
  transition: color var(--transition-fast);
}

/* ---------------------------------------------------------
   ZOOM CONTROLS
--------------------------------------------------------- */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: calc(0.4rem * var(--scale));
  padding: calc(0.4rem * var(--scale)) calc(0.6rem * var(--scale));
  background: rgba(255, 255, 255, 0.08);
  border-radius: calc(8px * var(--scale));
  border: 1px solid rgba(255, 255, 255, 0.12);
  order: 3;
  margin-left: auto;
}

.zoom-label {
  font-size: calc(0.7rem * var(--scale));
  color: var(--panel-text);
  min-width: calc(32px * var(--scale));
  text-align: center;
  font-weight: 500;
}

.zoom-btn {
  padding: calc(0.3rem * var(--scale)) calc(0.5rem * var(--scale));
  background: rgba(45, 212, 162, 0.15);
  border: 1px solid rgba(45, 212, 162, 0.3);
  border-radius: calc(4px * var(--scale));
  color: var(--accent-green);
  font-size: calc(0.8rem * var(--scale));
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
}

.zoom-btn:hover {
  background: rgba(45, 212, 162, 0.25);
  border-color: rgba(45, 212, 162, 0.5);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.zoom-btn:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .zoom-controls {
    gap: calc(0.3rem * var(--scale));
    padding: calc(0.3rem * var(--scale)) calc(0.5rem * var(--scale));
  }

  .zoom-btn {
    padding: calc(0.25rem * var(--scale)) calc(0.4rem * var(--scale));
    font-size: calc(0.7rem * var(--scale));
  }
}

@media (max-width: 768px) {
  .zoom-controls {
    display: none;
  }
}

.footer-column a:hover {
  color: var(--text-main);
}

.footer-column a:hover {
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom-inner {
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--panel-text);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
/* ---------------------------------------------------------
   MOBILE MENU
--------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.4rem;
  padding: 0.4rem;
  order: 4;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--panel-text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  header .shell {
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .brand-logo-wrap {
    width: 80px;
    height: 80px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .nav a {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
  }

  .typing-bar {
    padding: 0.1rem 0 0.2rem;
  }

  .hero {
    padding: 1.5rem 0 1rem;
  }

  .hero-title {
    display: none;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-actions {
    display: none;
  }

  .hero-right {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0 0 0;
    margin-bottom: -0.8rem;
    background: #BBDEFB;
  }

  header .shell {
    padding: 0 0.8rem;
  }

  .brand-logo-wrap {
    width: 70px;
    height: 70px;
  }

  .brand {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c3050;
    border-top: 1px solid rgba(32, 80, 110, 0.48);
    flex-direction: column;
    width: 100%;
    padding: 0.8rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    justify-content: flex-start;
  }

  .nav.active {
    max-height: 300px;
  }

  .nav a {
    display: block;
    padding: 0.6rem 1.5rem;
    width: 100%;
    gap: 0.2rem;
  }

  .nav-cta-link {
    padding: 0.6rem 1.5rem;
  }

  .hero-code-panel {
    min-height: 250px;
  }

  .hero-title {
    display: block;
    font-size: 1.5rem;
  }

  .hero-title {
    display: none;
  }

  .hero-subtitle {
    display: none;
    font-size: 0.85rem;
  }

  .hero-floating-points {
    display: none;
  }

  .hero-right {
    display: flex;
    width: 100%;
    margin-top: 1.5rem;
  }

  .hero-card {
    width: 100%;
    min-height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .hero-code-panel {
    display: none;
  }

  .hero-card-main {
    position: relative;
    width: 100%;
  }

  .hero-mobile-image {
    display: block;
    width: calc(100% + 30rem);
    height: 240px;
    object-fit: fill;
    border-radius: 0;
    margin-left: 0;
    margin-right: -30rem;
    margin-top: -2rem;
    margin-bottom: 0;
  }

  .section {
    padding: 1rem 0;
  }

  .why-card:nth-child(3) {
    display: none;
  }

  .typing-code {
    font-size: 0.5rem;
  }
}

@media (max-width: 700px) {
  .footer-grid {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
  }
}
