:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --surface-soft: #f7f9fd;
  --text: #172033;
  --muted: #5c687d;
  --line: #d8e0ee;
  --primary: #2f6fe4;
  --primary-strong: #235bc0;
  --primary-soft: #dfeaff;
  --accent: #ff8f6b;
  --accent-soft: #ffe8df;
  --shadow-lg: 0 24px 60px rgba(23, 32, 51, 0.12);
  --shadow-md: 0 12px 28px rgba(23, 32, 51, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --success: #2d8a62;
  --danger: #c85d69;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #0f1a2d;
  --surface-alt: #122139;
  --surface-soft: #16253d;
  --text: #eef4ff;
  --muted: #99a8c2;
  --line: #2a3955;
  --primary: #69a0ff;
  --primary-strong: #4f82df;
  --primary-soft: rgba(105, 160, 255, 0.18);
  --accent: #ff9f7a;
  --accent-soft: rgba(255, 159, 122, 0.16);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.28);
  --success: #51c98e;
  --danger: #ff8e9a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 228, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 143, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(105, 160, 255, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 159, 122, 0.1), transparent 20%),
    linear-gradient(180deg, #08101d 0%, var(--bg) 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(47, 111, 228, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 253, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(216, 224, 238, 0.9);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 228, 0.12);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  margin-left: 6px;
}

.nav-utilities,
.auth-actions,
.account-shell,
.subpage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-utilities {
  margin-left: auto;
  justify-content: flex-end;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 46px 48px;
  align-items: center;
  gap: 12px;
  width: 126px;
  min-height: 48px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.04);
}

.theme-toggle-thumb {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff4b8, #ffc86a);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 106, 0.32);
  transform: translateX(3px);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  z-index: 1;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 228, 0.12);
  transform: translateY(-50%);
}

.theme-toggle-thumb::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.theme-toggle-text {
  display: inline-block;
  width: 48px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.04);
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  color: var(--primary-strong);
  font-weight: 700;
  line-height: 1;
}

.account-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-copy strong {
  font-size: 0.92rem;
}

.account-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-logout {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.account-logout:hover,
.account-logout:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 111, 228, 0.24);
}

.site-nav .button-primary,
.site-nav .button-primary:hover,
.site-nav .button-primary:focus-visible {
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-strong);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(47, 111, 228, 0.28);
  box-shadow: var(--shadow-md);
}

.button-block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 52px 0 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  background:
    linear-gradient(180deg, rgba(47, 111, 228, 0.05), transparent),
    radial-gradient(circle at 15% 20%, rgba(47, 111, 228, 0.14), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 143, 107, 0.12), transparent 20%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 620px);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.hero h1,
.section-heading h2,
.contact-panel h2,
.error-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.hero-text,
.section-heading p,
.contact-panel p,
.error-copy p,
.footer-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.meta-card {
  padding: 18px;
  border: 1px solid rgba(216, 224, 238, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.04);
}

.meta-card strong,
.card-title,
.sidebar-title,
.plan-name {
  display: block;
  font-size: 0.95rem;
}

.meta-card span,
.usage-card p,
.upload-list li span,
.activity-list li > div span,
.plan-summary,
.quote-byline span,
.footer-bottom p {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  z-index: 0;
}

.hero-visual::before {
  width: 180px;
  height: 180px;
  top: -20px;
  right: 0;
  background: rgba(47, 111, 228, 0.18);
}

.hero-visual::after {
  width: 120px;
  height: 120px;
  bottom: 40px;
  left: -10px;
  background: rgba(255, 143, 107, 0.18);
}

.dashboard-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(216, 224, 238, 0.86);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(216, 224, 238, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 252, 0.95));
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d4dbea;
}

.window-dots span:first-child {
  background: #ffb39c;
}

.window-dots span:nth-child(2) {
  background: #ffd39d;
}

.window-dots span:nth-child(3) {
  background: #a9dfb8;
}

.dashboard-search,
.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.dashboard-search {
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid rgba(216, 224, 238, 0.72);
}

