:root {
  --panel: rgba(12, 25, 42, 0.76);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --stroke: rgba(148, 194, 255, 0.16);
  --stroke-strong: rgba(148, 194, 255, 0.28);
  --text: #edf4ff;
  --muted: #9cb0cb;
  --accent: #63f5c9;
  --accent-2: #7cc8ff;
  --warm: #ff9b71;
  --shadow: 0 24px 80px rgba(2, 8, 20, 0.45);
  --max-width: 1220px;
  --page-base: linear-gradient(180deg, #06101c 0%, #0a1626 100%);
  --hero-surface: rgba(255, 255, 255, 0.02);
  --hero-outline: rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] {
  --panel: rgba(255, 255, 255, 0.8);
  --panel-soft: rgba(255, 255, 255, 0.64);
  --stroke: rgba(78, 104, 171, 0.18);
  --stroke-strong: rgba(124, 92, 255, 0.26);
  --text: #0e1726;
  --muted: #5a6c8f;
  --shadow: 0 20px 60px rgba(95, 122, 168, 0.22);
  --hero-surface: rgba(255, 255, 255, 0.62);
  --hero-outline: rgba(124, 92, 255, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(46, 95, 173, 0.28), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(99, 245, 201, 0.18), transparent 20%),
    var(--page-base);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(99, 245, 201, 0.08), transparent 20%),
    radial-gradient(circle at calc(var(--mouse-x, 50%) + 12%) calc(var(--mouse-y, 30%) + 8%), rgba(124, 200, 255, 0.06), transparent 24%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
code {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92em;
}

.site-shell { position: relative; z-index: 1; overflow: hidden; }
.ambient, .grid-lines { position: fixed; inset: 0; pointer-events: none; }
.ambient-one { background: radial-gradient(circle at 18% 12%, rgba(84, 161, 255, 0.18), transparent 22%); }
.ambient-two { background: radial-gradient(circle at 82% 10%, rgba(255, 155, 113, 0.12), transparent 18%); }
.grid-lines {
  background-image:
    linear-gradient(rgba(145, 173, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 173, 214, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 84%);
}

.topbar,
.admin-topbar,
.section,
.admin-layout,
.auth-layout {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.topbar,
.admin-topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(6, 15, 26, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: opacity 260ms ease, transform 260ms ease, background 260ms ease;
}
body[data-theme="light"] .topbar,
body[data-theme="light"] .admin-topbar {
  background: rgba(255, 255, 255, 0.78);
}
body.header-faded .topbar {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px);
  pointer-events: none;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #07111f;
  font-weight: 800;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong,
.hero h1,
.section-head h2,
.tournament-copy h2,
.cta-card h2,
.admin-intro h1,
.admin-block-head h2,
.carousel-caption h3,
.auth-card h1,
.auth-card h2 {
  font-family: "Sora", sans-serif;
}
.brand-copy small { color: var(--muted); }
.nav,
.topbar-actions,
.hero-actions,
.form-actions { display: flex; gap: 12px; align-items: center; }
.nav { flex-wrap: wrap; justify-content: center; }
.nav a,
.link-chip { color: var(--muted); }
.link-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, opacity 220ms ease;
}
.button:hover,
.carousel-control:hover,
.theme-toggle:hover,
.dock-peek:hover {
  transform: translateY(-2px);
}
.button-solid {
  background: linear-gradient(135deg, var(--accent) 0%, #83f0ff 100%);
  color: #06101c;
  box-shadow: 0 14px 34px rgba(99, 245, 201, 0.24);
}
.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--stroke);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 24;
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(6, 15, 26, 0.68);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
body[data-theme="light"] .theme-toggle { background: rgba(255, 255, 255, 0.8); }

.dock-wrapper {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 23;
}
.dock-peek {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 82px;
  border-radius: 0 18px 18px 0;
  border: 1px solid var(--stroke);
  border-left: none;
  background: rgba(6, 15, 26, 0.74);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
}
body[data-theme="light"] .dock-peek { background: rgba(255, 255, 255, 0.84); }
.dock-menu {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translate(-120%, -50%);
  z-index: 23;
  display: grid;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background: rgba(6, 15, 26, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
}
body[data-theme="light"] .dock-menu { background: rgba(255, 255, 255, 0.84); }
body.nav-docked .dock-peek {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
}
body.nav-docked .dock-wrapper:hover .dock-menu,
body.nav-docked .dock-wrapper:focus-within .dock-menu,
body.dock-peek-open .dock-menu {
  transform: translate(0, -50%);
  opacity: 1;
  pointer-events: auto;
}
body.dock-peek-open .dock-peek,
body.nav-docked .dock-wrapper:hover .dock-peek,
body.nav-docked .dock-wrapper:focus-within .dock-peek {
  opacity: 0;
}
.dock-menu a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 194, 255, 0.14);
}

.hero {
  width: min(calc(100% - 18px), 1600px);
  margin: 10px auto 0;
  padding: 126px min(6vw, 62px) 86px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  position: relative;
  isolation: isolate;
  min-height: 96vh;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(115, 155, 255, 0.04), transparent 30%),
    radial-gradient(circle at 18% 30%, rgba(124, 200, 255, 0.08), transparent 34%),
    var(--hero-surface);
  border: 1px solid var(--hero-outline);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
.hero-canvas,
.hero-mouse-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-canvas { z-index: -2; }
.hero-mouse-glow {
  z-index: -1;
  background:
    radial-gradient(circle at var(--hero-mouse-x, 50%) var(--hero-mouse-y, 40%), rgba(99, 245, 201, 0.13), transparent 18%),
    radial-gradient(circle at calc(var(--hero-mouse-x, 50%) + 10%) calc(var(--hero-mouse-y, 40%) + 6%), rgba(255, 155, 113, 0.09), transparent 22%);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.hero h1,
.section-head h2,
.tournament-copy h2,
.cta-card h2,
.admin-intro h1,
.admin-block-head h2,
.auth-card h1,
.auth-card h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero h1 { font-size: clamp(3.15rem, 6vw, 6.4rem); max-width: 11ch; }
.hero-text,
.section-head p,
.feature-card p,
.tournament-copy p,
.event-card p,
.project-card p,
.gallery-card p,
.cta-card p,
.bento-card p,
.metric-card p,
.admin-intro p,
.preview-card p,
.admin-note span,
.auth-card p,
.auth-status { color: var(--muted); line-height: 1.72; }
.hero-actions { margin: 28px 0; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.stat-chip,
.feature-card,
.project-card,
.gallery-card,
.event-card,
.metric-card,
.cta-card,
.tournament-panel,
.bento-card,
.admin-block,
.preview-card,
.editor-preview,
.auth-card {
  border: 1px solid var(--stroke);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.feature-grid,
.projects-grid,
.gallery-grid,
.metric-grid,
.bento-grid,
.form-grid,
.auth-layout { display: grid; gap: 18px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects-grid,
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento-grid { grid-template-columns: 1.15fr 0.85fr 0.85fr; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-span-2 { grid-column: span 2; }

.stat-chip,
.feature-card,
.project-card,
.metric-card,
.preview-card { padding: 24px; border-radius: 24px 30px 20px 28px; }
.gallery-card { overflow: hidden; border-radius: 26px 18px 28px 24px; }
.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.gallery-card .gallery-copy { padding: 22px; }
.event-card { padding: 22px; border-radius: 26px 18px 26px 22px; }
.tournament-panel,
.cta-card { border-radius: 32px 24px 30px 26px; padding: 30px; }
.tournament-panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; }
.event-aside { display: grid; gap: 16px; }
.bento-card { border-radius: 34px 22px 30px 26px; padding: 26px; min-height: 220px; }
.bento-main { grid-row: span 2; }
.bento-metrics { display: grid; gap: 12px; }
.bento-mini-stat {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.project-card h3,
.gallery-card h3,
.feature-card h3,
.metric-card h3,
.bento-card h3,
.carousel-caption h3,
.preview-card strong { margin-top: 0; }
.feature-card,
.project-card,
.gallery-card,
.event-card,
.metric-card,
.stat-chip,
.bento-card,
.preview-card,
.auth-card {
  transition: transform 220ms ease, border-color 220ms ease;
}
.feature-card:hover,
.project-card:hover,
.gallery-card:hover,
.event-card:hover,
.metric-card:hover,
.stat-chip:hover,
.bento-card:hover,
.preview-card:hover,
.auth-card:hover {
  transform: translateY(-8px) rotate(-0.35deg);
  border-color: var(--stroke-strong);
}

.hero-stage {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  transition: transform 200ms ease;
}
.robot-frame {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
}
.robot-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 245, 201, 0.42), transparent 60%);
  filter: blur(12px);
  animation: pulse 6s ease-in-out infinite;
}
.robot-core {
  position: relative;
  width: 74%;
  height: 74%;
  border-radius: 38px 28px 34px 26px;
  background: linear-gradient(180deg, rgba(108, 174, 255, 0.32), rgba(8, 17, 29, 0.92));
  border: 1px solid rgba(142, 192, 255, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.robot-core::before,
.robot-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99, 245, 201, 0.2);
}
.robot-core::before { width: 120%; height: 120%; }
.robot-core::after { width: 70%; height: 70%; }
.robot-face { display: flex; gap: 18px; }
.robot-face span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(99, 245, 201, 0.48);
}
.robot-lines { position: absolute; bottom: 16%; display: grid; gap: 10px; }
.robot-lines i { width: 110px; height: 6px; border-radius: 999px; background: rgba(153, 195, 255, 0.34); }
.signal { position: absolute; border: 1px solid rgba(99, 245, 201, 0.26); border-radius: 999px; }
.signal-a { inset: 8%; animation: spin 24s linear infinite; }
.signal-b { inset: 2%; animation: spin 20s linear infinite reverse; }
.signal-c { inset: 18%; animation: float 9s ease-in-out infinite; }
.orbit-card {
  position: absolute;
  width: 180px;
  padding: 16px;
  border-radius: 22px 28px 20px 26px;
  border: 1px solid var(--stroke);
  background: rgba(10, 23, 40, 0.8);
  backdrop-filter: blur(14px);
}
body[data-theme="light"] .orbit-card { background: rgba(255, 255, 255, 0.78); }
.orbit-primary { top: 9%; right: 0; }
.orbit-secondary { bottom: 12%; left: 0; }
.floating-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 194, 255, 0.18);
  background: rgba(6, 16, 28, 0.72);
  font-weight: 600;
  backdrop-filter: blur(12px);
}
body[data-theme="light"] .floating-chip { background: rgba(255, 255, 255, 0.84); }
.chip-a { top: 16%; left: 4%; }
.chip-b { top: 24%; right: 10%; }
.chip-c { bottom: 18%; right: 22%; }

.section { padding: 56px 0 24px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.bullet-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.bullet-list li {
  position: relative;
  padding-left: 18px;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.carousel-section { width: min(calc(100% - 18px), 1600px); }
.carousel-shell {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  gap: 18px;
  align-items: center;
}
.carousel-stage {
  position: relative;
  min-height: 520px;
  padding: 14px;
  border-radius: 40px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: var(--shadow);
}
.carousel-track {
  position: relative;
  min-height: 492px;
  overflow: hidden;
  border-radius: 30px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 560ms ease, transform 560ms ease;
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(4, 11, 18, 0.7) 100%);
}
body[data-theme="light"] .carousel-slide::after {
  background: linear-gradient(180deg, transparent 24%, rgba(11, 18, 34, 0.26) 100%);
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(6, 16, 28, 0.52);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-theme="light"] .carousel-caption {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(124, 92, 255, 0.1);
}
.carousel-caption p { margin-bottom: 0; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: transform 220ms ease, width 220ms ease, background 220ms ease;
}
.carousel-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.carousel-control {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-shell { min-height: 100vh; }
.admin-layout {
  padding-top: 120px;
  padding-bottom: 48px;
}
.admin-intro {
  max-width: 860px;
  margin-bottom: 28px;
}
.admin-intro h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.admin-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: var(--panel-soft);
}
.admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 22px;
  align-items: start;
}
.editor-form { display: grid; gap: 20px; }
.admin-block { padding: 24px; border-radius: 30px 22px 28px 24px; }
.admin-block-head { margin-bottom: 18px; }
.admin-block-head h2 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
.editor-form label { display: grid; gap: 10px; }
.editor-form span {
  font-size: 0.95rem;
  font-weight: 700;
}
.editor-form input,
.editor-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(5, 15, 28, 0.34);
  color: var(--text);
  resize: vertical;
}
body[data-theme="light"] .editor-form input,
body[data-theme="light"] .editor-form textarea {
  background: rgba(255, 255, 255, 0.68);
}
.editor-preview {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 30px;
}
.preview-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.preview-card span,
.event-card span,
.stat-chip span,
.bento-mini-stat strong,
.metric-card strong {
  display: block;
  margin-bottom: 8px;
}
.preview-card strong,
.metric-card strong { font-size: 1.35rem; }

