﻿:root {
  color-scheme: dark;
  --bg: #050711;
  --page-bg: linear-gradient(135deg, #04050e 0%, #080b20 44%, #110b2e 100%);
  --accent-glow: rgba(106, 57, 255, 0.3);
  --accent-soft: rgba(141, 77, 255, 0.24);
  --grid-line: rgba(255, 255, 255, 0.035);
  --radial-one: rgba(99, 61, 255, 0.28);
  --radial-two: rgba(17, 219, 181, 0.1);
  --wire-line: rgba(119, 83, 255, 0.78);
  --system-card-border: rgba(151, 51, 255, 0.88);
  --system-card-border-soft: rgba(151, 51, 255, 0.38);
  --system-card-border-hover: rgba(177, 96, 255, 1);
  --system-card-bg-a: rgba(111, 35, 255, 0.2);
  --system-card-bg-b: rgba(15, 18, 58, 0.86);
  --system-card-glow: rgba(119, 55, 255, 0.13);
  --system-card-glow-hover: rgba(119, 55, 255, 0.2);
  --system-card-shadow-hover: rgba(69, 28, 148, 0.28);
  --system-card-line: rgba(130, 85, 255, 0.54);
  --system-card-id: #a36dff;
  --system-card-id-glow: rgba(142, 79, 255, 0.55);
  --system-card-sub: #cfc8ff;
  --system-card-arrow: #b56cff;
  --panel: rgba(18, 25, 49, 0.78);
  --panel-strong: rgba(25, 34, 70, 0.92);
  --line: rgba(130, 107, 255, 0.38);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #b8c2df;
  --soft: #7d88ac;
  --cyan: #23f2c3;
  --violet: #8d4dff;
  --amber: #f4bd59;
  --danger: #ff6b91;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

body[data-theme="black"] {
  --page-bg: linear-gradient(135deg, #000000 0%, #050505 52%, #111111 100%);
  --accent-glow: rgba(255, 255, 255, 0.08);
  --accent-soft: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.03);
  --radial-one: rgba(255, 255, 255, 0.04);
  --radial-two: rgba(255, 255, 255, 0.02);
  --wire-line: rgba(255, 255, 255, 0.26);
  --system-card-border: rgba(255, 255, 255, 0.28);
  --system-card-border-soft: rgba(255, 255, 255, 0.14);
  --system-card-border-hover: rgba(255, 255, 255, 0.44);
  --system-card-bg-a: rgba(255, 255, 255, 0.045);
  --system-card-bg-b: rgba(8, 8, 10, 0.9);
  --system-card-glow: rgba(255, 255, 255, 0.05);
  --system-card-glow-hover: rgba(255, 255, 255, 0.09);
  --system-card-shadow-hover: rgba(0, 0, 0, 0.34);
  --system-card-line: rgba(255, 255, 255, 0.22);
  --system-card-id: #f4f4f4;
  --system-card-id-glow: rgba(255, 255, 255, 0.22);
  --system-card-sub: #c9c9c9;
  --system-card-arrow: #f4f4f4;
  --panel: rgba(10, 10, 12, 0.82);
  --panel-strong: rgba(14, 14, 18, 0.94);
  --line: rgba(255, 255, 255, 0.22);
  --muted: #c5c5c5;
  --soft: #8d8d8d;
}

body[data-theme="charcoal"] {
  --page-bg: linear-gradient(135deg, #17181b 0%, #25272b 54%, #303136 100%);
  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(255, 255, 255, 0.18);
  --grid-line: rgba(255, 255, 255, 0.04);
  --radial-one: rgba(255, 255, 255, 0.06);
  --radial-two: rgba(255, 255, 255, 0.03);
  --wire-line: rgba(255, 255, 255, 0.28);
  --system-card-border: rgba(255, 255, 255, 0.24);
  --system-card-border-soft: rgba(255, 255, 255, 0.13);
  --system-card-border-hover: rgba(255, 255, 255, 0.4);
  --system-card-bg-a: rgba(255, 255, 255, 0.055);
  --system-card-bg-b: rgba(31, 33, 38, 0.86);
  --system-card-glow: rgba(255, 255, 255, 0.055);
  --system-card-glow-hover: rgba(255, 255, 255, 0.1);
  --system-card-shadow-hover: rgba(0, 0, 0, 0.24);
  --system-card-line: rgba(255, 255, 255, 0.22);
  --system-card-id: #d7d9df;
  --system-card-id-glow: rgba(255, 255, 255, 0.18);
  --system-card-sub: #d0d3dc;
  --system-card-arrow: #e9eaf0;
  --panel: rgba(32, 34, 38, 0.82);
  --panel-strong: rgba(39, 41, 47, 0.95);
  --line: rgba(255, 255, 255, 0.2);
  --muted: #d0d3dc;
  --soft: #a7abb8;
}

body[data-theme="silver"] {
  color-scheme: light;
  --page-bg: linear-gradient(135deg, #d4d7df 0%, #eef0f5 50%, #c4c8d2 100%);
  --accent-glow: rgba(83, 88, 112, 0.16);
  --accent-soft: rgba(57, 63, 90, 0.18);
  --grid-line: rgba(20, 24, 38, 0.055);
  --radial-one: rgba(92, 98, 132, 0.14);
  --radial-two: rgba(80, 92, 124, 0.08);
  --wire-line: rgba(36, 42, 62, 0.22);
  --system-card-border: rgba(38, 44, 64, 0.18);
  --system-card-border-soft: rgba(38, 44, 64, 0.1);
  --system-card-border-hover: rgba(38, 44, 64, 0.34);
  --system-card-bg-a: rgba(255, 255, 255, 0.36);
  --system-card-bg-b: rgba(224, 228, 238, 0.86);
  --system-card-glow: rgba(255, 255, 255, 0.28);
  --system-card-glow-hover: rgba(255, 255, 255, 0.36);
  --system-card-shadow-hover: rgba(72, 78, 104, 0.18);
  --system-card-line: rgba(36, 42, 62, 0.16);
  --system-card-id: #343b55;
  --system-card-id-glow: rgba(255, 255, 255, 0.38);
  --system-card-sub: #343b55;
  --system-card-arrow: #343b55;
  --panel: rgba(245, 247, 251, 0.78);
  --panel-strong: rgba(238, 241, 248, 0.94);
  --line: rgba(45, 50, 72, 0.22);
  --line-soft: rgba(12, 18, 34, 0.13);
  --text: #0c1020;
  --muted: #343b55;
  --soft: #67708f;
}

body[data-theme="white"] {
  color-scheme: light;
  --page-bg: #ffffff;
  --accent-glow: transparent;
  --accent-soft: rgba(35, 43, 75, 0.16);
  --grid-line: transparent;
  --radial-one: transparent;
  --radial-two: transparent;
  --wire-line: rgba(20, 24, 38, 0.42);
  --system-card-border: rgba(20, 24, 38, 0.14);
  --system-card-border-soft: rgba(20, 24, 38, 0.09);
  --system-card-border-hover: rgba(20, 24, 38, 0.28);
  --system-card-bg-a: rgba(255, 255, 255, 0.76);
  --system-card-bg-b: rgba(255, 255, 255, 0.92);
  --system-card-glow: rgba(255, 255, 255, 0.22);
  --system-card-glow-hover: rgba(255, 255, 255, 0.3);
  --system-card-shadow-hover: rgba(35, 42, 64, 0.12);
  --system-card-line: rgba(20, 24, 38, 0.36);
  --system-card-id: #1c2335;
  --system-card-id-glow: rgba(255, 255, 255, 0.2);
  --system-card-sub: #343b55;
  --system-card-arrow: #1c2335;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(33, 40, 70, 0.2);
  --line-soft: rgba(12, 18, 34, 0.11);
  --text: #070917;
  --muted: #343b55;
  --soft: #68718c;
}

body[data-theme="violet"] {
  --page-bg: linear-gradient(135deg, #04050e 0%, #080b20 44%, #110b2e 100%);
  --accent-glow: rgba(106, 57, 255, 0.3);
  --accent-soft: rgba(141, 77, 255, 0.24);
  --grid-line: rgba(255, 255, 255, 0.035);
  --radial-one: rgba(99, 61, 255, 0.28);
  --radial-two: rgba(17, 219, 181, 0.1);
  --wire-line: rgba(119, 83, 255, 0.78);
  --system-card-border: rgba(151, 51, 255, 0.88);
  --system-card-border-soft: rgba(151, 51, 255, 0.38);
  --system-card-border-hover: rgba(177, 96, 255, 1);
  --system-card-bg-a: rgba(111, 35, 255, 0.2);
  --system-card-bg-b: rgba(15, 18, 58, 0.86);
  --system-card-glow: rgba(119, 55, 255, 0.13);
  --system-card-glow-hover: rgba(119, 55, 255, 0.2);
  --system-card-shadow-hover: rgba(69, 28, 148, 0.28);
  --system-card-line: rgba(130, 85, 255, 0.54);
  --system-card-id: #a36dff;
  --system-card-id-glow: rgba(142, 79, 255, 0.55);
  --system-card-sub: #cfc8ff;
  --system-card-arrow: #b56cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 68% 8%, var(--radial-one), transparent 28rem),
    radial-gradient(circle at 8% 38%, var(--radial-two), transparent 22rem),
    var(--page-bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

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

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

button {
  cursor: pointer;
}

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

.site-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 17, 0.82);
  backdrop-filter: blur(18px);
}

body[data-theme="silver"] .topbar,
body[data-theme="white"] .topbar {
  background: rgba(255, 255, 255, 0.78);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(35, 242, 195, 0.45);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 650;
}

.desktop-nav a:hover {
  color: var(--text);
}

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

.primary-button,
.secondary-button,
.ghost-button,
.price-card button,
.price-card a,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.primary-button {
  padding: 0 22px;
  background: var(--text);
  color: #070917;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.price-card button:hover,
.price-card a:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button.compact {
  min-height: 38px;
  padding-inline: 16px;
}

.primary-button.full {
  width: 100%;
}

.secondary-button,
.ghost-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.secondary-button {
  padding: 0 22px;
}

.ghost-button,
.icon-button {
  padding: 0 14px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  align-content: space-between;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 56px) clamp(26px, 3vw, 46px);
  border-bottom: 1px solid var(--accent-soft);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 84% 42%, var(--accent-glow), transparent 34rem),
    linear-gradient(90deg, rgba(5, 7, 17, 0.04), rgba(5, 7, 17, 0.2));
}

body[data-theme="white"] .hero::before {
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 850;
}

.hero .eyebrow {
  width: fit-content;
  margin-top: 18px;
  padding: 10px 24px;
  border: 1px solid rgba(0, 255, 128, 0.82);
  border-radius: 999px;
  background: rgba(0, 255, 128, 0.08);
  color: #00ff80;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

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

h1 {
  margin-bottom: 0;
  margin-top: 26px;
  max-width: 900px;
  font-size: clamp(42px, 5.2vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 1280px;
  margin-top: 0;
  font-size: clamp(52px, 5.6vw, 92px);
  line-height: 0.96;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 14px 38px rgba(255, 255, 255, 0.12);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.16;
}

.hero-lead,
.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.85;
}

.hero-lead {
  display: grid;
  gap: 18px;
  max-width: 1020px;
  margin: 46px 0 0;
}

.hero-lead p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 780;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 34px;
}

.palette-strip {
  position: absolute;
  top: clamp(34px, 4vw, 52px);
  right: clamp(18px, 4vw, 56px);
  z-index: 4;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 32, 0.62);
  box-shadow: 0 0 42px var(--accent-soft);
}

body[data-theme="silver"] .palette-strip,
body[data-theme="white"] .palette-strip {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.swatch {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition:
    box-shadow 0.18s ease,
    outline-color 0.18s ease,
    transform 0.18s ease;
}

.swatch:hover,
.swatch.active {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
  transform: translateY(-1px);
}

.swatch.black {
  background: #020202;
}

.swatch.charcoal {
  background: #303030;
}

.swatch.silver {
  background: #e6e6e6;
}

.swatch.white {
  background: #ffffff;
}

.swatch.violet {
  background: #6e1fff;
}

.swatch.black.active {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.swatch.charcoal.active {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.swatch.silver.active,
.swatch.white.active {
  box-shadow: 0 0 18px rgba(20, 24, 38, 0.14);
}

.swatch.violet.active {
  box-shadow: 0 0 26px #7f2dff;
}

.architect-lines {
  position: absolute;
  right: -2%;
  top: 18%;
  z-index: -1;
  width: min(50vw, 780px);
  aspect-ratio: 498 / 410;
  background: var(--wire-line);
  opacity: 0.9;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--wire-line) 72%, transparent));
  mask: url("./assets/architect-line-mask.png") center / contain no-repeat;
  -webkit-mask: url("./assets/architect-line-mask.png") center / contain no-repeat;
}

body[data-theme="black"] .architect-lines,
body[data-theme="charcoal"] .architect-lines,
body[data-theme="silver"] .architect-lines,
body[data-theme="white"] .architect-lines {
  filter: none;
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1180px);
  margin-top: clamp(52px, 7vw, 86px);
}

.metrics > * {
  min-height: 158px;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  color: inherit;
  text-align: left;
}

.metric-card {
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.metric-card:hover {
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

body[data-theme="silver"] .metrics > *,
body[data-theme="white"] .metrics > * {
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="white"] .metrics > * {
  border-color: rgba(20, 24, 38, 0.34);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--text);
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1;
}

.metrics span {
  margin-top: 16px;
  color: #aeb8de;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.5;
}

section {
  padding: 72px clamp(18px, 4vw, 56px);
}

.systems-section {
  min-height: calc(100vh - 78px);
  padding-top: 34px;
  padding-bottom: 38px;
  scroll-margin-top: 78px;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-bottom: 34px;
}

.systems-section .section-heading {
  width: min(100%, 1280px);
  max-width: none;
  gap: 10px;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
}

.systems-section .section-heading h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.systems-section .section-heading p:last-child {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
}

.section-heading p:last-child {
  margin: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.system-list,
.tool-panel,
.lane,
.price-card,
.contact-section,
.auth-dialog {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.system-list {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 10px;
}

.system-button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.system-button:hover,
.system-button.active {
  border-color: var(--line);
  background: var(--accent-soft);
}

.system-id {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: #d9ccff;
  font-weight: 950;
}

.system-button strong,
.system-button small {
  display: block;
}

.system-button small {
  margin-top: 4px;
  color: var(--soft);
}

.tier-chip {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.tool-panel {
  overflow: hidden;
  background: var(--panel-strong);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.tool-header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  width: fit-content;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(0, 255, 128, 0.72);
  border-radius: 999px;
  background: rgba(0, 255, 128, 0.13);
  color: #00ff80;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.with-dot::before,
.badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff80;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.78);
  content: "";
}

.status-pill.pending {
  border-color: rgba(244, 189, 89, 0.28);
  background: rgba(244, 189, 89, 0.1);
  color: var(--amber);
}

.tool-body {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  min-height: 520px;
}

.input-stack {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border-right: 1px solid var(--line-soft);
}

.upload-box,
.field-box {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.upload-label,
.field-box label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 7, 17, 0.48);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone span {
  color: var(--soft);
  font-weight: 750;
}

.drop-zone img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: cover;
}

textarea,
select,
input {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(5, 7, 17, 0.62);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
}

select,
input {
  min-height: 44px;
  padding: 0 12px;
}

.generate-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f9fbff, #c8f9eb);
  color: #070917;
  font-weight: 950;
}

.result-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 20px;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.result-toolbar h4 {
  margin: 0;
  font-size: 22px;
}

.prompt-output {
  min-height: 290px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(5, 7, 17, 0.58);
  color: #dbe4ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.9;
}

.render-output {
  display: grid;
  gap: 14px;
}

.main-preview {
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(35, 242, 195, 0.1), transparent),
    rgba(5, 7, 17, 0.58);
  color: var(--soft);
  font-weight: 850;
}

.main-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.thumb-grid button {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
}

.thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1280px);
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
}

