:root {
  --site-bg: #f6f8fc;
  --site-bg-soft: #edf2fb;
  --site-panel: rgba(255, 255, 255, 0.94);
  --site-panel-strong: #ffffff;
  --site-panel-soft: #eef3fb;
  --site-line: rgba(37, 57, 89, 0.12);
  --site-line-strong: rgba(37, 57, 89, 0.24);
  --site-ink: #10213f;
  --site-muted: #5a6982;
  --site-blue: #4169e1;
  --site-blue-2: #6f8dff;
  --site-deep: #14244d;
  --site-accent: #ff9d2e;
  --site-danger: #b24b2f;
  --site-success: #246343;
  --site-success-bg: rgba(36, 99, 67, 0.12);
  --site-pill-ink: #2447b8;
  --site-pill-bg: rgba(65, 105, 225, 0.14);
  --site-pill-border: rgba(65, 105, 225, 0.24);
  --site-shadow: 0 26px 60px rgba(16, 33, 63, 0.12);
  --site-shadow-soft: 0 14px 30px rgba(16, 33, 63, 0.08);
  --site-radius: 18px;
}

body[data-theme="dark"] {
  --site-bg: #07111f;
  --site-bg-soft: #0b1628;
  --site-panel: rgba(10, 18, 32, 0.9);
  --site-panel-strong: rgba(17, 27, 43, 0.96);
  --site-panel-soft: rgba(12, 22, 38, 0.94);
  --site-line: rgba(148, 163, 184, 0.16);
  --site-line-strong: rgba(148, 163, 184, 0.28);
  --site-ink: #f7fbff;
  --site-muted: #9ba9c0;
  --site-blue: #6b8cff;
  --site-blue-2: #9ab2ff;
  --site-deep: #0d1730;
  --site-accent: #ff9d2e;
  --site-danger: #ff9a72;
  --site-success: #88d0a6;
  --site-success-bg: rgba(136, 208, 166, 0.14);
  --site-pill-ink: #dce7ff;
  --site-pill-bg: rgba(65, 105, 225, 0.2);
  --site-pill-border: rgba(111, 141, 255, 0.28);
  --site-shadow: 0 30px 76px rgba(0, 0, 0, 0.34);
  --site-shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--site-ink);
  background:
    radial-gradient(circle at top left, rgba(65, 105, 225, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, var(--site-bg) 24%, var(--site-bg) 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(65, 105, 225, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 160, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #09111f 0%, var(--site-bg) 42%, #060b14 100%);
}

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

button,
input {
  font: inherit;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  color: var(--site-ink);
  background: rgba(255, 255, 255, 0.92);
  outline: 0;
}

body[data-theme="dark"] input {
  background: rgba(7, 12, 22, 0.92);
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(65, 105, 225, 0.78);
  outline-offset: 2px;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.site-shell {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--site-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--site-shadow-soft);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .site-header {
  background: rgba(7, 12, 22, 0.78);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #315bdc, #78a0ff);
  box-shadow: 0 12px 28px rgba(65, 105, 225, 0.24);
  font-weight: 900;
}

.site-brand-name {
  font-size: 1.18rem;
  font-weight: 900;
  font-style: italic;
}

.site-nav,
.site-actions,
.hero-actions,
.site-inline-actions,
.site-footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
  min-width: 0;
}

.nav-link,
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  color: var(--site-muted);
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-menu summary:hover,
.nav-menu[open] summary,
.nav-menu.is-active summary {
  color: var(--site-ink);
  background: rgba(65, 105, 225, 0.1);
}

.nav-caret {
  font-size: 0.9rem;
  line-height: 1;
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(340px, 82vw);
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 16px;
  background: var(--site-panel-strong);
  box-shadow: var(--site-shadow);
}

.nav-dropdown a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-dropdown a:hover {
  border-color: rgba(65, 105, 225, 0.22);
  background: rgba(65, 105, 225, 0.08);
}

.nav-dropdown strong {
  font-size: 0.94rem;
}

.nav-dropdown span,
.site-muted,
.download-help,
.account-copy,
.page-header p,
.feature-card p,
.workflow-card p,
.overview-card p,
.highlight-card p,
.explainer-card p,
.pricing-card p,
.trust-item span,
.site-form-note {
  color: var(--site-muted);
  line-height: 1.6;
}

.site-theme-toggle,
.site-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.site-button:hover,
.site-theme-toggle:hover {
  transform: translateY(-1px);
}

.site-button[disabled],
.site-theme-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.site-theme-toggle {
  color: var(--site-ink);
  border-color: var(--site-line);
  background: rgba(255, 255, 255, 0.74);
}

body[data-theme="dark"] .site-theme-toggle {
  background: rgba(14, 22, 36, 0.88);
}

.site-button.primary {
  color: #fff;
  border-color: rgba(65, 105, 225, 0.42);
  background: linear-gradient(180deg, #5d82f3, #315bdc);
}

.site-button.secondary {
  color: var(--site-ink);
  border-color: var(--site-line);
  background: rgba(255, 255, 255, 0.86);
}

body[data-theme="dark"] .site-button.secondary {
  background: rgba(14, 22, 36, 0.88);
}

.site-button.ghost {
  color: var(--site-ink);
  border-color: var(--site-pill-border);
  background: var(--site-pill-bg);
}

.site-button.wide {
  width: 100%;
}

.page-view {
  display: none;
  gap: 24px;
  padding: 36px 0 20px;
}

.page-view.is-active {
  display: grid;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 500px);
  gap: 24px;
}

.hero-copy,
.account-panel,
.feature-card,
.workflow-card,
.download-card,
.pricing-card,
.explainer-card,
.highlight-card,
.hero-image-card,
.overview-card {
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: var(--site-panel);
  box-shadow: var(--site-shadow-soft);
}

.hero-copy {
  display: grid;
  gap: 18px;
  padding: 36px;
  background:
    linear-gradient(180deg, rgba(20, 36, 76, 0.96), rgba(11, 20, 42, 0.98)),
    linear-gradient(135deg, rgba(255, 157, 46, 0.12), transparent 42%);
  color: #f8fbff;
}

.hero-copy h1,
.page-header h1,
.overview-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.6rem);
  line-height: 1.03;
}

