:root,
[data-theme="dark"] {
  --bg: #0a0d0b;
  --bg-soft: #101511;
  --surface: rgba(246, 241, 225, 0.055);
  --surface-strong: rgba(246, 241, 225, 0.095);
  --line: rgba(233, 225, 203, 0.14);
  --line-strong: rgba(233, 225, 203, 0.28);
  --text: #f4efe1;
  --muted: #b9b19d;
  --dim: #837d70;
  --cyan: #63d8d6;
  --green: #8edb9f;
  --amber: #f0b866;
  --violet: #a99cff;
  --danger: #ff8f8a;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f5f0e6;
  --bg-soft: #ebe3d3;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(46, 55, 48, 0.14);
  --line-strong: rgba(46, 55, 48, 0.26);
  --text: #18211c;
  --muted: #5f675f;
  --dim: #8b8f84;
  --cyan: #087d83;
  --green: #27865a;
  --amber: #b06d1f;
  --violet: #6657c8;
  --danger: #bd413c;
  --shadow: 0 22px 58px rgba(54, 45, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(120deg, rgba(99, 216, 214, 0.07), transparent 32%),
    linear-gradient(240deg, rgba(240, 184, 102, 0.07), transparent 30%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 225, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 75%);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(10, 13, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .site-header {
  background: rgba(245, 240, 230, 0.82);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 216, 214, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(99, 216, 214, 0.22), rgba(240, 184, 102, 0.12)),
    rgba(246, 241, 225, 0.06);
  box-shadow: 0 0 24px rgba(99, 216, 214, 0.15);
}

.brand-mark span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  transform: rotate(45deg);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
}

.brand-mark.small span {
  width: 11px;
  height: 11px;
}

.brand-text {
  font-size: 1.12rem;
}

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

.nav-links a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.theme-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(99, 216, 214, 0.16);
  border: 1px solid var(--line);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 0 14px rgba(99, 216, 214, 0.36);
  transition: transform 0.25s var(--ease);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(16px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.header-cta,
.button.primary {
  color: #07100d;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  border: 1px solid rgba(244, 239, 225, 0.35);
  box-shadow: 0 14px 30px rgba(99, 216, 214, 0.18);
}

.button.secondary {
  color: var(--text);
  background: rgba(246, 241, 225, 0.07);
  border: 1px solid var(--line-strong);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.92) contrast(1.06);
}

[data-theme="light"] .hero-media img {
  opacity: 0.28;
  filter: saturate(0.88) contrast(0.96) brightness(1.1);
}

.desk-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 11, 0.98) 0%, rgba(10, 13, 11, 0.7) 42%, rgba(10, 13, 11, 0.4) 100%),
    linear-gradient(180deg, rgba(10, 13, 11, 0.2), rgba(10, 13, 11, 0.96));
}

[data-theme="light"] .desk-overlay {
  background:
    linear-gradient(90deg, rgba(245, 240, 230, 0.96) 0%, rgba(245, 240, 230, 0.76) 46%, rgba(245, 240, 230, 0.44) 100%),
    linear-gradient(180deg, rgba(245, 240, 230, 0.22), rgba(245, 240, 230, 0.94));
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(99, 216, 214, 0.34);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(99, 216, 214, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 4.8vw, 4.9rem);
  text-wrap: balance;
}

.hero-text {
  max-width: 610px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.research-desk {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(246, 241, 225, 0.09), rgba(246, 241, 225, 0.025)),
    rgba(8, 14, 12, 0.58);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

[data-theme="light"] .research-desk {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.46)),
    rgba(245, 240, 230, 0.62);
}

.desk-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 216, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 216, 214, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.75;
}

.lab-panel,
.studio-card,
.path-card,
.workflow-step,
.final-cta,
.preview-board,
.benefit-card,
.glass-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 17, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .lab-panel,
[data-theme="light"] .studio-card,
[data-theme="light"] .path-card,
[data-theme="light"] .workflow-step,
[data-theme="light"] .final-cta,
[data-theme="light"] .preview-board,
[data-theme="light"] .benefit-card,
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.72);
}

.lab-panel {
  position: absolute;
  padding: 18px;
  backdrop-filter: blur(14px);
}

.panel-header,
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  color: var(--green);
}

.live-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: pulse 1.5s infinite;
}