.system-card {
  position: relative;
  display: grid;
  min-height: clamp(156px, 16.8vh, 196px);
  overflow: hidden;
  padding: 14px 18px;
  border: 2px solid var(--system-card-border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--system-card-bg-a), var(--system-card-bg-b)),
    rgba(7, 9, 32, 0.8);
  color: var(--text);
  text-align: left;
  box-shadow:
    inset 0 0 72px var(--system-card-glow),
    0 18px 54px rgba(0, 0, 0, 0.24);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.system-card.locked {
  opacity: 0.7;
  border-color: var(--system-card-border-soft);
}

.system-card:hover {
  border-color: var(--system-card-border-hover);
  box-shadow:
    inset 0 0 84px var(--system-card-glow-hover),
    0 24px 72px var(--system-card-shadow-hover);
  transform: translateY(-2px);
}

.system-card::before,
.system-card::after {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: 112px;
  height: 68px;
  content: "";
  border: 1px solid var(--system-card-line);
  transform: skewY(-24deg);
  opacity: 0.58;
}

.system-card::after {
  right: 62px;
  bottom: 54px;
  width: 66px;
  height: 58px;
  opacity: 0.4;
}

.system-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.system-card .system-id {
  display: block;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--system-card-id);
  font-size: clamp(32px, 2.7vw, 44px);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 24px var(--system-card-id-glow);
}

