:root {
  --bg: #080a0f;
  --bg-soft: #0d1118;
  --panel: rgba(18, 22, 32, 0.88);
  --panel-strong: #121722;
  --panel-muted: #171d29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --text-soft: #dbe2ef;
  --muted: #aab2c0;
  --subtle: #7c8492;
  --brand: #7c5cff;
  --cyan: #45c8ff;
  --green: #57d79f;
  --amber: #f1b96b;
  --danger: #ff7c8c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 92, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 4%, rgba(69, 200, 255, 0.12), transparent 32rem),
    linear-gradient(180deg, #06080d 0%, #0a0d13 48%, #0c1017 100%);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.site-shell {
  min-height: 100vh;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(20px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: block;
  overflow: hidden;
  background: #090d14;
  box-shadow: 0 14px 34px rgba(86, 124, 255, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav .brand-mark {
  width: 40px;
  height: 40px;
}

.brand span {
  display: block;
  min-width: 0;
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #7150ff, #38bcff);
}

.btn.ghost {
  background: transparent;
}

.btn.warn {
  background: rgba(241, 185, 107, 0.12);
  color: #ffd6a1;
}

.btn.disabled,
.btn:disabled {
  opacity: 0.54;
  cursor: not-allowed;
  transform: none;
}

.btn.full {
  width: 100%;
}

.btn.small {
  padding: 8px 12px;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.22);
  color: #d9deff;
  font-size: 12px;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 5.2vw, 54px);
  line-height: 1.02;
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.08;
  font-weight: 650;
}

h3 {
  font-size: 18px;
  line-height: 1.24;
  font-weight: 600;
}

.lead {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.hero {
  padding: 60px 0 44px;
}

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

.hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hero-copy h1,
.hero-copy p,
.card,
.metric-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.hero-panel,
.panel-surface {
  min-width: 0;
}

.panel-surface {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 22% 18%, rgba(124, 92, 255, 0.14), transparent 14rem),
    radial-gradient(circle at 78% 18%, rgba(69, 200, 255, 0.14), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.flow-preview {
  display: grid;
  gap: 16px;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-chip {
  min-width: 92px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

.flow-chip.purple { background: rgba(124, 92, 255, 0.16); }
.flow-chip.blue { background: rgba(69, 200, 255, 0.16); }
.flow-chip.teal { background: rgba(87, 215, 159, 0.14); }
.flow-chip.amber { background: rgba(241, 185, 107, 0.16); }

.flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.7), rgba(69, 200, 255, 0.7));
}

.flow-stack {
  display: grid;
  gap: 12px;
}

.mini-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(14, 18, 27, 0.82);
}

.mini-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.mini-panel p,
.card p,
.muted {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 56px 0 70px;
  background:
    radial-gradient(circle at 50% 16%, rgba(124, 92, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 72% 22%, rgba(69, 200, 255, 0.18), transparent 25rem),
    linear-gradient(180deg, rgba(6, 8, 13, 0.2), rgba(4, 6, 10, 0.96));
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero::before {
  background:
    linear-gradient(118deg, transparent 13%, rgba(124, 92, 255, 0.22) 31%, transparent 42%),
    linear-gradient(156deg, transparent 44%, rgba(69, 200, 255, 0.26) 55%, transparent 66%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 255, 255, 0.018) 119px 120px);
  filter: blur(0.2px);
  opacity: 0.78;
}

.landing-hero::after {
  background:
    radial-gradient(circle at 50% 55%, rgba(69, 200, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, transparent 0%, rgba(5, 7, 11, 0.86) 88%);
}

.hero-light {
  position: absolute;
  width: 46vw;
  height: 14px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.72;
}

.hero-light-purple {
  left: -8%;
  top: 44%;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.9), transparent);
}

.hero-light-blue {
  right: -9%;
  top: 22%;
  transform: rotate(-15deg);
  background: linear-gradient(90deg, transparent, rgba(69, 200, 255, 0.9), transparent);
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.08fr);
  gap: 56px;
  align-items: center;
}

.landing-copy {
  max-width: 580px;
}

.landing-copy h1 {
  max-width: 700px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.landing-copy .lead {
  max-width: 560px;
  font-size: 16px;
}

.ae-connection {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 42px);
}

.hero-product-card,
.ae-card {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(120, 190, 255, 0.55);
  background:
    radial-gradient(circle at 35% 25%, rgba(124, 92, 255, 0.18), transparent 9rem),
    linear-gradient(180deg, rgba(15, 20, 34, 0.82), rgba(6, 9, 16, 0.96));
  box-shadow:
    0 0 34px rgba(69, 200, 255, 0.22),
    0 0 70px rgba(124, 92, 255, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.06);
}

.hero-product-card {
  width: clamp(132px, 15vw, 178px);
  height: clamp(132px, 15vw, 178px);
  border-radius: 34px;
}

.hero-product-card img {
  width: 72%;
  height: 72%;
  border-radius: 26px;
  display: block;
}

.ae-card {
  width: clamp(118px, 13vw, 154px);
  height: clamp(118px, 13vw, 154px);
  border-radius: 30px;
  color: #a8a7ff;
  font-size: clamp(56px, 7vw, 86px);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.hero-connector {
  position: relative;
  width: clamp(78px, 10vw, 128px);
  height: 70px;
}

.hero-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.2), rgba(69, 200, 255, 1), rgba(124, 92, 255, 0.2));
  box-shadow: 0 0 18px rgba(69, 200, 255, 0.72);
}

