:root {
  color-scheme: light;
  --bg: #eef2f3;
  --surface: #ffffff;
  --surface-soft: #f8fbfb;
  --surface-strong: #e4edee;
  --ink: #12202b;
  --muted: #5f6f78;
  --line: #ccd7dc;
  --line-strong: #b4c2c8;
  --accent: #0f706e;
  --accent-strong: #095552;
  --accent-soft: #dcefed;
  --danger: #a13a2f;
  --shadow: 0 18px 48px rgba(17, 33, 38, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 112, 110, 0.09), transparent 26%),
    linear-gradient(180deg, #f5f8f9, #edf2f3 30%, #eef2f3 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(245, 248, 249, 0.84);
  border-bottom: 1px solid rgba(204, 215, 220, 0.9);
}

.site-header-inner,
.site-footer-inner,
.page-shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #5fbaa9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text span {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.top-nav a,
.footer-group a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.18s ease;
}

.top-nav a:hover,
.footer-group a:hover {
  color: var(--accent-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link-button,
.header-cta,
.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.header-link-button,
.hero-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.header-cta,
.hero-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 112, 110, 0.18);
}

.header-cta:hover,
.hero-primary:hover,
button:hover:not(:disabled) {
  background: var(--accent-strong);
}

.page-shell {
  display: grid;
  gap: 28px;
  padding: 28px 0 48px;
}

.hero-band,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(15, 112, 110, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 251, 0.98));
  box-shadow: var(--shadow);
}

.page-hero.compact,
.legal-hero {
  grid-template-columns: 1fr;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.workspace-title,
.result-block h2,
.blog-card h2,
.legal-section h2 {
  margin: 0;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 0.98;
}

.hero-summary,
.workspace-summary,
.section-heading p,
.feature-card p,
.step-card p,
.pricing-card p,
.contact-card p,
.blog-card p,
.legal-section p,
.legal-section li,
.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-summary {
  max-width: 60ch;
  font-size: 17px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: end;
}

.hero-stats article,
.feature-card,
.step-card,
.pricing-card,
.blog-card,
.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.workspace-section,
.marketing-section,
.legal-shell {
  display: grid;
  gap: 20px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2,
.workspace-title {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.alt-surface {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 247, 0.96));
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: 24px;
}

.workspace,
.result-block,
.legal-article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.workspace {
  align-self: start;
  padding: 24px;
}

.intro {
  margin-bottom: 24px;
}

.workspace-title {
  font-size: 34px;
}

.upload-panel {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input[type='file'] {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  color: var(--ink);
}

.ingredient-row {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.check-option input,
.radio-option input {
  accent-color: var(--accent);
}

.check-option input {
  width: 18px;
  height: 18px;
}

.field.disabled {
  opacity: 0.48;
}

.actions {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.camera-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.camera-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  color: var(--ink);
  font-size: 14px;
}

.radio-option input {
  width: 17px;
  height: 17px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s ease, opacity 0.18s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.error-box {
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
}

.render-loading {
  min-height: 190px;
  padding: 22px;
}

.render-loading-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(15, 112, 110, 0.2), transparent 45%),
    linear-gradient(180deg, #edf8f7, #e4f0ef);
  color: var(--accent-strong);
  border: 1px solid rgba(15, 112, 110, 0.14);
  text-align: left;
}

.status-orbital {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 112, 110, 0.12);
}

.status-copy {
  display: grid;
  gap: 5px;
  width: 100%;
}

.status-eyebrow,
.status-detail {
  margin: 0;
}

.status-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#status-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.status-detail {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.status-progress {
  overflow: hidden;
  width: 100%;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(18, 32, 43, 0.08);
}

.status-progress-bar {
  display: block;
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #66c4b5);
  transition: width 0.45s ease;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #b8d8d5;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.error-box {
  background: #fbecea;
  color: var(--danger);
}

.results {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) minmax(240px, 0.8fr);
  gap: 24px;
}

.result-block {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
}