.auth-layout {
  padding-top: 140px;
  padding-bottom: 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-card {
  padding: 28px;
  border-radius: 30px 22px 28px 24px;
}
.auth-form { margin-top: 18px; }
.auth-status { min-height: 28px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 1120px) {
  .topbar,
  .admin-topbar { width: calc(100% - 32px); }
  .hero,
  .tournament-panel,
  .cta-card,
  .admin-panel,
  .auth-layout { grid-template-columns: 1fr; }
  .feature-grid,
  .projects-grid,
  .gallery-grid,
  .metric-grid,
  .stat-row,
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stage { min-height: 520px; }
  .bento-main { grid-row: auto; }
  .editor-preview { position: static; top: auto; }
}

@media (max-width: 860px) {
  .dock-wrapper { top: auto; bottom: 96px; transform: none; }
  .dock-peek { left: 0; top: auto; bottom: 0; transform: none; }
  .dock-menu { top: auto; bottom: 0; left: 10px; transform: translateX(-120%); }
  body.nav-docked .dock-wrapper:hover .dock-menu,
  body.nav-docked .dock-wrapper:focus-within .dock-menu,
  body.dock-peek-open .dock-menu { transform: translateX(0); }
  .topbar,
  .admin-topbar,
  .section,
  .admin-layout,
  .carousel-section,
  .auth-layout { width: min(calc(100% - 20px), var(--max-width)); }
  .topbar,
  .admin-topbar {
    top: 10px;
    padding: 12px 14px;
    border-radius: 26px;
  }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .brand-copy small { display: none; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav a {
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
  }
  .topbar-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .hero {
    width: calc(100% - 10px);
    min-height: auto;
    border-radius: 30px;
    padding: 132px 16px 52px;
    gap: 20px;
  }
  .hero::after { inset: 8px; border-radius: 22px; }
  .feature-grid,
  .projects-grid,
  .gallery-grid,
  .metric-grid,
  .stat-row,
  .bento-grid,
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .robot-frame { width: min(100%, 330px); }
  .orbit-card,
  .floating-chip { position: relative; inset: auto; width: fit-content; max-width: 100%; }
  .orbit-card { width: 100%; }
  .hero-stage { min-height: auto; gap: 14px; }
  .carousel-shell { grid-template-columns: 1fr; gap: 12px; }
  .carousel-stage { min-height: 360px; order: 1; }
  .carousel-track { min-height: 332px; }
  .carousel-control {
    width: 100%;
    height: 48px;
    border-radius: 999px;
  }
  #carousel-prev { order: 2; }
  #carousel-next { order: 3; }
  .cta-card { align-items: flex-start; }
}

@media (max-width: 560px) {
  .topbar,
  .admin-topbar {
    width: calc(100% - 16px);
    left: 8px;
    right: 8px;
    transform: none;
  }
  body.header-faded .topbar { transform: translateY(-18px); }
  .theme-toggle {
    top: auto;
    right: 12px;
    bottom: 12px;
  }
  .hero,
  .carousel-section { width: calc(100% - 10px); }
  .hero {
    margin-top: 8px;
    padding-top: 146px;
    border-radius: 24px;
  }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .section { padding-top: 44px; }
  .gallery-card img { height: 210px; }
  .carousel-stage { min-height: 320px; padding: 10px; border-radius: 28px; }
  .carousel-track { min-height: 300px; border-radius: 22px; }
  .carousel-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
    border-radius: 18px;
  }
  .carousel-dots { bottom: 12px; }
  .admin-layout,
  .auth-layout { padding-top: 106px; }
  .admin-note { flex-direction: column; }
  .admin-block,
  .editor-preview,
  .auth-card { padding: 18px; }
}

.parallax-scene {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.parallax-scene [data-layer] {
  transform-style: preserve-3d;
  transition: transform 260ms ease;
  will-change: transform;
}
.hero-copy,
.hero-stage,
.showcase-bento {
  transform: translate3d(0, var(--parallax-offset, 0px), 0);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}
body[data-theme="light"] .glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.46));
  border-color: rgba(124, 92, 255, 0.12);
}

.showcase-section .section-head { max-width: 760px; }
.showcase-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 0.7fr;
  grid-template-rows: repeat(3, minmax(150px, auto));
  gap: 18px;
}
.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
}
.showcase-card::before {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 62%);
}
.showcase-card-hero { grid-row: span 2; }
.showcase-number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
}
.showcase-bars,
.mini-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.showcase-bars span,
.mini-pills span {
  display: inline-flex;
  min-height: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.showcase-bars .is-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.map-grid i {
  display: block;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
}
.avatar-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-2));
  box-shadow: 0 0 30px rgba(99, 245, 201, 0.28);
  margin-bottom: 16px;
}
