:root {
  color-scheme: dark;
  --bg: #07070a;
  --ink: #f7f2f8;
  --muted: #b8b0bd;
  --soft: #ddd6e2;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(18, 18, 24, 0.76);
  --panel-strong: rgba(29, 27, 34, 0.9);
  --magenta: #ff2fb2;
  --magenta-deep: #c50078;
  --cyan: #3ce6d1;
  --gold: #f4c86a;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 47, 178, 0.06), transparent 28%, rgba(60, 230, 209, 0.06) 72%, transparent),
    linear-gradient(180deg, rgba(255, 47, 178, 0.1), transparent 42%, rgba(60, 230, 209, 0.07)),
    var(--bg);
  color: var(--ink);
  font-family: "Prompt", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.6;
}

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

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

#foldScene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.28), rgba(7, 7, 10, 0.9) 84%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 94px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 94px);
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 8px -14px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 8, 12, 0.72);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  font-size: 16px;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--soft);
  font-size: 14px;
}

.nav a,
.footer a {
  transition: color 0.2s ease;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta,
.button.primary {
  background: linear-gradient(135deg, var(--magenta), var(--magenta-deep));
  color: white;
  box-shadow: 0 14px 34px rgba(255, 47, 178, 0.25);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--soft);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 84svh;
  margin: 0 auto;
  padding: 64px 0 34px;
}

.hero-copy {
  width: min(850px, 100%);
}

.eyebrow,
.kicker,
.price-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 92px;
  line-height: 0.9;
  font-weight: 700;
  text-wrap: balance;
  white-space: nowrap;
}

h1 span {
  display: inline-block;
}

h1 span + span {
  margin-left: 0.16em;
}

h2 {
  margin-bottom: 14px;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.lead {
  width: min(730px, 100%);
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 21px;
}

.offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(244, 200, 106, 0.42);
  border-radius: 8px;
  background: rgba(244, 200, 106, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.offer span {
  color: var(--soft);
  font-size: 15px;
}

.offer strong {
  color: var(--gold);
  font-size: 48px;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.proof span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.055);
}

.toolrail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 12px;
  width: min(920px, 100%);
  margin-top: 22px;
}

.toolchip {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(12, 12, 17, 0.64);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.toolchip:hover {
  border-color: rgba(255, 47, 178, 0.68);
  transform: translateY(-3px);
}

.toolchip img {
  width: 34px;
  height: 34px;
}

.toolchip span {
  min-width: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-head {
  width: min(800px, 100%);
  margin-bottom: 28px;
}

.section-head h2,
.workflow-copy h2,
.price-copy h2,
.video-copy h2 {
  color: var(--ink);
}

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

.feature-card {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.feature-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}

.feature-card p,
.workflow-copy p,
.steps p,
.price-copy p,
.price-panel p,
.video-copy p {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.workflow-copy {
  position: sticky;
  top: 110px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.steps span {
  grid-row: span 2;
  color: var(--magenta);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.steps strong {
  font-size: 20px;
}

.steps p {
  margin-bottom: 0;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 28px;
  align-items: stretch;
}

.price-copy,
.price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.price-copy {
  padding: clamp(28px, 5vw, 56px);
}

.price-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
}

.price {
  display: block;
  color: var(--gold);
  font-size: 68px;
  line-height: 1;
}

.wide {
  width: 100%;
}

.video {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.video-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.embed-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.embed-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.embed-card span {
  color: var(--muted);
  font-size: 14px;
}

.embed-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #09090d;
}

.embed-frame::before {
  content: "";
  display: block;
  aspect-ratio: 9 / 16;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.coming-card .video-frame {
  aspect-ratio: 9 / 16;
  box-shadow: none;
}

.coming-card .video-frame span {
  max-width: 80%;
  text-align: center;
  font-size: 46px;
  line-height: 0.98;
}

.video-learning {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 47, 178, 0.28), rgba(60, 230, 209, 0.12)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 24px),
    #121018;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.36);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.video-frame span {
  position: relative;
  color: var(--ink);
  font-size: 70px;
  font-weight: 700;
}

.play-mark {
  position: absolute;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
}

.play-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid white;
  transform: translate(-40%, -50%);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer span {
  color: var(--ink);
  font-weight: 600;
}

.checkout-page {
  min-height: 100vh;
  padding-bottom: 64px;
}

.checkout-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 0;
}

.checkout-hero {
  width: min(820px, 100%);
  margin-bottom: 28px;
}

.checkout-hero h1 {
  white-space: normal;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 24px;
  align-items: start;
}

.checkout-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--panel-strong);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.checkout-card p,
.checkout-card li,
.checkout-card small {
  color: var(--muted);
}

.checkout-summary {
  position: sticky;
  top: 108px;
}

.checkout-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.checkout-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 18px rgba(255, 47, 178, 0.35);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}