.hero-connector span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #81dfff;
  box-shadow: 0 0 20px rgba(69, 200, 255, 0.9);
}

.hero-connector span:nth-child(1) { left: 0; top: 31px; }
.hero-connector span:nth-child(2) { left: 50%; top: 31px; transform: translateX(-50%); }
.hero-connector span:nth-child(3) { right: 0; top: 31px; }

.landing-features {
  position: relative;
  padding: 56px 0 74px;
  background:
    radial-gradient(circle at 15% 12%, rgba(87, 215, 159, 0.08), transparent 22rem),
    radial-gradient(circle at 86% 10%, rgba(124, 92, 255, 0.12), transparent 24rem);
}

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

.landing-feature-card {
  position: relative;
  min-height: 262px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(20, 27, 42, 0.9), rgba(11, 15, 24, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(69, 200, 255, 0.13), transparent 12rem);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.landing-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(112, 226, 255, 0.5);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.36), 0 0 28px rgba(69, 200, 255, 0.16);
}

.feature-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(120, 238, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.line-icon {
  width: 22px;
  height: 22px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-feature-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.landing-feature-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feature-visual {
  position: relative;
  height: 92px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(30, 40, 62, 0.9), rgba(9, 12, 18, 0.95));
}

.visual-screen {
  position: absolute;
  inset: 10px auto 10px 12px;
  width: calc(50% - 15px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(87, 215, 159, 0.82), rgba(22, 28, 42, 0.86));
}

.screen-b {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, rgba(69, 200, 255, 0.48), rgba(124, 92, 255, 0.36));
}

.visual-divider {
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.visual-node,
.visual-spark {
  position: absolute;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.visual-node {
  width: 8px;
  height: 8px;
  color: rgba(69, 200, 255, 0.85);
  background: currentColor;
}

.node-one { left: 20%; top: 26%; }
.node-two { right: 18%; bottom: 22%; }

.visual-spark {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
  background: radial-gradient(circle, #fff, rgba(69, 200, 255, 0.2) 52%, transparent 70%);
}

.feature-keying { border-color: rgba(87, 215, 159, 0.42); }
.feature-relighting { border-color: rgba(69, 200, 255, 0.36); }
.feature-cleanup { border-color: rgba(164, 112, 255, 0.42); }
.feature-roto { border-color: rgba(31, 214, 205, 0.42); }
.feature-image3d { border-color: rgba(156, 104, 255, 0.44); }
.feature-videoedit { border-color: rgba(31, 214, 205, 0.42); }
.feature-imageedit { border-color: rgba(87, 215, 159, 0.42); }
.feature-videogen { border-color: rgba(164, 112, 255, 0.42); }

.visual-relighting .screen-a,
.visual-videoedit .screen-a { background: linear-gradient(135deg, rgba(18, 24, 40, 0.94), rgba(241, 185, 107, 0.42)); }
.visual-cleanup .screen-a { background: linear-gradient(135deg, rgba(91, 82, 75, 0.84), rgba(28, 33, 42, 0.94)); }
.visual-roto .screen-b { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(208, 219, 232, 0.48)); }
.visual-image3d .screen-a,
.visual-image3d .screen-b { background: linear-gradient(135deg, rgba(132, 95, 65, 0.9), rgba(32, 35, 45, 0.94)); }
.visual-imageedit .screen-a,
.visual-videogen .screen-a { background: linear-gradient(135deg, rgba(74, 108, 154, 0.92), rgba(11, 18, 32, 0.95)); }

.workflow-section {
  padding: 72px 0 94px;
  background:
    radial-gradient(circle at 25% 20%, rgba(124, 92, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 78% 34%, rgba(69, 200, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(5, 7, 11, 0.3), rgba(6, 9, 14, 0.92));
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(18, 23, 36, 0.86), rgba(9, 12, 19, 0.92)),
    radial-gradient(circle at 18% 12%, rgba(124, 92, 255, 0.18), transparent 18rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.workflow-copy p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
}

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

.workflow-block {
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, background 180ms ease;
}

.workflow-block:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.065);
}

.workflow-block .line-icon {
  color: rgba(255, 255, 255, 0.92);
}

.workflow-block h3 {
  margin: 18px 0 8px;
}

.workflow-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 44px 0;
}

.page-section {
  padding-top: 26px;
}

.page-hero {
  padding: 46px 0 14px;
}

.page-hero.compact {
  padding-bottom: 8px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 40px);
  margin-top: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.feature-card,
.faq-card,
.pricing-pack,
.metric-card {
  height: 100%;
}

.feature-card h3,
.faq-card h3,
.pricing-pack h3,
.metric-card h3,
.card h3 {
  margin-top: 12px;
}

.split-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.callout-card h2 {
  margin-top: 10px;
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
  color: var(--subtle);
  font-size: 13px;
}

.compact-pack-grid,
.compact-grid {
  margin-top: 16px;
}

.price {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.06;
}

.pricing-pack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

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

.metric-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(17, 22, 32, 0.9);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.metric-card p {
  margin-top: 8px;
}

.metric-action {
  margin-top: 14px;
}

.support-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: rgba(18, 22, 32, 0.9);
}

