:root {
  --color-bg: #120b1f;
  --color-surface: #1b1229;
  --color-surface-soft: #241634;
  --color-surface-strong: #2d1a43;
  --color-primary: #9b5cff;
  --color-primary-strong: #c69cff;
  --color-secondary: #ff7ac8;
  --color-accent: #ffd6f1;
  --color-border: rgba(229, 214, 255, 0.16);
  --color-border-strong: rgba(198, 156, 255, 0.42);
  --color-text: #fff7ff;
  --color-text-muted: #c8b9d7;
  --color-danger: #ff8ab0;
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.38);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.26);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --gradient-primary: linear-gradient(135deg, var(--color-secondary), var(--color-primary) 54%, #6f35d5);
  --gradient-soft: linear-gradient(135deg, rgba(255, 122, 200, 0.16), rgba(155, 92, 255, 0.14));
  --focus-ring: 0 0 0 3px rgba(155, 92, 255, 0.34);
}

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

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 122, 200, 0.12), transparent 28rem),
    linear-gradient(180deg, #120b1f 0%, #170f25 58%, #10091b 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.hero-section,
.workflow-section,
.site-footer,
.policy-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand-lockup,
.site-nav,
.action-row,
.preview-title,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-nav {
  gap: 8px;
}

.site-nav a,
.site-footer a {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--color-secondary);
}

.site-nav a:focus-visible,
.button:focus-visible,
.brand-lockup:focus-visible,
.site-footer a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 152px);
  padding: 34px 0 46px;
}

.hero-copy {
  display: grid;
  gap: 16px;
  max-width: 700px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--gradient-primary);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.logo-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--color-primary-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 56px;
  line-height: 1.02;
}

.hero-description {
  max-width: 660px;
  margin-bottom: 2px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.action-row {
  flex-wrap: wrap;
  gap: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--color-primary-strong);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.button:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

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

.button-disabled {
  color: var(--color-text-muted);
  background: var(--color-surface-soft);
  cursor: default;
  opacity: 0.72;
}

.button-disabled:hover {
  border-color: var(--color-border);
  box-shadow: none;
  transform: none;
}

.button small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.extension-preview {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.preview-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px;
  background: var(--gradient-primary);
  overflow: hidden;
}

.preview-header::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  opacity: 0.58;
}

.preview-title {
  position: relative;
  z-index: 1;
  gap: 10px;
}

.preview-title img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.preview-title strong,
.preview-title span {
  display: block;
}

.preview-title strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
}

.preview-title span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.window-control {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.window-control::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 9px;
  width: 13px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-border);
}

.preview-tabs span {
  min-height: 32px;
  padding: 6px 11px;
  color: var(--color-primary-strong);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.preview-tabs .active {
  color: #ffffff;
  background: var(--gradient-primary);
  border-color: transparent;
}

.preview-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.preview-card,
.prompt-output,
.workflow-card,
.policy-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.preview-card {
  display: grid;
  gap: 5px;
  padding: 11px;
}

.preview-card strong,
.prompt-output span,
.workflow-card h3,
.policy-card h1,
.policy-card h2 {
  color: var(--color-text);
}

.preview-card span,
.prompt-output p,
.workflow-card p,
.policy-card p,
.policy-card li {
  color: var(--color-text-muted);
}

.preview-card strong {
  font-size: 13px;
}

.preview-card span {
  font-size: 12px;
  line-height: 1.45;
}

.preview-card.selected {
  border-color: var(--color-border-strong);
  box-shadow:
    inset 4px 0 0 var(--color-secondary),
    var(--shadow-card);
}

.prompt-output {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 11px;
  background: var(--gradient-soft);
}

.prompt-output span {
  font-size: 12px;
  font-weight: 800;
}

.prompt-output p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.5;
}

.workflow-section {
  padding: 28px 0 64px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
}

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

.workflow-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.workflow-card h3 {
  margin-bottom: 0;
  font-size: 15px;
}

.workflow-card p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.55;
}

.step-number {
  color: var(--color-secondary);
  font-size: 11px;
  font-weight: 900;
}

.output-card {
  border-color: var(--color-border-strong);
  background: var(--gradient-soft);
}

.site-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  font-size: 12px;
}

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

.policy-shell {
  padding: 34px 0 56px;
}

.policy-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
}

.policy-card h1 {
  margin-bottom: 4px;
  font-size: 36px;
  line-height: 1.15;
}

.policy-card h2 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.policy-card p {
  margin-bottom: 12px;
}

.policy-card code {
  color: var(--color-accent);
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  font-size: 0.95em;
}

.updated {
  color: var(--color-primary-strong);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

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

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  .hero-description {
    font-size: 16px;
  }

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

  .policy-card {
    padding: 20px;
  }
}