.summary-row.total {
  align-items: baseline;
  border-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.summary-row.total strong {
  color: var(--gold);
  font-size: 42px;
}

.payment-note {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(60, 230, 209, 0.24);
  border-radius: 8px;
  background: rgba(60, 230, 209, 0.07);
}

.payment-note a {
  color: var(--cyan);
  font-weight: 600;
}

.checkout-steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.checkout-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.checkout-step strong {
  display: block;
  margin-bottom: 4px;
}

.designer-page {
  background:
    linear-gradient(90deg, rgba(255, 47, 178, 0.08), transparent 34%, rgba(60, 230, 209, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    var(--bg);
}

.designer-page::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.16), rgba(7, 7, 10, 0.82) 92%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 88px);
}

.designer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
}

.designer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.designer-head .kicker {
  margin-bottom: 4px;
}

.designer-head h1 {
  white-space: normal;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.designer-head .lead {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 15px;
  margin-bottom: 0;
}

.designer-status {
  border: 1px solid rgba(60, 230, 209, 0.26);
  border-radius: 8px;
  padding: 18px;
  background: rgba(60, 230, 209, 0.08);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.25);
}

.designer-status span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.designer-status strong {
  display: block;
  color: var(--cyan);
  font-size: 24px;
  line-height: 1.2;
}

.designer-grid {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
}

.control-panel {
  grid-row: span 2;
}

.control-panel,
.preview-panel,
.unfold-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.control-panel {
  padding: 22px;
}

.panel-heading,
.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2,
.preview-head h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.icon-box {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 47, 178, 0.34);
  border-radius: 8px;
  background: rgba(255, 47, 178, 0.1);
}

.icon-box img {
  width: 34px;
  height: 34px;
}

.input-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-weight: 600;
}

.field input,
.unit-input {
  width: 100%;
}

.field input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.field input:focus {
  border-color: rgba(255, 47, 178, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 47, 178, 0.18);
}

.unit-input {
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.unit-input input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.unit-input input:focus {
  box-shadow: none;
}

.unit-input small {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  background: rgba(60, 230, 209, 0.08);
}

.corner-mode {
  border: 0;
  margin: 2px 0 0;
  padding: 0;
}

.corner-mode legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--soft);
}

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

.corner-mode label {
  display: grid;
  min-height: 46px;
  cursor: pointer;
}

.corner-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.corner-mode label span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.brace-mode label span {
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
}

.corner-mode input:checked + span {
  border-color: rgba(255, 47, 178, 0.82);
  background: #fce7f3;
  color: #000;
}

.designer-actions,
.buyer-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.helper-strip {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  border: 1px solid rgba(244, 200, 106, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(244, 200, 106, 0.07);
}

.helper-strip strong {
  color: var(--gold);
}

.helper-strip span {
  color: var(--muted);
  font-size: 14px;
}

.preview-panel {
  min-height: 560px;
  padding: 18px;
}

.preview-head {
  margin-bottom: 14px;
}

.preview-head > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.model-viewport {
  position: relative;
  overflow: hidden;
  min-height: 468px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 47, 178, 0.12), rgba(60, 230, 209, 0.08)),
    #0c0c12;
}

.model-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.webgl-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 420px;
  padding: 24px;
  color: var(--soft);
  text-align: center;
}

.webgl-fallback strong {
  color: var(--ink);
  font-size: 20px;
}

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

.css-cassette-preview {
  position: relative;
  width: 260px;
  height: 170px;
  margin-bottom: 12px;
  transform: rotateX(58deg) rotateZ(-28deg);
  transform-style: preserve-3d;
}

.css-cassette-preview span {
  position: absolute;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.52);
  border-radius: 2px;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.22);
}

.css-front {
  inset: 30px 42px;
  background: var(--magenta);
}

.css-top {
  left: 42px;
  right: 42px;
  top: 0;
  height: 30px;
  background: var(--cyan);
  transform: skewX(-24deg);
}

.css-side {
  top: 30px;
  right: 10px;
  width: 32px;
  height: 110px;
  background: #d8dadd;
  transform: skewY(-28deg);
}

.unfold-section {
  padding: 18px;
}

.svg-stage {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #f5f7f8;
}

.unfold-preview {
  min-width: 720px;
  padding: 18px;
}

.unfold-preview svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
}

.learn-showcase {
  margin-bottom: 24px;
}

.learn-guide {
  margin-bottom: 30px;
}

.number-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