.main-analysis {
  width: min(430px, calc(100% - 34px));
  left: 24px;
  top: 28px;
  z-index: 3;
  animation: floatA 7s var(--ease) infinite alternate;
}

.sample-sentence {
  margin: 26px 0;
}

.sample-sentence span {
  display: block;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 850;
  line-height: 1.08;
}

.sample-sentence small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.syntax-line {
  display: grid;
  grid-template-columns: max-content 1fr max-content 1fr max-content;
  gap: 9px;
  align-items: center;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.syntax-line i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.scan-bar {
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  animation: scan 2.8s linear infinite;
}

.notebook-panel {
  width: 245px;
  right: 30px;
  top: 86px;
  z-index: 2;
  transform: rotate(2deg);
  animation: floatB 8s var(--ease) infinite alternate;
}

.notebook-line {
  height: 9px;
  margin-bottom: 13px;
  border-radius: 4px;
  background: rgba(244, 239, 225, 0.18);
}

.notebook-line.strong {
  width: 70%;
  background: rgba(240, 184, 102, 0.5);
}

.notebook-line.short {
  width: 46%;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.note-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(240, 184, 102, 0.28);
  border-radius: 5px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 850;
}

.waveform-panel {
  width: 285px;
  left: 64px;
  bottom: 48px;
  animation: floatB 7.5s var(--ease) infinite alternate;
}

.wave-bars {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.wave-bars span {
  width: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), rgba(99, 216, 214, 0.1));
  animation: wave 1.6s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 34%; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 72%; animation-delay: 0.12s; }
.wave-bars span:nth-child(3) { height: 48%; animation-delay: 0.24s; }
.wave-bars span:nth-child(4) { height: 88%; animation-delay: 0.36s; }
.wave-bars span:nth-child(5) { height: 52%; animation-delay: 0.48s; }
.wave-bars span:nth-child(6) { height: 64%; animation-delay: 0.6s; }
.wave-bars span:nth-child(7) { height: 40%; animation-delay: 0.72s; }

.waveform-panel p,
.metric-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.waveform-panel strong,
.metric-panel strong {
  color: var(--text);
}

.metric-panel {
  width: 190px;
  right: 62px;
  bottom: 78px;
  animation: floatA 8.5s var(--ease) infinite alternate;
}

.metric-panel strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 2.2rem;
  line-height: 1;
}

.metric-track,
.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(244, 239, 225, 0.08);
}

.metric-track span {
  display: block;
  height: 100%;
  width: 87%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  animation: meter 3.4s var(--ease) infinite alternate;
}

.section {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.method-copy h2,
.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  text-wrap: balance;
}

.studio-grid,
.path-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.studio-card,
.path-card,
.benefit-card {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.studio-card:hover,
.path-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(21, 29, 24, 0.82);
}

[data-theme="light"] .studio-card:hover,
[data-theme="light"] .path-card:hover,
[data-theme="light"] .benefit-card:hover {
  background: rgba(255, 255, 255, 0.9);
}

.card-kicker,
.path-index,
.benefit-num {
  display: inline-flex;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-card h3,
.path-card h3,
.benefit-card h3 {
  margin-top: 28px;
  font-size: 1.38rem;
}

.studio-card p,
.path-card p,
.benefit-card p,
.method-copy p,
.final-cta p,
.preview-copy p {
  margin-top: 14px;
  color: var(--muted);
}

.path-card {
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--cyan);
}

.path-card.toeic::before {
  background: var(--amber);
}

.path-card.ielts::before {
  background: var(--violet);
}

.path-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--cyan);
  font-weight: 900;
}

/* Nhân vật tý hon xuất hiện khi hover vào lộ trình */
.path-buddy {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 66px;
  height: 82px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(28px) scale(0.7);
  transform-origin: bottom center;
  transition: opacity 0.3s var(--ease), transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.path-card:hover .path-buddy,
.path-card:focus-visible .path-buddy {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.path-card:hover .path-buddy {
  animation: buddy-bob 1.6s ease-in-out 0.4s infinite;
}

@keyframes buddy-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .path-buddy {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .path-card:hover .path-buddy {
    animation: none;
  }
}

.toeic .path-link {
  color: var(--amber);
}

.ielts .path-link {
  color: var(--violet);
}

.method-section,
.preview-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.method-copy {
  max-width: 480px;
}

.workflow-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 241, 225, 0.045);
}