.status-pill,
.chip {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.chip-alt {
  background: var(--accent-soft);
  color: #cb6a49;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.dash-sidebar {
  padding: 22px;
  border-right: 1px solid rgba(216, 224, 238, 0.72);
  background: linear-gradient(180deg, rgba(247, 249, 253, 0.92), rgba(255, 255, 255, 0.94));
}

.sidebar-list,
.upload-list,
.activity-list,
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.sidebar-list li {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.sidebar-list li.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.usage-card,
.dash-card,
.info-card,
.step-card,
.price-card,
.quote-card,
.resource-card,
.contact-panel,
.error-panel {
  border: 1px solid rgba(216, 224, 238, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.05);
}

.usage-card {
  margin-top: 24px;
  padding: 18px;
}

.usage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.usage-head strong {
  font-size: 1.2rem;
}

.usage-bar {
  margin: 14px 0 10px;
  height: 8px;
  border-radius: 999px;
  background: #e8edf7;
  overflow: hidden;
}

.usage-bar span {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.dash-main {
  padding: 22px;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.88)),
    linear-gradient(90deg, rgba(47, 111, 228, 0.03), transparent 40%);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.dash-lower {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.dash-card {
  padding: 18px;
  min-width: 0;
}

.accent-card {
  background: linear-gradient(180deg, rgba(47, 111, 228, 0.08), rgba(255, 255, 255, 0.95));
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.upload-list {
  display: grid;
  gap: 14px;
}

.upload-list li,
.activity-list li,
.activity-list li div {
  min-width: 0;
}

.upload-list li strong,
.activity-list li strong,
.plan-features li,
.resource-card h3,
.info-card h3,
.step-card h3,
.quote-byline strong,
.faq-trigger {
  font-size: 1rem;
}

.upload-list li strong,
.activity-list li strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.upload-list li span,
.activity-list li > div span,
.card-title {
  overflow-wrap: anywhere;
}

.activity-list li > div span {
  display: block;
  line-height: 1.45;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.9rem;
  white-space: normal;
}

.waveform-stack {
  display: grid;
  gap: 18px;
}

.waveform-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 84px;
  padding: 4px 0;
  overflow: hidden;
  --playhead: 0%;
}

.waveform-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 111, 228, 0.16), transparent);
  transform: translateY(-50%);
}

.waveform-row::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: var(--playhead);
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(160, 240, 255, 0), rgba(160, 240, 255, 0.95), rgba(160, 240, 255, 0));
  box-shadow: 0 0 18px rgba(120, 229, 255, 0.7);
  transform: translateX(-50%);
  pointer-events: none;
}

.waveform-bar {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(110, 231, 255, 0.28), rgba(110, 231, 255, 0.94));
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.08),
    0 0 10px rgba(90, 180, 255, 0.12);
  transform-origin: center;
  opacity: 0.72;
  will-change: transform, opacity;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

.waveform-bar.waveform-bar-accent {
  background: linear-gradient(180deg, rgba(74, 107, 255, 0.2), rgba(74, 107, 255, 0.72));
  box-shadow:
    0 0 0 1px rgba(74, 107, 255, 0.08),
    0 0 12px rgba(74, 107, 255, 0.16);
}

.waveform-bar.is-live {
  transform: scaleY(1.18);
  opacity: 1;
  background: linear-gradient(180deg, rgba(181, 247, 255, 0.38), rgba(181, 247, 255, 1));
  box-shadow:
    0 0 0 1px rgba(181, 247, 255, 0.16),
    0 0 18px rgba(139, 241, 255, 0.34);
}

.waveform-row-soft .waveform-bar {
  background: linear-gradient(180deg, rgba(255, 170, 144, 0.24), rgba(255, 170, 144, 0.9));
  box-shadow:
    0 0 0 1px rgba(255, 170, 144, 0.08),
    0 0 10px rgba(255, 143, 107, 0.12);
}

.waveform-row-soft .waveform-bar.waveform-bar-accent {
  background: linear-gradient(180deg, rgba(122, 104, 255, 0.18), rgba(122, 104, 255, 0.66));
  box-shadow:
    0 0 0 1px rgba(122, 104, 255, 0.08),
    0 0 12px rgba(122, 104, 255, 0.14);
}

