:root {
  color-scheme: dark;
  --bg: #0d0b16;
  --surface: #161326;
  --surface-strong: #1f1c33;
  --text: #f1f1fb;
  --muted: #c5c1df;
  --faint: #8f89bd;
  --line: rgba(241, 241, 251, 0.12);
  --accent: #5b50c8;
  --accent-soft: #aaa4e8;
  --accent-contrast: #ffffff;
  --danger: #ff8d9a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f1fb;
  --surface: #ffffff;
  --surface-strong: #ebeafb;
  --text: #151225;
  --muted: #4f4a67;
  --faint: #706a8c;
  --line: rgba(22, 19, 38, 0.14);
  --accent: #4e45b0;
  --accent-soft: #6f67ce;
  --accent-contrast: #ffffff;
  --danger: #a3283a;
  --shadow: 0 20px 56px rgba(47, 41, 91, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -20%, rgba(91, 80, 200, 0.22), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(241, 241, 251, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 241, 251, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button,
input {
  font: inherit;
}

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

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

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.site-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 760;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-strong);
}

.brand span {
  overflow-wrap: anywhere;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a,
.nav-links button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.theme-toggle::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid currentColor;
  box-shadow: inset -5px -4px 0 currentColor;
}

:root[data-theme="light"] .theme-toggle::before {
  box-shadow: none;
  background: currentColor;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span {
  margin: auto;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.hero {
  padding: 96px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 54px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--muted);
}

.hero-logo img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.06rem;
}

.lead {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-soft) 64%, var(--line));
}

.button-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-contrast);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.button-ghost {
  background: transparent;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.product-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-toolbar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
}

.translated-preview {
  padding: 22px;
}

.preview-frame {
  display: grid;
  min-height: 390px;
  align-content: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(115deg, rgba(170, 164, 232, 0.16), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(241, 241, 251, 0.035) 24px 25px),
    var(--bg);
}

.bubble {
  width: min(82%, 330px);
  border: 1px solid color-mix(in srgb, var(--accent-soft) 42%, var(--line));
  border-radius: 8px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.bubble:nth-child(2) {
  justify-self: end;
  width: min(70%, 280px);
}

.bubble small {
  display: block;
  color: var(--accent-soft);
  font-weight: 720;
  margin-bottom: 4px;
}

.stat-band {
  margin-top: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  padding: 22px;
  text-align: center;
}

.stat-band p {
  margin: 0;
  color: var(--muted);
}

.stat-band strong {
  display: block;
  margin: 10px 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.stat-band span {
  color: var(--accent-soft);
}

.section {
  padding: 82px 0;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: workflow;
}

.step,
.feature,
.price-card,
.contact-card,
.auth-card,
.account-panel,
.faq-item,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.step {
  min-height: 220px;
  padding: 24px;
  counter-increment: workflow;
}

.step::before {
  content: counter(workflow, decimal-leading-zero);
  display: block;
  margin-bottom: 48px;
  color: var(--accent-soft);
  font-weight: 760;
}

.step p,
.feature p,
.price-card p,
.contact-card p,
.legal-section p,
.legal-section li,
.faq-item p,
.muted {
  color: var(--muted);
}

.video-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05040a;
  aspect-ratio: 16 / 9;
}

.video-shell iframe,
.video-placeholder {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(91, 80, 200, 0.22), transparent 56%),
    var(--surface);
}

.video-glyph {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}

.video-glyph::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 19px;
  border-left: 18px solid var(--accent-soft);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

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

.feature {
  padding: 22px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.cta-section {
  padding: 78px 0 96px;
}

.cta-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 56px);
  background:
    linear-gradient(120deg, rgba(91, 80, 200, 0.28), transparent 58%),
    var(--surface-strong);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 82px 0 42px;
}

.pricing-root,
.faq-list,
.legal-root {
  display: grid;
  gap: 28px;
}

.pricing-group {
  display: grid;
  gap: 18px;
}

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

.price-card {
  display: grid;
  grid-template-rows: auto auto minmax(2.8em, auto) minmax(34px, auto) 1fr auto;
  min-height: 310px;
  gap: 14px;
  padding: 20px;
}

.price {
  margin: 0;
  color: var(--text);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.price-card > .muted {
  min-height: 3em;
  margin: 0;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--accent-soft) 56%, var(--line));
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--accent-soft);
  font-size: 0.8rem;
}

.price-badge-placeholder {
  visibility: hidden;
}

.price-action {
  width: 100%;
  margin-top: 0;
}

.status {
  min-height: 1.5rem;
  color: var(--danger);
}

.status[data-error="false"] {
  color: var(--accent-soft);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: start;
}

.auth-card,
.contact-card,
.account-panel {
  padding: clamp(22px, 4vw, 34px);
}

.account-section {
  padding-top: 72px;
}

.account-summary {
  max-width: 720px;
}

.account-summary h1 {
  max-width: none;
  margin-bottom: 34px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.account-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.account-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.account-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.account-entry > dt {
  color: var(--muted);
}

.account-entry > dd {
  margin: 0;
  color: var(--text);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.balance-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.balance-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
}

.account-password-form {
  margin-top: 22px;
  max-width: 520px;
}

.balance-list dt {
  color: var(--muted);
}

.balance-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

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

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

.field label {
  color: var(--muted);
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
  padding: 13px 14px;
}

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

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.field .otp-input {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.field .otp-input:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 2px;
}

.form-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
}

.sso-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.google-button {
  width: 100%;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  color: var(--text);
}

.google-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #1f1c33;
  font-weight: 800;
  line-height: 1;
}

.google-mark::before {
  content: "G";
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.86rem;
}

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

.auth-switch a,
.text-link {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--text);
  font-weight: 720;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.5fr);
  gap: 24px;
}

.legal-section {
  padding: 24px;
}

.legal-section h2 {
  font-size: 1.2rem;
}

.legal-section ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .auth-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 66px;
  }

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

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a,
  .nav-links button,
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .page-hero {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }

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

  .preview-frame {
    min-height: 310px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
