:root {
  --bg: #0f1115;
  --bg-2: #16191f;
  --bg-3: #1d222b;
  --card: #1b1f26;
  --card-2: #20252e;
  --text: #e6e8ef;
  --muted: #9aa3b2;
  --accent: #ff4d4d;
  --pill: #2a303a;
  --border: #2a2f39;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 12% -10%, #1a202b 0%, var(--bg) 52%);
  color: var(--text);
  padding: 28px 24px calc(64px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40rem 18rem at 85% -10%, rgba(255, 77, 77, 0.1), transparent 65%),
    radial-gradient(32rem 16rem at -10% 18%, rgba(124, 226, 255, 0.08), transparent 70%);
  z-index: -1;
}

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

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(255, 77, 77, 0.24);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 54px;
  position: relative;
  z-index: 80;
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(22, 27, 35, 0.88);
  color: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

body.nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(9, 12, 18, 0.66);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 70;
}

body.nav-open .mobile-nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.brand-link {
  color: #fff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.brand-link:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
}

.nav > a {
  display: inline-block;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav > a.mobile-home-link {
  display: none;
}

.nav > a:hover {
  color: #fff;
  transform: translateY(-1px);
}


.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

html.js .auth-actions[data-auth-state="pending"] {
  visibility: hidden;
}

.auth-btn {
  border: 1px solid var(--border);
  background: rgba(32, 37, 46, 0.8);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 77, 0.4);
}

.auth-login {
  background: linear-gradient(135deg, #c72e65, #d63d75);
  border-color: rgba(214, 61, 117, 0.5);
  color: #fff;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 2px 10px 2px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23, 27, 34, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav a.auth-user {
  display: inline-flex;
}

.auth-user:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 77, 0.4);
}

.auth-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-user-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
}

.auth-logout {
  width: 40px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #fff;
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(22, 26, 34, 0.98), rgba(18, 22, 30, 0.96));
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 220;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-link {
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(36, 42, 52, 0.72);
  color: #e8ebf3;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.profile-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 77, 0.35);
  background: rgba(45, 52, 64, 0.88);
}

.logout-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 1.18fr) minmax(260px, 0.82fr);
  gap: 28px;
  margin-bottom: 56px;
  align-items: start;
}

.hero-text h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  margin: 14px 0 16px;
  color: #fff;
  letter-spacing: 0.25px;
}

.hero-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.btn.secondary {
  background: rgba(32, 37, 46, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 77, 77, 0.42);
}

.trust-line {
  margin-top: 16px;
  color: #a8b1be;
  font-size: 13px;
  letter-spacing: 0.22px;
}

.hero-card {
  background: linear-gradient(150deg, rgba(27, 31, 38, 0.95), rgba(32, 37, 46, 0.86));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 77, 0.33);
}

.hero-card h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.hero-card .module-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  color: #d3d8e4;
  font-size: 14px;
  padding-left: 18px;
  position: relative;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7575, #ff4d4d);
}

.pill {
  background: var(--pill);
  color: #7ce2ff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.section {
  margin: 54px 0;
}

.pricing-hero {
  margin-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid rgba(42, 47, 57, 0.95);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(27, 31, 38, 0.9), rgba(19, 23, 30, 0.78));
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card-pro {
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.pricing-tier {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(42, 48, 58, 0.95);
  color: #7ce2ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-tier-pro {
  background: rgba(255, 77, 77, 0.14);
  color: #ff9aa8;
}

.pricing-name {
  font-size: 24px;
  color: #fff;
  line-height: 1.2;
}

.pricing-price {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.pricing-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-left: 4px;
}

.pricing-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pricing-cta {
  margin-top: 4px;
}

.pricing-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pricing-list li {
  color: #d5dbe7;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.pricing-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7575, #ff4d4d);
  position: absolute;
  left: 0;
  top: 7px;
}

.pricing-compare-wrap {
  overflow: hidden;
}

.pricing-compare {
  border: 1px solid rgba(42, 47, 57, 0.95);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(27, 31, 38, 0.9), rgba(19, 23, 30, 0.78));
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(110px, 1fr) minmax(110px, 1fr);
  align-items: center;
}

.pricing-row + .pricing-row {
  border-top: 1px solid rgba(42, 47, 57, 0.9);
}

.pricing-row-head {
  background: rgba(24, 28, 36, 0.92);
}