.workflow-step {
  display: grid;
  grid-template-columns: 56px 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.workflow-step span {
  color: var(--dim);
  font-weight: 950;
}

.workflow-step strong {
  color: var(--text);
  font-size: 1.05rem;
}

.workflow-step p {
  color: var(--muted);
  margin: 0;
}

.workflow-step.active {
  border-color: rgba(99, 216, 214, 0.4);
  background: rgba(99, 216, 214, 0.08);
}

.final-cta-container {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 100px;
}

.final-cta {
  padding: clamp(34px, 7vw, 72px);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(99, 216, 214, 0.11), rgba(240, 184, 102, 0.08)),
    rgba(16, 21, 17, 0.76);
}

.final-cta p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.site-footer {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.copyright {
  font-size: 0.88rem;
}

.auth-page,
.app-page {
  width: min(1220px, calc(100% - 36px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 74px 0 90px;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.auth-panel.single {
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.8fr);
}

.auth-copy h1,
.app-hero h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.auth-copy p,
.app-hero p,
.app-user-card p {
  margin-top: 18px;
  color: var(--muted);
}

.selected-path-pill {
  display: inline-flex;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 760;
}

.selected-path-pill strong {
  color: var(--text);
}

.auth-card,
.app-user-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 21, 17, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .auth-card,
[data-theme="light"] .app-user-card {
  background: rgba(255, 255, 255, 0.76);
}

.auth-card {
  padding: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.auth-tab.active {
  color: #07100d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(246, 241, 225, 0.06);
  font: inherit;
}

[data-theme="light"] .auth-form input:not([type="checkbox"]) {
  background: rgba(255, 255, 255, 0.72);
}

.auth-form input:focus {
  outline: 2px solid rgba(99, 216, 214, 0.28);
  outline-offset: 2px;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.auth-link {
  color: var(--cyan);
  font-weight: 850;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.form-message {
  min-height: 24px;
  margin-top: 16px;
  color: var(--amber);
  font-weight: 760;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  margin-bottom: 28px;
}

.app-user-card {
  padding: 24px;
}

.app-user-card span {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-user-card strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: 1.24rem;
}

.app-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Compatibility for the existing path detail pages. */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.glow-orb {
  position: absolute;
  width: 48vw;
  height: 48vw;
  filter: blur(120px);
  opacity: 0.16;
}

.glow-orb-1 {
  top: -18%;
  left: 4%;
}

.glow-orb-2 {
  right: -10%;
  bottom: 12%;
}

.glass-card {
  color: var(--text);
}

.progress-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes scan {
  0% { transform: translateX(-80%); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateX(80%); opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes meter {
  from { width: 64%; }
  to { width: 87%; }
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -12px, 0); }
}

@keyframes floatB {
  from { transform: translate3d(0, 0, 0) rotate(2deg); }
  to { transform: translate3d(0, -10px, 0) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1000px) {
  .hero-shell,
  .method-section,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding-top: 54px;
  }

  .research-desk {
    min-height: 520px;
  }

  .studio-grid,
  .path-grid,
  .benefits-grid,
  .auth-panel,
  .auth-panel.single,
  .app-hero,
  .app-module-grid {
    grid-template-columns: 1fr;
  }

  .app-user-card {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }
  
  .hero {
    min-height: auto;
  }

  .hero-shell,
  .section,
  .final-cta-container,
  .site-footer {
    width: min(100% - 28px, 1220px);
  }

  .hero-shell {
    padding-bottom: 44px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .research-desk {
    min-height: 610px;
  }

  .main-analysis,
  .notebook-panel,
  .waveform-panel,
  .metric-panel {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
  }

  .main-analysis {
    top: 16px;
  }

  .notebook-panel {
    top: 250px;
  }

  .waveform-panel {
    bottom: 108px;
  }

  .metric-panel {
    bottom: 18px;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-page,
  .app-page {
    width: min(100% - 28px, 1220px);
    padding-top: 44px;
  }
}

@media (max-width: 430px) {
  .header-cta {
    display: none;
  }

  .theme-toggle {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  
  .hero h1 {
    font-size: 2.45rem;
  }

  .sample-sentence span {
    font-size: 1.35rem;
  }

  .syntax-line {
    grid-template-columns: 1fr;
  }

  .syntax-line i {
    display: none;
  }
}
