:root {
  --bg: #fbfcff;
  --bg-soft: #f3f8fb;
  --text: #181827;
  --muted: #62667a;
  --line: rgba(39, 42, 63, 0.13);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --primary: #8c2df5;
  --primary-strong: #6e1fd4;
  --cyan: #21bed1;
  --magenta: #ed4bd2;
  --green: #4fc989;
  --shadow: 0 24px 70px rgba(74, 55, 142, 0.18);
  --radius: 8px;
  color-scheme: light;
}

:root[data-dark] {
  --bg: #101118;
  --bg-soft: #171923;
  --text: #f5f7fb;
  --muted: #b8bdd0;
  --line: rgba(255, 255, 255, 0.15);
  --panel: rgba(23, 25, 35, 0.84);
  --panel-solid: #171923;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

:root[data-dark] .site-header {
  background: rgba(16, 17, 24, 0.78);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-width: 130px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  display: flex;
  gap: 26px;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.header-actions,
.hero-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.button,
.icon-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--magenta));
  box-shadow: 0 14px 30px rgba(140, 45, 245, 0.25);
  color: white;
}

.button-soft {
  background: rgba(140, 45, 245, 0.09);
  color: var(--primary-strong);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.button-large {
  min-height: 52px;
  padding: 0 24px;
}

.button.is-disabled {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.icon-button {
  background: transparent;
  border: 1px solid var(--line);
  min-width: 42px;
  padding: 0;
}

.icon-button span {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.hero-section {
  min-height: 760px;
  overflow: hidden;
  padding: 96px max(24px, calc((100vw - 1180px) / 2)) 48px;
  position: relative;
}

.hero-image,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(251, 252, 255, 0.92) 0%, rgba(251, 252, 255, 0.66) 42%, rgba(251, 252, 255, 0.1) 100%);
  z-index: 1;
}

:root[data-dark] .hero-overlay {
  background: linear-gradient(90deg, rgba(16, 17, 24, 0.92) 0%, rgba(16, 17, 24, 0.62) 48%, rgba(16, 17, 24, 0.18) 100%);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.card-kicker {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
}

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

h1 {
  font-size: clamp(76px, 10vw, 152px);
  line-height: 0.9;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-copy,
.section-heading p,
.license-copy p,
.login-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-panel {
  align-items: center;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  bottom: 44px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  left: max(24px, calc((100vw - 1180px) / 2));
  max-width: 760px;
  overflow: hidden;
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  z-index: 3;
}

.hero-panel div {
  background: rgba(255, 255, 255, 0.42);
  padding: 24px;
}

.metric {
  color: var(--primary);
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  display: block;
  font-size: 14px;
  margin-top: 8px;
}

.trust-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  padding: 48px max(24px, calc((100vw - 1180px) / 2));
}

.trust-strip div,
.app-card,
.product-card,
.price-card,
.api-card,
.dashboard-preview,
.auth-form {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(33, 42, 90, 0.07);
}

.trust-strip div {
  padding: 22px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  margin-top: 8px;
}

.section {
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
}

.page-shell {
  min-height: calc(100vh - 72px);
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
}

.page-title {
  font-size: clamp(44px, 7vw, 86px);
}

.alt-band {
  background:
    linear-gradient(135deg, rgba(33, 190, 209, 0.12), transparent 44%),
    linear-gradient(315deg, rgba(237, 75, 210, 0.14), transparent 44%),
    var(--bg-soft);
}

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

.app-grid,
.product-grid,
.pricing-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.app-grid {
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.app-card {
  min-height: 260px;
  padding: 28px;
}

.app-card-featured {
  background:
    linear-gradient(135deg, rgba(140, 45, 245, 0.12), rgba(33, 190, 209, 0.14)),
    var(--panel-solid);
}

.app-card p,
.product-card p,
.price-card p,
.dashboard-main p {
  color: var(--muted);
  line-height: 1.65;
}

.app-card a {
  color: var(--primary-strong);
  font-weight: 800;
}

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

.product-card {
  overflow: hidden;
}

.product-thumb {
  align-items: end;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 24% 24%, rgba(33, 190, 209, 0.82), transparent 34%),
    radial-gradient(circle at 78% 34%, rgba(237, 75, 210, 0.76), transparent 28%),
    linear-gradient(135deg, #19172f, #512386 48%, #101118);
  color: white;
  display: flex;
  padding: 18px;
}

.product-thumb span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
}

.product-body {
  padding: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-row span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 9px;
}

.product-foot {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.product-foot strong,
.price strong {
  font-size: 28px;
}

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

.price-card {
  padding: 28px;
}

.price-card.is-featured {
  border-color: rgba(140, 45, 245, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin: 24px 0;
}

.price span {
  color: var(--muted);
}

.price-card ul,
.check-list {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 24px;
  padding-left: 20px;
}

.license-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 1fr;
}

.api-card {
  background:
    linear-gradient(135deg, rgba(16, 17, 24, 0.96), rgba(41, 28, 73, 0.96)),
    #101118;
  color: white;
  padding: 26px;
}

.api-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.api-row span {
  background: var(--green);
  border-radius: 8px;
  color: #06120b;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.api-card pre {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  line-height: 1.7;
  margin: 22px 0;
  overflow: auto;
  padding: 18px;
}

.api-status {
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  gap: 10px;
}

.api-status span {
  background: var(--green);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.account-section {
  background: var(--bg-soft);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.dashboard-preview aside {
  background: rgba(140, 45, 245, 0.08);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.dashboard-preview aside strong {
  margin-bottom: 18px;
}

.dashboard-preview aside button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  padding: 12px;
}

.dashboard-preview aside button.active {
  background: var(--panel-solid);
  color: var(--primary-strong);
}

.dashboard-main {
  padding: 30px;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.dashboard-top {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

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

.dashboard-grid div {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.dashboard-grid strong,
.dashboard-grid span {
  display: block;
}

.dashboard-grid strong {
  font-size: 32px;
}

.dashboard-grid span {
  color: var(--muted);
  margin-top: 8px;
}

.account-note {
  background: rgba(33, 190, 209, 0.09);
  border: 1px solid rgba(33, 190, 209, 0.22);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
  padding: 16px;
}

.account-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-row,
.empty-state {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.account-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.account-row strong,
.account-row span,
.account-row small {
  display: block;
}

.account-row span,
.account-row small,
.empty-state {
  color: var(--muted);
}

.account-row span {
  line-height: 1.5;
  margin-top: 5px;
}

.account-row small {
  flex: 0 0 auto;
  font-weight: 750;
}

.auth-required {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(33, 42, 90, 0.07);
  max-width: 640px;
  padding: 28px;
}

.auth-required p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-layout {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(33, 42, 90, 0.07);
  display: grid;
  grid-template-columns: 250px 1fr;
  overflow: hidden;
}

.admin-sidebar {
  background: rgba(140, 45, 245, 0.08);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.admin-sidebar strong {
  margin-bottom: 18px;
}

.admin-sidebar button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  padding: 12px;
  text-align: left;
}

.admin-sidebar button.active {
  background: var(--panel-solid);
  color: var(--primary-strong);
}

.admin-main {
  padding: 30px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.admin-stats div,
.admin-row {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  font-size: 30px;
}

.admin-stats span {
  color: var(--muted);
  margin-top: 6px;
}

.admin-table {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-row span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.admin-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.login-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 420px;
}

.login-page {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 440px;
  min-height: calc(100vh - 72px);
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
}

.login-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.login-benefits {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.login-benefits div {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.login-benefits strong,
.login-benefits span {
  display: block;
}

.login-benefits span {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 5px;
}

.login-card {
  align-self: center;
}

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

.auth-card {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(33, 42, 90, 0.07);
  overflow: hidden;
}

.auth-tabs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
}

.auth-tabs button.active {
  background: var(--panel-solid);
  color: var(--primary-strong);
  box-shadow: 0 8px 24px rgba(33, 42, 90, 0.08);
}

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

.auth-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
}

.auth-form input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 48px;
  padding: 0 14px;
}

.admin-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  padding: 16px;
}

.admin-form input,
.admin-form select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 0 12px;
}

.admin-form .button {
  min-height: 44px;
}

.form-message {
  color: var(--muted);
  font-size: 14px;
  min-height: 22px;
  padding: 0 28px 24px;
}

.auth-session {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.auth-session strong,
.auth-session span {
  display: block;
}

.auth-session span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hidden {
  display: none;
}

.auth-loading [data-logged-out],
.auth-loading [data-logged-in],
.auth-loading [data-auth-required],
.auth-loading [data-account-dashboard],
.auth-loading [data-admin-required],
.auth-loading [data-admin-dashboard] {
  display: none;
}

.google-button {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: flex;
  font-weight: 850;
  gap: 12px;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
}

.google-button span {
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  padding: 14px 22px 6px;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 32px max(24px, calc((100vw - 1180px) / 2));
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  color: var(--primary-strong);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav-links {
    display: none;
  }

  .app-grid,
  .product-grid,
  .pricing-grid,
  .license-section,
  .login-section,
  .login-page,
  .trust-strip,
  .admin-stats,
  .admin-row,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 820px;
  }

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

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

@media (max-width: 680px) {
  .header-actions .button-soft {
    display: none;
  }

  .hero-section {
    min-height: 760px;
    padding-top: 70px;
  }

  .hero-actions,
  .dashboard-top,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    bottom: 24px;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-preview aside {
    border-right: 0;
  }

  .admin-sidebar {
    border-right: 0;
  }

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

  .account-row {
    align-items: stretch;
    flex-direction: column;
  }
}