.hero-copy p,
.hero-copy .trust-item span,
.hero-copy .hero-kicker {
  color: rgba(232, 239, 255, 0.92);
}

.hero-kicker,
.page-chip,
.pricing-card strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 0 12px;
  border: 1px solid var(--site-pill-border);
  border-radius: 999px;
  color: var(--site-pill-ink);
  background: var(--site-pill-bg);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy .hero-kicker {
  color: #d8e4ff;
  border-color: rgba(111, 141, 255, 0.28);
  background: rgba(65, 105, 225, 0.16);
}

.hero-trust,
.hero-highlights,
.overview-grid,
.feature-grid,
.workflow-grid,
.pricing-grid,
.enterprise-grid,
.resources-grid,
.auth-stage {
  display: grid;
  gap: 16px;
}

.hero-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.trust-item {
  display: grid;
  gap: 6px;
}

.hero-media {
  display: grid;
  gap: 16px;
}

.hero-image-card {
  padding: 12px;
  overflow: hidden;
  background: var(--site-panel-strong);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

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

.highlight-card {
  padding: 18px;
}

.highlight-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-grid,
.feature-grid,
.workflow-grid,
.pricing-grid,
.enterprise-grid,
.resources-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card,
.feature-card,
.workflow-card,
.download-card,
.pricing-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--site-panel-strong);
}

.overview-card h2,
.feature-card h3,
.workflow-card h3,
.download-card h3,
.pricing-card h3,
.explainer-card strong,
.highlight-card strong {
  font-size: 1.08rem;
}

.page-header {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.page-header h1 {
  font-size: clamp(2.1rem, 3.7vw, 4rem);
  line-height: 1.06;
}

.page-header p {
  margin: 0;
  font-size: 1rem;
}

.workflow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #315bdc, #78a0ff);
  font-size: 0.84rem;
  font-weight: 900;
}

.pricing-card.featured {
  border-color: rgba(65, 105, 225, 0.24);
  background:
    linear-gradient(180deg, rgba(65, 105, 225, 0.08), rgba(65, 105, 225, 0.02)),
    var(--site-panel-strong);
}

.text-link {
  color: var(--site-blue);
  font-weight: 800;
}

.text-link:hover,
.site-preview-link:hover {
  color: var(--site-deep);
}

.auth-stage {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 460px);
  align-items: start;
}

.auth-copy {
  display: grid;
  gap: 14px;
}

.explainer-card {
  padding: 20px;
  background: var(--site-panel-strong);
}

.account-panel {
  padding: 24px;
  background: var(--site-panel-strong);
}

.account-panel-header {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.account-panel-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.site-form {
  display: grid;
  gap: 12px;
}

.site-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-form h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.site-message {
  min-height: 22px;
  margin: 0;
  color: var(--site-danger);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-message.success,
.site-preview-link {
  color: var(--site-success);
}

.site-preview-link {
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 4px 0;
  color: var(--site-muted);
  font-size: 0.88rem;
}

.site-footer-links a {
  color: inherit;
}

.site-footer-links a:hover {
  color: var(--site-ink);
}

@media (max-width: 1180px) {
  .site-header,
  .hero,
  .auth-stage,
  .overview-grid,
  .feature-grid,
  .workflow-grid,
  .pricing-grid,
  .enterprise-grid,
  .resources-grid,
  .hero-highlights,
  .hero-trust {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: start;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 24px, 1360px);
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-actions {
    width: 100%;
  }

  .site-actions > * {
    flex: 1 1 auto;
  }

  .hero-copy,
  .account-panel {
    padding: 24px;
  }

  .hero-copy h1,
  .page-header h1 {
    font-size: 2rem;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