.support-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.support-note.warning {
  border-color: rgba(241, 185, 107, 0.22);
  background: rgba(241, 185, 107, 0.08);
}

.support-note.error {
  border-color: rgba(255, 124, 140, 0.22);
  background: rgba(255, 124, 140, 0.08);
}

.provider-row,
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.provider-row:last-child,
.stat-row:last-child {
  border-bottom: 0;
}

.provider-row span,
.stat-row span {
  color: var(--muted);
}

.quota-card {
  margin: 18px 0;
}

.quota-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 16px 0;
}

.quota-progress span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ad8a5, #73a7ff);
}

.details-list {
  margin-top: 8px;
}

.muted-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.muted-list.ordered {
  padding-left: 20px;
}

.text-link {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.auth-shell {
  width: min(840px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-card {
  min-height: 100%;
}

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

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.46);
  background: rgba(255, 255, 255, 0.06);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

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

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.panel-head,
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head strong,
.panel-foot strong {
  font-size: 14px;
}

.panel-foot span {
  font-size: 13px;
  color: var(--muted);
}

.panel-links {
  display: grid;
  gap: 4px;
}

.side-panel a,
.admin-link {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.side-panel a:hover,
.admin-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.account-content {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.history-thumb {
  width: 72px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-muted);
}

.file-expired {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

code {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  color: var(--muted);
}

.table th {
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}

.table td:last-child .btn {
  white-space: nowrap;
}

.coming-soon {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-card,
.empty-state {
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 15px;
}

.empty-state p {
  margin-top: 6px;
}

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

.admin-menu {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.admin-menu strong {
  font-size: 14px;
  padding-bottom: 6px;
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-section {
  display: grid;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-tab:hover,
.admin-tab.active {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.42);
  background: rgba(124, 92, 255, 0.15);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-badge.ok {
  color: #baffdc;
  border-color: rgba(87, 215, 159, 0.28);
  background: rgba(87, 215, 159, 0.1);
}

.status-badge.muted {
  color: var(--muted);
}

.admin-read-list {
  display: grid;
  gap: 16px;
}

.admin-read-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-read-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-read-card-head h3 {
  margin-top: 8px;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-meta-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-meta-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.admin-meta-grid b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--text-soft);
}

.admin-warning {
  border-color: rgba(241, 185, 107, 0.22);
  background: rgba(241, 185, 107, 0.08);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 12, 0.66);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98), rgba(12, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.modal-card.pricing-rule-modal {
  width: min(760px, 100%);
}

.catalog-pricing-modal {
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.catalog-pricing-modal .modal-head {
  flex: 0 0 auto;
  padding: 22px 22px 0;
}

.catalog-pricing-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 22px 0;
}

.catalog-pricing-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 16px -22px 0;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98), rgba(12, 16, 23, 0.98));
  box-shadow: 0 -12px 26px rgba(4, 6, 12, 0.34);
}

.pricing-rule-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.pricing-change-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.modal-head h3 {
  margin-top: 10px;
}

.modal-form {
  margin-top: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: min(360px, calc(100vw - 40px));
  max-width: 420px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  background: rgba(16, 20, 28, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
}

.toast.success {
  border-color: rgba(87, 215, 159, 0.22);
}

.toast.warning {
  border-color: rgba(241, 185, 107, 0.22);
}

.toast.error {
  border-color: rgba(255, 124, 140, 0.22);
}

.toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.footer {
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  display: block;
  margin: 8px 0;
}

.notice {
  color: var(--amber);
}

.ok {
  color: var(--green);
}

.danger-text {
  color: var(--danger);
}

@media (max-width: 1080px) {
  .hero-layout,
  .landing-hero-inner,
  .workflow-panel,
  .split-panels,
  .account-layout,
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .landing-copy {
    max-width: 760px;
  }

  .hero-meta-grid,
  .admin-meta-grid,
  .metric-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel,
  .admin-menu {
    position: static;
  }
}

@media (max-width: 900px) {
  .grid.two,
  .grid.three,
  .grid.four,
  .landing-feature-grid,
  .admin-meta-grid,
  .pricing-change-grid,
  .metric-grid.three,
  .metric-grid.four,
  .auth-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding: 48px 0 56px;
  }

  .landing-hero-inner {
    gap: 34px;
  }

  .ae-connection {
    min-height: 250px;
  }

  .nav-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-cta {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 42px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

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

  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 2px;
  }

  .nav-links a {
    padding: 7px 9px;
  }

  h1 {
    font-size: clamp(31px, 10vw, 38px);
    line-height: 1.05;
  }

  .eyebrow,
  .section-kicker {
    max-width: 100%;
    white-space: normal;
  }

  h2 {
    font-size: 28px;
  }

  .hero-actions,
  .nav-cta,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-pricing-modal {
    max-height: calc(100vh - 24px);
  }

  .pricing-change-grid,
  .pricing-rule-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-copy h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .ae-connection {
    gap: 14px;
    transform: scale(0.92);
    transform-origin: center;
  }

  .workflow-panel {
    padding: 22px;
  }

  .workflow-block-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .btn.full {
    width: 100%;
  }

  .toast-stack {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

/* Premium customer-facing redesign */
:root {
  --bg: #05070b;
  --bg-soft: #080c13;
  --panel: rgba(14, 19, 30, 0.82);
  --panel-strong: rgba(20, 28, 43, 0.94);
  --panel-muted: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(180, 225, 255, 0.22);
  --text: #f6f8fb;
  --text-soft: #dfe8f5;
  --muted: #a8b4c5;
  --subtle: #758295;
  --brand: #8d7dff;
  --cyan: #48d6ff;
  --green: #62dca6;
  --amber: #f0bf78;
  --danger: #ff7c8c;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --soft-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  --mesh:
    linear-gradient(120deg, rgba(72, 214, 255, 0.09), transparent 30%),
    linear-gradient(240deg, rgba(98, 220, 166, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(141, 125, 255, 0.11), transparent 42%);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    var(--mesh),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 96px),
    #05070b;
  color: var(--text);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.12), rgba(5, 7, 11, 0.9)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.014) 19px 20px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.container {
  width: min(100% - 48px, 1380px);
}

.nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
}

.brand {
  gap: 12px;
  letter-spacing: 0;
}

.brand span:last-child {
  display: grid;
  line-height: 1.06;
}

.brand small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark,
.nav .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(120, 225, 255, 0.28);
  background: linear-gradient(145deg, rgba(72, 214, 255, 0.14), rgba(141, 125, 255, 0.16));
  box-shadow: 0 0 28px rgba(72, 214, 255, 0.13);
}

.nav-links {
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.065);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
}

.nav-links a {
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--text-soft);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.075);
}