.waveform-row-soft .waveform-bar.is-live {
  background: linear-gradient(180deg, rgba(255, 202, 186, 0.3), rgba(255, 202, 186, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 202, 186, 0.16),
    0 0 18px rgba(255, 190, 164, 0.28);
}

.waveform-row-soft::before {
  background: linear-gradient(90deg, transparent, rgba(255, 143, 107, 0.14), transparent);
}

.waveform-row-soft::after {
  background: linear-gradient(180deg, rgba(255, 214, 198, 0), rgba(255, 214, 198, 0.95), rgba(255, 214, 198, 0));
  box-shadow: 0 0 14px rgba(255, 190, 164, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .waveform-bar {
    transition: none;
  }
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.section {
  padding: 44px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(238, 244, 255, 0.58));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-panel h2,
.error-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p,
.contact-panel p,
.error-copy p {
  margin: 14px 0 0;
  font-size: 1.02rem;
}

.card-grid,
.pricing-grid,
.steps-grid,
.resource-grid {
  display: grid;
  gap: 20px;
}

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

.use-case-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.step-card,
.price-card,
.quote-card,
.resource-card {
  padding: 24px;
}

.info-card,
.quote-card,
.resource-card,
.price-card,
.step-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card:hover,
.quote-card:hover,
.resource-card:hover,
.price-card:hover,
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 111, 228, 0.2);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  color: var(--primary);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card h3,
.step-card h3,
.quote-card p,
.resource-card h3,
.price-card h3 {
  margin: 0;
}

.info-card p,
.step-card p,
.resource-card p,
.quote-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  position: relative;
  padding-top: 72px;
}

.step-number {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 700;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  position: relative;
}

.price-card h3 {
  margin-top: 10px;
  font-size: 3rem;
  letter-spacing: -0.05em;
}

.price-card h3 span {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-summary {
  margin: 10px 0 18px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(47, 111, 228, 0.08), rgba(255, 255, 255, 0.97));
  border-color: rgba(47, 111, 228, 0.22);
  transform: translateY(-6px);
}

.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #cb6a49;
  font-size: 0.82rem;
  font-weight: 700;
}

.quote-card p {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.quote-byline {
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(216, 224, 238, 0.86);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.04);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--text);
  text-align: left;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  opacity: 0;
}

.faq-panel {
  padding: 0 22px 20px;
}

.faq-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  position: relative;
  z-index: 5;
  padding-bottom: 56px;
}