.pricing-col {
  padding: 14px 16px;
  color: #d9dfeb;
  font-size: 14px;
}

.pricing-col.feature {
  color: #fff;
  font-weight: 600;
}

.spotlight-stack {
  display: grid;
  gap: 16px;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(42, 47, 57, 0.95);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(27, 31, 38, 0.9), rgba(19, 23, 30, 0.78));
  transition: transform 0.42s ease, border-color 0.32s ease, box-shadow 0.42s ease;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 35%, transparent 65%, rgba(255, 77, 77, 0.04));
}

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 77, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.spotlight-card h3 {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 10px 0;
  line-height: 1.2;
}

.spotlight-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 760px;
}

.spotlight-points {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.spotlight-points li {
  position: relative;
  color: #d5dbe7;
  font-size: 14px;
  padding-left: 18px;
}

.spotlight-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7575, #ff4d4d);
}

.section-title {
  font-size: clamp(22px, 2.4vw, 30px);
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  max-width: 720px;
}

.section-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 700px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  border: 1px solid var(--border);
  background: rgba(23, 27, 34, 0.7);
  color: #e9edf7;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 77, 0.35);
  background: rgba(31, 36, 46, 0.92);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.feature-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(320px, 78vw, 860px);
  gap: 20px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feature-carousel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.feature-slide {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(42, 47, 57, 0.95);
  border-radius: 22px;
  min-height: 320px;
  padding: 30px 30px 28px;
  background: linear-gradient(160deg, rgba(27, 31, 38, 0.82), rgba(18, 21, 27, 0.66));
  backdrop-filter: blur(3px);
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
  cursor: default;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
}

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

.feature-slide::after {
  display: none;
}

.feature-slide:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 77, 0.28);
  background: linear-gradient(160deg, rgba(30, 34, 42, 0.9), rgba(20, 24, 31, 0.72));
  box-shadow: 0 24px 38px rgba(0, 0, 0, 0.36);
}

.feature-index {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #9aa3b2;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-slide .feature-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.feature-slide h4 {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: 0.2px;
}

.feature-slide p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 0;
}

.feature-slide ul {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  align-self: end;
}

.feature-slide li {
  color: #d5dbe7;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.feature-slide li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7575, #ff4d4d);
  position: absolute;
  left: 0;
  top: 7px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(154, 163, 178, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.active {
  background: #ff4d4d;
  transform: scale(1.2);
}

.roadmap-panel {
  border: 1px solid rgba(42, 47, 57, 0.95);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(27, 31, 38, 0.9), rgba(19, 23, 30, 0.78));
  overflow: hidden;
}

.roadmap-row {
  padding: 18px 20px;
}

.roadmap-row + .roadmap-row {
  border-top: 1px solid rgba(42, 47, 57, 0.9);
}

.roadmap-tag {
  display: inline-block;
  margin-bottom: 7px;
  color: #7ce2ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.roadmap-row h4 {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.roadmap-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

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

.feature-tile {
  border: 1px solid rgba(42, 47, 57, 0.95);
  border-radius: 14px;
  padding: 18px 16px;
  background: linear-gradient(160deg, rgba(27, 31, 38, 0.82), rgba(18, 21, 27, 0.66));
  backdrop-filter: blur(2px);
  transition: transform 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.feature-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 77, 0.28);
  background: linear-gradient(160deg, rgba(30, 34, 42, 0.9), rgba(20, 24, 31, 0.72));
}

.feature-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #7ce2ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.feature-tile h4 {
  color: #fff;
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 1.25;
}

.feature-tile p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cta-band {
  background: linear-gradient(145deg, rgba(27, 31, 38, 0.9), rgba(32, 37, 46, 0.82));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cta-band h3 {
  color: #fff;
  font-size: 22px;
}

.cta-copy {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.footer {
  margin-top: 66px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #a3b0c5;
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  color: #fff;
}

.settings-wrap {
  width: min(760px, 100%);
}

.settings-card {
  background: linear-gradient(145deg, rgba(27, 31, 38, 0.95), rgba(32, 37, 46, 0.86));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.settings-title {
  color: #fff;
  font-size: 28px;
  margin-bottom: 8px;
}

.settings-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 25, 33, 0.75);
  padding: 16px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.setting-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 77, 0.35);
}

.setting-label {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.setting-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(32, 37, 46, 0.9);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s ease;
}