.nav-wallet {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(98, 220, 166, 0.25);
  border-radius: var(--radius);
  padding: 0 12px;
  color: #c8ffe0;
  background: rgba(98, 220, 166, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.btn {
  min-height: 40px;
  border-radius: var(--radius);
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(120,225,255,0.28);
  background: rgba(255,255,255,0.105);
}

.btn.primary {
  border-color: rgba(72, 214, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(72, 214, 255, 0.96), rgba(141, 125, 255, 0.96));
  color: #041018;
  box-shadow: 0 14px 34px rgba(72, 214, 255, 0.18);
}

.btn.ghost {
  background: rgba(255,255,255,0.035);
}

.eyebrow,
.section-kicker,
.pill {
  border-color: rgba(120, 225, 255, 0.2);
  border-radius: 999px;
  background: rgba(72, 214, 255, 0.07);
  color: #bfeeff;
  letter-spacing: 0.03em;
}

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

h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.94;
  font-weight: 850;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  font-weight: 800;
}

h3 {
  font-weight: 760;
}

.lead {
  max-width: 820px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
}

.landing-hero.premium-hero {
  min-height: 760px;
  padding: 92px 0 86px;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.04), rgba(5, 7, 11, 0.92)),
    linear-gradient(120deg, rgba(72, 214, 255, 0.1), transparent 34%),
    linear-gradient(240deg, rgba(240, 191, 120, 0.06), transparent 28%),
    linear-gradient(160deg, rgba(141, 125, 255, 0.14), transparent 42%);
}