.number-list li::marker {
  color: var(--magenta);
  font-weight: 700;
}

/* Advance Mode UI */
.control-wrapper {
  display: flex;
  flex-direction: column;
}
.mode-tabs {
  display: flex;
  gap: 4px;
  background: var(--panel-strong);
  padding: 6px;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}
.mode-tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 10px 0;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.mode-tab.active {
  background: linear-gradient(135deg, rgba(255, 47, 178, 0.2), rgba(255, 47, 178, 0.05));
  color: var(--magenta);
  border: 1px solid rgba(255, 47, 178, 0.3);
}
.file-upload-zone {
  border: 2px dashed rgba(60, 230, 209, 0.4);
  background: rgba(60, 230, 209, 0.05);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  background: rgba(60, 230, 209, 0.15);
  border-color: var(--cyan);
  transform: translateY(-2px);
}


@media print {
  body {
    background: white;
    color: black;
  }

  .topbar,
  .designer-head,
  .designer-grid,
  .footer {
    display: none;
  }

  .designer-shell,
  .unfold-section,
  .svg-stage,
  .unfold-preview {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: white;
    box-shadow: none;
  }
}

.no-webgl #foldScene {
  display: none;
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .toolrail,
  .feature-grid,
  .workflow,
  .pricing,
  .video,
  .video-showcase,
  .checkout-layout,
  .designer-head,
  .designer-grid {
    grid-template-columns: 1fr;
  }

  .workflow-copy {
    position: static;
  }

  .checkout-summary {
    position: static;
  }

  .designer-status {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .page {
    width: 100vw;
    max-width: 100vw;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar::before {
    inset: 8px -8px;
  }

  .brand span {
    font-size: 14px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 86svh;
    padding-top: 60px;
  }

  .hero-copy,
  .offer,
  .hero-actions,
  .proof,
  .toolrail {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: 56px;
    white-space: normal;
  }

  h1 span {
    display: block;
  }

  h1 span + span {
    margin-left: 0;
  }

  .lead {
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .eyebrow {
    font-size: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof span {
    min-width: 0;
    text-align: center;
  }

  .offer {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .toolchip {
    min-height: 62px;
  }

  .section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 68px 12px;
  }

  .feature-card {
    min-height: auto;
  }

  .steps li {
    grid-template-columns: 52px 1fr;
    padding: 18px;
  }

  .footer {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .checkout-main {
    width: 100%;
    max-width: 100%;
    padding: 60px 12px 0;
  }

  .checkout-hero h1 {
    font-size: 44px;
    overflow-wrap: anywhere;
  }

  .checkout-card {
    overflow: hidden;
    padding: 18px;
  }

  .checkout-card h2 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }

  .checkout-card p,
  .checkout-card li,
  .checkout-step {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .designer-shell {
    width: 100%;
    max-width: 100%;
    padding: 20px 12px 0;
  }

  .designer-head h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .panel-heading,
  .preview-head {
    display: grid;
  }

  .panel-heading h2,
  .preview-head h2 {
    font-size: 26px;
  }

  .preview-panel,
  .control-panel,
  .unfold-section {
    padding: 14px;
  }

  .model-viewport {
    min-height: 360px;
  }

  .unfold-preview {
    min-width: 620px;
    padding: 12px;
  }

  .video-frame span,
  .coming-card .video-frame span {
    font-size: 34px;
  }

  .summary-row.total strong {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Tooltip Styles */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: help;
  color: var(--cyan);
}
.tooltip-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.tooltip-text {
  visibility: hidden;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  background-color: #fce7f3;
  color: #000;
  text-align: left;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #fce7f3;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  white-space: normal;
  line-height: 1.4;
}
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #fce7f3 transparent transparent transparent;
}
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Print Summary Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .topbar, .mode-tabs, .control-panel, .unfold-preview-header, button {
    display: none !important;
  }
  .designer-grid {
    display: block !important;
  }
  .view-wrapper {
    display: block !important;
  }
  .unfold-section {
    page-break-inside: avoid;
    border: none !important;
    background: none !important;
  }
  #svgSummary, .kicker {
    display: none !important;
  }
  h2 {
    color: #000 !important;
  }
  #unfoldPreview svg, #modelViewport canvas {
    background: #fff !important;
    border: 1px solid #ccc !important;
  }
  table th {
    color: #000 !important;
    background: #eee !important;
    border-bottom: 2px solid #ccc !important;
  }
  table td {
    color: #000 !important;
    border-bottom: 1px solid #eee !important;
  }
  .designer-shell {
    padding: 0 !important;
  }
  #totalSizeInfo {
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
  }
  #totalSizeInfo span {
    color: #000 !important;
  }
}