.switch input:checked + .switch-slider {
  background: rgba(255, 77, 77, 0.38);
  border-color: rgba(255, 77, 77, 0.58);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(24px);
}

.setting-state {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
  min-height: 16px;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  z-index: 9999;
  opacity: 0;
  overflow: visible;
}

.cursor-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.88), 0 0 18px rgba(255, 255, 255, 0.56);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, border-radius 0.2s ease, box-shadow 0.25s ease;
}

.cursor-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%);
  will-change: transform, opacity, clip-path;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 260ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 280ms cubic-bezier(0.22, 1, 0.36, 1),
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    height 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-cursor.button-hover .cursor-core {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.96), 0 0 26px rgba(255, 77, 77, 0.55);
}

.custom-cursor.scroll-middle .cursor-core {
  transform: translate(-50%, -50%) scale(0.72);
}

.custom-cursor.scroll-middle .cursor-orb {
  opacity: 1;
  width: 8px;
  height: 10px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.68), 0 0 12px rgba(255, 255, 255, 0.36);
}

.custom-cursor.scroll-middle .cursor-orb-up {
  transform: translate(-50%, -178%) scale(1);
  clip-path: polygon(50% 16%, 84% 78%, 72% 92%, 28% 92%, 16% 78%);
}

.custom-cursor.scroll-middle .cursor-orb-down {
  transform: translate(-50%, 78%) scale(1);
  clip-path: polygon(16% 22%, 28% 8%, 72% 8%, 84% 22%, 50% 84%);
}

.custom-cursor.scroll-middle.scroll-up .cursor-orb-down {
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
}

.custom-cursor.scroll-middle.scroll-down .cursor-orb-up {
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
}

.cursor-enabled,
.cursor-enabled a,
.cursor-enabled button,
.cursor-enabled input,
.cursor-enabled label,
.cursor-enabled select,
.cursor-enabled textarea,
.cursor-enabled .switch,
.cursor-enabled .switch-slider {
  cursor: none;
}