.result-block h2 {
  font-size: 17px;
}

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

.input-preview {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 112, 110, 0.05), rgba(15, 112, 110, 0)),
    var(--surface-soft);
}

.input-preview figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-preview-media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e6edef;
}

.input-preview img,
.input-preview-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.input-preview img {
  object-fit: cover;
}

.input-preview-empty {
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px dashed #c5d0d6;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(231, 237, 240, 0.95));
}

.input-preview-name {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.preview-expand-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(12, 22, 26, 0.72);
  color: #ffffff;
  font-size: 18px;
  backdrop-filter: blur(6px);
}

.preview-expand-button:hover:not(:disabled) {
  background: rgba(11, 85, 83, 0.92);
}

.rendered-output {
  display: grid;
  gap: 10px;
}

.rendered-output h3 {
  margin: 0;
  font-size: 15px;
}

.placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  border: 1px dashed #aeb8be;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  background: rgba(248, 251, 251, 0.92);
}

#rendered-image,
#rendered-video,
.mock-video {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 12px;
  background: #11191f;
  object-fit: contain;
}

.mock-video {
  position: relative;
  overflow: hidden;
}

.mock-video img {
  width: 108%;
  height: 108%;
  object-fit: cover;
  animation: slow-pan 5s ease-in-out infinite alternate;
}

.mock-video span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 13px;
}

.camera-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: sweep 2.5s linear infinite;
}

.feature-grid,
.steps-grid,
.pricing-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card h3,
.step-card h3,
.pricing-card h3,
.blog-card h2 {
  margin: 0 0 8px;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.pricing-card {
  display: grid;
  gap: 8px;
}

.pricing-card.featured {
  border-color: rgba(15, 112, 110, 0.38);
  background: linear-gradient(180deg, rgba(220, 239, 237, 0.72), #ffffff);
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
}

.contact-card {
  display: grid;
  gap: 8px;
}

.contact-card a {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 700;
}

.contact-card span,
.legal-updated {
  color: var(--muted);
  font-size: 14px;
}

.legal-shell {
  max-width: 920px;
}

.legal-article {
  padding: 28px;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #f5f8f9;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0 22px;
}

.brand-footer {
  margin-bottom: 14px;
}

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

.footer-group h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.footer-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-meta {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
}

.site-footer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
}

.preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 19, 21, 0.72);
}

.preview-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(1100px, 100%);
  max-height: calc(100vh - 56px);
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(10, 24, 28, 0.28);
}

.preview-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.preview-modal-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.preview-modal-close {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.preview-stage {
  position: relative;
  overflow: hidden;
  min-height: 65vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(15, 112, 110, 0.08), transparent 35%),
    linear-gradient(180deg, #f7f9fa, #edf2f4);
  cursor: grab;
  touch-action: none;
}

.preview-stage.is-dragging {
  cursor: grabbing;
}

.preview-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
}

.preview-modal-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slow-pan {
  from {
    transform: translateX(0) scale(1);
  }
  to {
    transform: translateX(-4%) scale(1.04);
  }
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1120px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 18px 0;
  }

  .top-nav {
    justify-content: start;
  }

  .hero-band,
  .site-footer-inner,
  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .hero-stats,
  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header-inner,
  .site-footer-meta,
  .site-footer-inner,
  .page-shell {
    width: min(100% - 24px, 1380px);
  }

  .page-shell {
    padding: 16px 0 32px;
  }

  .hero-band,
  .page-hero,
  .alt-surface,
  .workspace,
  .legal-article {
    padding: 18px;
  }

  .hero-stats,
  .input-previews,
  .footer-groups {
    grid-template-columns: 1fr;
  }

  .results {
    grid-template-rows: auto;
  }

  .contact-card a {
    font-size: 20px;
  }

  .preview-modal {
    padding: 12px;
  }

  .preview-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .preview-stage {
    min-height: 54vh;
  }

  .render-loading-card {
    align-items: start;
  }
}