.system-card .status-pill {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.system-card .tier-chip {
  padding: 4px 8px;
  font-size: 10px;
}

.system-card h3 {
  position: relative;
  z-index: 2;
  font-size: clamp(18px, 1.48vw, 24px);
  line-height: 1.1;
}

.system-card p {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  color: var(--system-card-sub);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 800;
  line-height: 1.45;
}

.system-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.system-card .card-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--system-card-border);
  border-radius: 50%;
  color: var(--system-card-arrow);
  font-size: 20px;
  line-height: 1;
}

body[data-theme="silver"] .system-card,
body[data-theme="white"] .system-card {
  background:
    linear-gradient(135deg, var(--system-card-bg-a), var(--system-card-bg-b)),
    rgba(255, 255, 255, 0.72);
}

body[data-theme="silver"] .system-card p,
body[data-theme="white"] .system-card p {
  color: var(--muted);
}

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

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

.lane,
.price-card,
.contact-section {
  padding: 26px;
}

.lane.accent,
.price-card.featured {
  border-color: rgba(35, 242, 195, 0.42);
  background: linear-gradient(135deg, rgba(35, 242, 195, 0.12), var(--accent-soft));
}

.lane ol,
.price-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-left: 20px;
  color: var(--muted);
}

.lane p,
.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.7;
}