.cursor-enabled .feature-slide,
.cursor-enabled .feature-carousel {
  cursor: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.85s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.perf-lite .bg-glow {
  display: none;
}

.perf-lite .custom-cursor {
  display: none !important;
}

.perf-lite .hero-card,
.perf-lite .feature-slide,
.perf-lite .spotlight-card,
.perf-lite .feature-tile,
.perf-lite .cta-band {
  backdrop-filter: none;
  box-shadow: none;
}

.perf-lite .reveal,
.perf-lite .animate-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.animate-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-card {
    order: 2;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-carousel {
    grid-auto-columns: 88%;
  }

  .feature-slide {
    min-height: 290px;
    padding: 24px 22px;
  }

  .feature-slide h4 {
    font-size: clamp(26px, 8vw, 36px);
  }

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

@media (max-width: 1180px) {
  .feature-carousel {
    grid-auto-columns: minmax(300px, 86%);
  }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }

  .feature-tile:hover,
  .feature-slide:hover,
  .btn:hover,
  .hero-card:hover {
    transform: none;
    box-shadow: none;
  }
}

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

  .reveal,
  .animate-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 680px) {
  body {
    padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
  }

  body.nav-open {
    overflow: hidden;
  }

  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
  }

  .mobile-nav-toggle {
    display: inline-block;
    flex: 0 0 42px;
    order: 1;
  }

  .brand {
    order: 2;
    margin-right: auto;
    min-width: 0;
  }

  .nav {
    width: min(320px, 86vw);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    margin-left: 0;
    z-index: 390;
    justify-content: flex-start;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 72px 14px calc(14px + env(safe-area-inset-bottom));
    border-right: 1px solid rgba(42, 47, 57, 0.95);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
    background: linear-gradient(160deg, rgba(18, 23, 31, 0.98), rgba(16, 20, 27, 0.98));
    transform: translateX(calc(-100% - 20px));
    transition: transform 0.26s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 13px;
  }

  body.nav-open .nav {
    transform: translateX(0);
  }

  .nav > a {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(24, 29, 37, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav > a.mobile-home-link {
    display: inline-flex;
  }


  .auth-actions {
    order: -1;
    width: 100%;
    margin: 0 0 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav a.auth-user {
    width: 100%;
  }

  .auth-btn,
  .auth-user {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
  }

  .auth-user {
    height: auto;
    padding: 4px 10px 4px 4px;
  }

  .auth-logout {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .profile-menu {
    width: min(100%, calc(100% - 52px));
  }

  .profile-dropdown {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    min-width: 0;
    margin-top: 8px;
    transform: none;
    transform-origin: initial;
    box-shadow: none;
    display: none;
  }

  .profile-menu.open .profile-dropdown {
    display: grid;
    transform: none;
  }

  .btn,
  .carousel-btn,
  .profile-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: clamp(30px, 10vw, 40px);
  }

  .hero-text p,
  .module-desc,
  .section-lead,
  .cta-copy {
    font-size: 14px;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }

  .feature-tile h4 {
    font-size: 18px;
  }

  .cta-band h3 {
    font-size: 20px;
  }

  .section {
    margin: 36px 0;
  }

  .pricing-card {
    padding: 18px;
  }

  .pricing-name {
    font-size: 22px;
  }

  .pricing-price {
    font-size: 28px;
  }

  .pricing-compare {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-row {
    min-width: 560px;
  }

  .pricing-col.feature {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(23, 28, 36, 0.96);
  }

  .feature-carousel {
    grid-auto-columns: 95%;
    gap: 14px;
    scroll-padding-left: 2px;
  }

  .feature-slide {
    min-height: 250px;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .feature-slide p {
    font-size: 14px;
  }

  .roadmap-row {
    padding: 16px;
  }

  .settings-card {
    padding: 18px;
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .switch {
    align-self: flex-end;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 16px 12px calc(30px + env(safe-area-inset-bottom));
  }

  .brand {
    font-size: 16px;
    gap: 10px;
  }

  .brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .topbar {
    margin-bottom: 26px;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }

  .mobile-nav-toggle span {
    width: 17px;
  }

  .nav {
    width: min(300px, 88vw);
    gap: 9px;
    font-size: 13px;
    padding: 68px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .nav > a {
    padding: 10px 11px;
  }

  .hero {
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: clamp(28px, 11vw, 34px);
  }

  .hero-card {
    padding: 18px;
    border-radius: 14px;
  }

  .hero-card h3 {
    font-size: 21px;
  }

  .section-title {
    font-size: clamp(21px, 8vw, 27px);
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .feature-slide h4 {
    font-size: clamp(22px, 9vw, 30px);
  }

  .feature-slide li {
    font-size: 13px;
  }

  .cta-band {
    padding: 18px;
    border-radius: 14px;
  }

  .footer {
    margin-top: 44px;
    padding-top: 16px;
  }

  .footer-links {
    gap: 10px;
    margin-bottom: 8px;
  }
}

@media (max-width: 390px) {
  body {
    padding: 14px 10px calc(26px + env(safe-area-inset-bottom));
  }

  .topbar {
    margin-bottom: 22px;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .mobile-nav-toggle span {
    width: 16px;
    margin: 2.5px auto;
  }

  .nav {
    width: min(280px, 90vw);
    gap: 8px;
    font-size: 12px;
    padding: 64px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .nav > a {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .auth-actions {
    gap: 8px;
  }

  .auth-btn,
  .auth-user,
  .btn,
  .profile-link {
    min-height: 42px;
  }

  .auth-logout {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .hero {
    gap: 16px;
    margin-bottom: 30px;
  }

  .hero-text h1 {
    font-size: clamp(24px, 9.4vw, 30px);
    line-height: 1.08;
    margin: 10px 0 12px;
  }

  .hero-text p,
  .module-desc,
  .section-lead,
  .cta-copy {
    font-size: 13px;
    line-height: 1.55;
  }

  .trust-line {
    margin-top: 12px;
    font-size: 12px;
  }

  .section {
    margin: 30px 0;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  .feature-carousel {
    grid-auto-columns: 100%;
    gap: 12px;
  }

  .feature-slide {
    min-height: 230px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .feature-slide h4 {
    font-size: clamp(20px, 8.8vw, 27px);
  }

  .feature-slide p,
  .feature-slide li {
    font-size: 13px;
  }

  .pricing-card {
    padding: 16px;
  }

  .pricing-row {
    min-width: 520px;
  }

  .roadmap-row h4 {
    font-size: 20px;
  }

  .cta-band {
    padding: 16px;
  }

  .footer {
    margin-top: 34px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .setting-row {
    padding: 12px;
  }

  .setting-label {
    font-size: 15px;
  }
}
