:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #16202a;
  --muted: #5e6b78;
  --line: #d8e1ea;
  --brand: #0f6b6e;
  --brand-strong: #0a4c4e;
  --accent: #b7512b;
  --focus: #2d8cff;
  --shadow: 0 16px 40px rgba(30, 45, 62, 0.08);
}

.vendalia-theme {
  --bg: #10001f;
  --surface: #ffffff;
  --surface-soft: #fff6cf;
  --text: #1b1027;
  --muted: #665773;
  --line: #e8d7ff;
  --brand: #6b10d8;
  --brand-strong: #3b0878;
  --accent: #f4c739;
  --focus: #ffe36d;
  --shadow: 0 22px 54px rgba(48, 7, 87, 0.18);
  background: #10001f;
}

.autohu-theme {
  --bg: #eef5fb;
  --surface: #ffffff;
  --surface-soft: #e9fff6;
  --text: #0d1724;
  --muted: #536476;
  --line: #d4e2ed;
  --brand: #0b73ff;
  --brand-strong: #063f8b;
  --accent: #24ee91;
  --focus: #1bbcff;
  --shadow: 0 18px 48px rgba(10, 28, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.vendalia-theme {
  background:
    radial-gradient(circle at 18% 8%, rgba(129, 33, 230, 0.32), transparent 32%),
    radial-gradient(circle at 84% 4%, rgba(244, 199, 57, 0.2), transparent 28%),
    #10001f;
}

.vendalia-theme main {
  background: #fbf8ff;
}

body.autohu-theme {
  background:
    radial-gradient(circle at 16% 8%, rgba(16, 120, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(36, 238, 145, 0.18), transparent 28%),
    #eef5fb;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.vendalia-theme .site-header {
  background: rgba(22, 0, 42, 0.88);
  border-bottom-color: rgba(255, 227, 109, 0.22);
  backdrop-filter: blur(12px);
}

.autohu-theme .site-header {
  background: rgba(8, 22, 38, 0.92);
  border-bottom-color: rgba(36, 238, 145, 0.2);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.vendalia-theme .brand {
  color: #fffaf0;
}

.autohu-theme .brand {
  color: #f7fbff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.vendalia-theme .nav-links a {
  color: #eadfff;
}

.autohu-theme .nav-links a {
  color: #dbeafa;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-strong);
}

.vendalia-theme .nav-links a:hover,
.vendalia-theme .nav-links a[aria-current="page"] {
  color: var(--accent);
}

.autohu-theme .nav-links a:hover,
.autohu-theme .nav-links a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  background:
    linear-gradient(135deg, rgba(15, 107, 110, 0.12), rgba(183, 81, 43, 0.08)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.vendalia-theme .hero {
  background:
    linear-gradient(135deg, rgba(35, 0, 65, 0.97), rgba(77, 4, 128, 0.92)),
    #21003f;
  border-bottom-color: rgba(255, 227, 109, 0.22);
  color: #fffaf0;
}

.autohu-theme .hero {
  background:
    linear-gradient(135deg, rgba(8, 19, 35, 0.98), rgba(10, 43, 72, 0.96)),
    #081523;
  border-bottom-color: rgba(36, 238, 145, 0.2);
  color: #f7fbff;
}

.hero-inner,
.content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 68px 0 52px;
}

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

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.8rem);
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.vendalia-theme .lead,
.vendalia-theme .section-header p,
.vendalia-theme .section > p,
.vendalia-theme .card p {
  color: #6b587d;
}

.vendalia-theme .hero .lead {
  color: #f4e9ff;
}

.autohu-theme .hero .lead {
  color: #d7e8f8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-strong);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.vendalia-theme .button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #2a063d;
}

.vendalia-theme .button {
  border-color: rgba(244, 199, 57, 0.38);
}

.autohu-theme .button.primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, #16c8ff, var(--accent));
  color: #061421;
}

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

.content {
  padding: 42px 0 58px;
}

.vendalia-theme .content {
  color: var(--text);
}

.section {
  margin-top: 38px;
}

.section:first-child {
  margin-top: 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-header h2,
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.section-header p,
.section > p {
  color: var(--muted);
}

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

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

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vendalia-theme .card {
  border-color: rgba(244, 199, 57, 0.2);
}

.autohu-theme .card {
  border-color: rgba(11, 115, 255, 0.16);
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.project-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.project-heading h3 {
  margin: 0;
}

.project-heading img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(30, 45, 62, 0.14);
}

.tag-list,
.link-list,
.plain-list {
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.link-list a::after {
  content: ">";
  color: var(--accent);
  font-weight: 900;
}

.link-list a:hover {
  border-color: rgba(15, 107, 110, 0.45);
  color: var(--brand-strong);
}

.plain-list {
  margin: 12px 0 0;
}

.plain-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 22px;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff7f3;
  color: #493225;
}

.vendalia-theme .notice {
  border-left-color: var(--accent);
  background: #fff7d9;
  color: #3c2352;
}

.autohu-theme .notice {
  border-left-color: var(--accent);
  background: #eafff5;
  color: #123226;
}

.policy {
  max-width: 880px;
}

.policy h2 {
  margin-top: 34px;
}

.policy h2:first-child {
  margin-top: 0;
}

.meta-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.meta-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.meta-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-transform: uppercase;
}

.meta-value {
  margin-top: 4px;
  color: var(--text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.vendalia-theme .site-footer {
  background: #16002a;
  border-top-color: rgba(255, 227, 109, 0.22);
}

.autohu-theme .site-footer {
  background: #071421;
  border-top-color: rgba(36, 238, 145, 0.2);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.vendalia-theme .footer-inner {
  color: #e5d7ff;
}

.vendalia-theme .footer-inner a {
  color: var(--accent);
}

.autohu-theme .footer-inner {
  color: #d7e8f8;
}

.autohu-theme .footer-inner a {
  color: var(--accent);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: 38px;
}

.product-hero .hero-inner {
  width: min(1120px, calc(100% - 32px));
}

.hero-copy h1 {
  max-width: 680px;
}

.hero-copy .lead {
  max-width: 660px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 227, 109, 0.26);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.autohu-theme .hero-media img {
  max-width: 520px;
  margin-left: auto;
  border-color: rgba(36, 238, 145, 0.2);
  border-radius: 28px;
  background: #071421;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.mini-brand img,
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(35, 0, 65, 0.26);
}

.mini-brand span {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-brand strong {
  display: block;
  color: #fffaf0;
  font-size: 1.3rem;
}

.autohu-theme .mini-brand strong {
  color: #f7fbff;
}

.brand-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.brand-card .app-icon {
  width: 86px;
  height: 86px;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.feature-pill {
  padding: 16px;
  border: 1px solid rgba(244, 199, 57, 0.24);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-pill strong {
  display: block;
  color: var(--brand-strong);
  line-height: 1.25;
}

.feature-pill span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.highlight-panel {
  padding: 28px;
  border: 1px solid rgba(244, 199, 57, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, #2a0644, #5b0ca4);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.highlight-panel p,
.highlight-panel li {
  color: #f1e5ff;
}

.highlight-panel a {
  color: var(--accent);
}

.store-note {
  margin-top: 18px;
  color: #806b92;
  font-size: 0.95rem;
}

.license-box {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(11, 115, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.field-group label {
  color: var(--text);
  font-weight: 800;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.license-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: 800 1.1rem/1.2 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.license-input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(27, 188, 255, 0.22);
}

.license-preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #cbe9dc;
  border-radius: 8px;
  background: #f4fff9;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.license-code {
  color: #061421;
  font: 900 1.15rem/1.2 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.message-preview {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #071421;
  color: #d7e8f8;
  white-space: pre-wrap;
}

.status-text {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-inner {
    padding: 48px 0 38px;
  }

  .grid,
  .grid.three,
  .meta-box {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .product-hero,
  .brand-card,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .mini-brand img,
  .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }
}