.contact-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(47, 111, 228, 0.08), rgba(255, 255, 255, 0.94));
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.48);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid rgba(216, 224, 238, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

.auth-close:hover,
.auth-close:focus-visible {
  color: var(--text);
}

.auth-intro {
  margin-bottom: 20px;
}

.auth-intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.auth-tab {
  min-height: 46px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(47, 111, 228, 0.4);
  box-shadow: 0 0 0 4px rgba(47, 111, 228, 0.12);
}

.auth-feedback {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-feedback.is-error {
  color: var(--danger);
}

.auth-feedback.is-success {
  color: var(--success);
}

.auth-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 12px 0 28px;
  border-top: 1px solid rgba(216, 224, 238, 0.9);
}

.footer-inner,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-copy {
  max-width: 460px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-link-button {
  padding: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a,
.footer-link-button,
.error-link {
  color: var(--muted);
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: color 0.2s ease;
}

.contact-actions .button,
.footer-links a,
.footer-link-button,
.footer-bottom a {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-link-button:hover,
.footer-link-button:focus-visible,
.error-link:hover,
.error-link:focus-visible {
  color: var(--text);
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 24px;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.42);
  backdrop-filter: blur(8px);
}

.info-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid rgba(216, 224, 238, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
}

.info-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

.info-close:hover,
.info-close:focus-visible {
  color: var(--text);
}

.info-dialog h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.info-body {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.info-body p,
.info-body ul {
  margin: 0;
}

.info-body ul {
  padding-left: 20px;
}

.copy-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.copy-address {
  font-size: 1.05rem;
  color: var(--text);
  word-break: break-word;
}

.copy-button {
  width: 100%;
}

.copy-feedback {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(216, 224, 238, 0.9);
}

.subpage {
  min-height: 100vh;
}

.error-layout {
  display: grid;
  place-items: center;
  padding: 72px 0 64px;
}

.error-panel {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 40px), 940px);
  padding: 32px;
}

.error-code {
  display: grid;
  place-items: center;
  min-height: 200px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(47, 111, 228, 0.22), transparent 28%),
    radial-gradient(circle at 75% 25%, rgba(255, 143, 107, 0.24), transparent 22%),
    linear-gradient(180deg, #ffffff, #eef4ff);
  color: var(--primary-strong);
  font-size: clamp(3.8rem, 8vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.error-copy .eyebrow {
  margin-bottom: 16px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

html[data-theme="dark"] .site-header {
  background: rgba(9, 15, 27, 0.84);
}

html[data-theme="dark"] .site-header.is-scrolled {
  border-color: rgba(42, 57, 85, 0.95);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .site-nav {
  background: rgba(11, 18, 32, 0.98);
  border-color: rgba(42, 57, 85, 0.92);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .icon-box,
html[data-theme="dark"] .account-avatar,
html[data-theme="dark"] .avatar {
  background: linear-gradient(135deg, rgba(105, 160, 255, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(105, 160, 255, 0.18);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .account-button {
  background: rgba(15, 26, 45, 0.86);
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="dark"] .theme-toggle-thumb {
  background: linear-gradient(135deg, #b6ccff, #6d90e8);
  box-shadow: inset 0 0 0 1px rgba(182, 204, 255, 0.32);
}

html[data-theme="dark"] .theme-toggle::before {
  background: rgba(22, 37, 61, 0.95);
  box-shadow: inset 0 0 0 1px rgba(105, 160, 255, 0.18);
}

html[data-theme="dark"] .theme-toggle-thumb::after {
  opacity: 1;
  background: rgba(15, 26, 45, 0.88);
}

html[data-theme="dark"] .hero::before {
  background:
    linear-gradient(180deg, rgba(105, 160, 255, 0.08), transparent),
    radial-gradient(circle at 15% 20%, rgba(105, 160, 255, 0.16), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 159, 122, 0.12), transparent 20%);
}

html[data-theme="dark"] .meta-card,
html[data-theme="dark"] .usage-card,
html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .error-panel,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .auth-dialog {
  background: rgba(11, 18, 32, 0.9);
  border-color: rgba(42, 57, 85, 0.96);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .dashboard-shell {
  background: rgba(11, 18, 32, 0.92);
  border-color: rgba(42, 57, 85, 0.96);
}

html[data-theme="dark"] .dashboard-topbar {
  border-bottom-color: rgba(42, 57, 85, 0.92);
  background: linear-gradient(180deg, rgba(16, 26, 45, 0.96), rgba(11, 18, 32, 0.96));
}

html[data-theme="dark"] .dashboard-body {
  background: transparent;
}

html[data-theme="dark"] .dash-sidebar {
  border-right-color: rgba(42, 57, 85, 0.92);
  background: linear-gradient(180deg, rgba(18, 33, 57, 0.92), rgba(11, 18, 32, 0.96));
}

html[data-theme="dark"] .dash-main {
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(15, 26, 45, 0.92)),
    linear-gradient(90deg, rgba(105, 160, 255, 0.04), transparent 40%);
}

html[data-theme="dark"] .dashboard-search,
html[data-theme="dark"] .tag-cloud span,
html[data-theme="dark"] .sidebar-list li.is-active,
html[data-theme="dark"] .auth-tab.is-active {
  background: rgba(22, 37, 61, 0.92);
  border-color: rgba(42, 57, 85, 0.92);
  color: var(--text);
}

html[data-theme="dark"] .sidebar-list li {
  color: var(--muted);
}

html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .chip {
  color: #dce8ff;
}

html[data-theme="dark"] .chip-alt,
html[data-theme="dark"] .featured-badge {
  color: #ffd4c7;
}

html[data-theme="dark"] .window-dots span {
  background: #334563;
}

html[data-theme="dark"] .waveform-bar {
  background: linear-gradient(180deg, rgba(123, 236, 255, 0.32), rgba(123, 236, 255, 0.96));
  box-shadow:
    0 0 0 1px rgba(123, 236, 255, 0.08),
    0 0 12px rgba(105, 160, 255, 0.16);
}

html[data-theme="dark"] .waveform-bar.waveform-bar-accent {
  background: linear-gradient(180deg, rgba(97, 120, 255, 0.22), rgba(97, 120, 255, 0.76));
}

html[data-theme="dark"] .waveform-bar.is-live {
  background: linear-gradient(180deg, rgba(201, 248, 255, 0.4), rgba(201, 248, 255, 1));
  box-shadow:
    0 0 0 1px rgba(201, 248, 255, 0.14),
    0 0 18px rgba(123, 236, 255, 0.24);
}

html[data-theme="dark"] .waveform-row-soft .waveform-bar {
  background: linear-gradient(180deg, rgba(255, 183, 160, 0.28), rgba(255, 183, 160, 0.9));
}

html[data-theme="dark"] .waveform-row-soft .waveform-bar.waveform-bar-accent {
  background: linear-gradient(180deg, rgba(143, 124, 255, 0.2), rgba(143, 124, 255, 0.68));
}

html[data-theme="dark"] .waveform-row-soft .waveform-bar.is-live {
  background: linear-gradient(180deg, rgba(255, 221, 208, 0.36), rgba(255, 221, 208, 0.98));
}

html[data-theme="dark"] .usage-bar {
  background: rgba(22, 37, 61, 0.92);
}

html[data-theme="dark"] .accent-card,
html[data-theme="dark"] .price-card.featured,
html[data-theme="dark"] .contact-panel {
  background: linear-gradient(180deg, rgba(105, 160, 255, 0.12), rgba(11, 18, 32, 0.94));
}

html[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.38), rgba(15, 26, 45, 0.72));
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .auth-tabs {
  background: rgba(15, 26, 45, 0.92);
}

html[data-theme="dark"] .auth-backdrop {
  background: rgba(2, 6, 12, 0.66);
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(42, 57, 85, 0.95);
}

html[data-theme="dark"] .error-code {
  background:
    radial-gradient(circle at 30% 30%, rgba(105, 160, 255, 0.2), transparent 28%),
    radial-gradient(circle at 75% 25%, rgba(255, 159, 122, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(15, 26, 45, 0.98), rgba(11, 18, 32, 0.96));
  color: #dce8ff;
}

html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .footer-link-button,
html[data-theme="dark"] .error-link,
html[data-theme="dark"] .account-logout {
  color: var(--muted);
}

html[data-theme="dark"] .footer-links a:hover,
html[data-theme="dark"] .footer-links a:focus-visible,
html[data-theme="dark"] .footer-link-button:hover,
html[data-theme="dark"] .footer-link-button:focus-visible,
html[data-theme="dark"] .error-link:hover,
html[data-theme="dark"] .error-link:focus-visible,
html[data-theme="dark"] .account-logout:hover,
html[data-theme="dark"] .account-logout:focus-visible {
  color: var(--text);
}

html[data-theme="dark"] .info-dialog {
  background: rgba(11, 18, 32, 0.96);
  border-color: rgba(42, 57, 85, 0.96);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .info-backdrop {
  background: rgba(2, 6, 12, 0.6);
}

html[data-theme="dark"] .copy-card {
  background: rgba(15, 26, 45, 0.92);
  border-color: rgba(42, 57, 85, 0.96);
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hero-grid,
  .use-case-grid,
  .feature-grid,
  .testimonial-grid,
  .steps-grid,
  .resource-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    align-items: start;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 78px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(216, 224, 238, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-utilities,
  .auth-actions,
  .account-shell {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .theme-toggle,
  .account-button,
  .account-logout {
    width: 100%;
  }

  .subpage-actions {
    width: auto;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-grid,
  .summary-grid,
  .dash-lower,
  .dashboard-body,
  .feature-grid,
  .use-case-grid,
  .testimonial-grid,
  .steps-grid,
  .pricing-grid,
  .resource-grid,
  .error-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 30px;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dash-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 224, 238, 0.72);
  }

  html[data-theme="dark"] .dash-sidebar {
    border-bottom-color: rgba(42, 57, 85, 0.92);
  }

  .contact-panel {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero,
  .section {
    padding: 34px 0;
  }

  .button,
  .button-block {
    width: 100%;
  }

  .hero-actions,
  .contact-actions,
  .error-actions {
    width: 100%;
  }

  .subpage-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .auth-dialog {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
    max-width: 100%;
  }

  .price-card h3 {
    font-size: 2.4rem;
  }

  .price-card.featured {
    transform: none;
  }

  .site-footer,
  .footer-bottom {
    text-align: left;
  }

  .footer-inner,
  .footer-bottom {
    align-items: flex-start;
  }
}