.landing-hero.premium-hero::before {
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(72,214,255,0.22) 34%, transparent 48%),
    linear-gradient(156deg, transparent 0 48%, rgba(98,220,166,0.15) 60%, transparent 76%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(255,255,255,0.02) 119px 120px);
}

.landing-hero-inner {
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: clamp(38px, 5vw, 78px);
}

.landing-copy {
  max-width: 720px;
}

.landing-copy h1 {
  max-width: 900px;
  font-size: clamp(52px, 6.9vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-proof-row span {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.045);
  font-size: 12px;
  font-weight: 700;
}

.hero-workspace {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(166, 222, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 29, 44, 0.92), rgba(8, 11, 18, 0.96)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 52px);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,0.06);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}

.workspace-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
}

.workspace-topbar b {
  margin-left: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.node-stage {
  position: relative;
  height: 456px;
}

.workflow-node {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 5px;
  min-width: 132px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(7, 11, 19, 0.92);
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
}

.workflow-node b {
  font-size: 14px;
}

.workflow-node small {
  color: var(--muted);
  font-size: 11px;
}

.node-prompt { left: 44px; top: 58px; border-color: rgba(72,214,255,0.28); }
.node-reference { left: 58px; top: 250px; border-color: rgba(98,220,166,0.26); }
.node-model { left: 294px; top: 160px; border-color: rgba(141,125,255,0.34); }
.node-video { right: 46px; top: 72px; border-color: rgba(240,191,120,0.3); }
.node-output { right: 42px; bottom: 56px; border-color: rgba(72,214,255,0.32); }

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(72,214,255,0.72);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(72,214,255,0.48));
}

.preview-card {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: end start;
  border-radius: var(--radius);
  padding: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
}

.preview-image {
  right: 202px;
  top: 50px;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(98,220,166,0.72), rgba(72,214,255,0.34));
}

.preview-video {
  right: 203px;
  bottom: 54px;
  width: 108px;
  height: 76px;
  background: linear-gradient(135deg, rgba(240,191,120,0.58), rgba(141,125,255,0.46));
}

.section {
  padding: 70px 0;
}

.page-hero {
  padding: 74px 0 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent),
    linear-gradient(120deg, rgba(72,214,255,0.07), transparent 34%);
}

.page-hero h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  letter-spacing: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.65;
}

.card,
.metric-card,
.support-note,
.admin-read-card {
  border-radius: var(--radius);
  border-color: rgba(255,255,255,0.105);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.026)),
    rgba(10, 15, 24, 0.76);
  box-shadow: var(--soft-shadow);
}

.card:hover,
.metric-card:hover {
  border-color: rgba(120,225,255,0.2);
}

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

.landing-feature-card {
  min-height: 300px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(22, 30, 45, 0.94), rgba(8, 12, 20, 0.94)),
    linear-gradient(120deg, rgba(72,214,255,0.09), transparent 45%);
}

.feature-visual,
.mini-panel,
.workflow-block,
.workflow-panel {
  border-radius: var(--radius);
}

.premium-feature-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.feature-index {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.micro-node-strip,
.node-mini-map {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.micro-node-strip span,
.node-mini-map span {
  width: 34px;
  height: 22px;
  border: 1px solid rgba(72,214,255,0.2);
  border-radius: 6px;
  background: rgba(72,214,255,0.08);
}

.micro-node-strip i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(72,214,255,0.6), rgba(98,220,166,0.5));
}

.feature-deep-card {
  min-height: 260px;
}