.price-card .badge {
  color: #00ff80;
}

body[data-theme="silver"] .hero .eyebrow,
body[data-theme="white"] .hero .eyebrow,
body[data-theme="silver"] .status-pill:not(.pending),
body[data-theme="white"] .status-pill:not(.pending),
body[data-theme="silver"] .badge,
body[data-theme="white"] .badge {
  border-color: rgba(0, 180, 90, 0.54);
  background: rgba(0, 180, 90, 0.1);
  color: #00b45a;
}

body[data-theme="silver"] .hero .eyebrow span,
body[data-theme="white"] .hero .eyebrow span,
body[data-theme="silver"] .status-pill.with-dot::before,
body[data-theme="white"] .status-pill.with-dot::before,
body[data-theme="silver"] .badge::before,
body[data-theme="white"] .badge::before {
  background: #00b45a;
  box-shadow: 0 0 10px rgba(0, 180, 90, 0.38);
}

.price-card {
  display: grid;
  grid-template-rows: auto auto 36px auto 1fr auto;
  align-content: stretch;
  min-height: 444px;
}

.price-card:not(.featured)::after {
  content: "";
  grid-row: 3;
}

.price-card strong {
  margin: 18px 0 8px;
  font-size: 38px;
}

.price-card button,
.price-card a {
  width: 100%;
  margin-top: 12px;
  background: var(--text);
  color: #070917;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 72px clamp(18px, 4vw, 56px);
}

.contact-section div {
  max-width: 860px;
}

.auth-dialog {
  width: min(92vw, 480px);
  padding: 26px;
  color: var(--text);
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
}

.auth-dialog label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero,
  .workspace-grid,
  .tool-body {
    grid-template-columns: 1fr;
  }

  .system-list {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .input-stack {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

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

@media (max-width: 1380px) {
  .tool-body {
    grid-template-columns: 1fr;
  }

  .input-stack {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .result-panel {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .desktop-nav {
    display: none;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
  }

  .metrics,
  .system-list,
  .systems-grid,
  .process-lanes,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-section,
  .result-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