.node-mini-map {
  justify-content: space-between;
  margin-top: 30px;
}

.node-mini-map span {
  width: 22%;
  height: 54px;
}

.node-mini-map.alt span {
  border-color: rgba(240,191,120,0.24);
  background: rgba(240,191,120,0.075);
}

.workflow-panel {
  padding: 34px;
}

.mini-bento-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.mini-bento-preview div {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255,255,255,0.045);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
}

.compact-pack-grid {
  gap: 14px;
}

.grid.five {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pricing-pack {
  position: relative;
  min-height: 300px;
  padding: 22px;
}

.pricing-pack.featured-pack {
  border-color: rgba(72,214,255,0.34);
  background:
    linear-gradient(180deg, rgba(72,214,255,0.095), rgba(255,255,255,0.028)),
    rgba(10, 15, 24, 0.85);
}

.pack-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: 0;
}

.pack-list {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.pack-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

.muted-card {
  opacity: 0.7;
}

.pricing-rules-card {
  min-height: 240px;
}

.warning-card {
  border-color: rgba(240,191,120,0.18);
  background:
    linear-gradient(180deg, rgba(240,191,120,0.07), rgba(255,255,255,0.026)),
    rgba(10, 15, 24, 0.76);
}

.auth-shell.premium-auth-shell {
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: stretch;
}

.auth-visual-card {
  min-height: 420px;
  background:
    linear-gradient(145deg, rgba(22,31,48,0.92), rgba(8,12,20,0.95)),
    linear-gradient(130deg, rgba(72,214,255,0.08), transparent 48%);
}

.auth-node-stack {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.auth-node-stack span {
  width: min(320px, 100%);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.045);
  font-weight: 750;
}

.account-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 22px;
}

.side-panel,
.admin-menu {
  border-radius: var(--radius);
}

.panel-links a,
.admin-link {
  border-radius: 6px;
}

.dashboard-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.metric-card {
  min-height: 156px;
}

.metric-value {
  font-size: clamp(26px, 2.6vw, 36px);
}

.plugin-callout,
.plugin-download-card,
.studio-card,
.contact-card {
  background:
    linear-gradient(145deg, rgba(20,30,48,0.92), rgba(9,13,21,0.95)),
    linear-gradient(120deg, rgba(72,214,255,0.075), transparent 46%);
}

.details-list {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 4px 12px;
  background: rgba(255,255,255,0.035);
}

.form input,
.form textarea,
.form select {
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
}

.modal-card {
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(24, 31, 46, 0.98), rgba(8, 12, 20, 0.99));
}

.modal-overlay {
  backdrop-filter: blur(14px);
}

.footer {
  margin-top: 24px;
  background: rgba(5, 7, 11, 0.56);
}

@media (min-width: 1280px) {
  .grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .landing-hero-inner,
  .auth-shell.premium-auth-shell {
    grid-template-columns: 1fr;
  }

  .hero-workspace {
    min-height: 460px;
  }

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

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1380px);
  }

  .landing-hero.premium-hero {
    min-height: auto;
    padding: 58px 0 54px;
  }

  .landing-copy h1 {
    font-size: clamp(42px, 11vw, 66px);
  }

  .node-stage {
    height: 420px;
  }

  .workflow-node {
    min-width: 112px;
    padding: 11px;
  }

  .node-prompt { left: 22px; top: 48px; }
  .node-reference { left: 28px; top: 240px; }
  .node-model { left: 38%; top: 158px; }
  .node-video { right: 20px; top: 70px; }
  .node-output { right: 20px; bottom: 54px; }

  .preview-card {
    display: none;
  }

  .workflow-panel,
  .split-panels,
  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1380px);
  }

  .nav-inner {
    padding: 12px 0;
  }

  .nav-links {
    padding: 0;
    border: 0;
    background: transparent;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-workspace {
    min-height: 360px;
  }

  .node-stage {
    height: 320px;
  }

  .workflow-node {
    min-width: 92px;
    font-size: 12px;
  }

  .workflow-node small {
    display: none;
  }

  .node-prompt { left: 14px; top: 38px; }
  .node-reference { left: 18px; top: 206px; }
  .node-model { left: 35%; top: 130px; }
  .node-video { right: 12px; top: 50px; }
  .node-output { right: 12px; bottom: 42px; }

  .landing-feature-grid,
  .mini-bento-preview {
    grid-template-columns: 1fr;
  }

  .pricing-pack {
    min-height: auto;
  }
}
