@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --primary: #cc785c;
  --primary-active: #a9583e;
  --primary-disabled: #e6dfd8;
  --ink: #141413;
  --body: #3d3d3a;
  --body-strong: #252523;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --hairline: #e6dfd8;
  --hairline-soft: #ebe6df;
  --canvas: #faf9f5;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #181715;
  --surface-dark-elevated: #252320;
  --surface-dark-soft: #1f1e1b;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;
  --accent-teal: #5db8a6;
  --accent-amber: #e8a55a;
  --success: #5db872;
  --warning: #d4a017;
  --error: #c64545;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --rounded-xs: 4px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-pill: 999px;
  --shadow-soft: 0 12px 40px rgba(20, 20, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 46px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(250, 249, 245, 0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: var(--rounded-sm);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 230px;
  padding: 8px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: 160ms ease;
}

.nav-item:hover .nav-popover,
.nav-item:focus-within .nav-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-popover a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--rounded-sm);
  color: var(--body);
  font-size: 14px;
}

.nav-popover a:hover {
  background: var(--surface-card);
  color: var(--ink);
}

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

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  background: var(--surface-card);
  color: var(--ink);
}

.language-select select {
  width: 118px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  outline: 0;
  font-size: 13px;
  font-weight: 600;
}

.btn,
.icon-button {
  border: 0;
  cursor: pointer;
  transition: 160ms ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 11px 16px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  background: var(--surface-cream-strong);
}

.btn.full {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.icon-button:hover {
  background: var(--surface-card);
}

.icon-button svg,
.btn svg,
.nav-popover svg,
.empty-state svg,
.upload-zone svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
}

.route-view {
  display: none;
}

.route-view.active {
  display: block;
}

.hero-band {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--canvas), var(--surface-soft));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 560px;
}

.hero-copy p,
.copy-block p,
.section-header p,
.side-panel p {
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-active);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.studio-card,
.output-surface,
.side-panel,
.code-card {
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
}

.studio-card {
  padding: 24px;
  background: var(--surface-dark);
  color: var(--on-dark);
}

.studio-card h2,
.studio-card .field span,
.studio-card .panel-heading h2 {
  color: var(--on-dark);
}

.studio-card .eyebrow {
  color: var(--accent-amber);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: var(--rounded-pill);
  background: var(--surface-dark-elevated);
  color: var(--on-dark-soft);
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.tool-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  color: inherit;
}

.field span,
.switch-row span {
  font-size: 13px;
  font-weight: 600;
}

textarea,
select,
input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  background: var(--canvas);
  color: var(--ink);
  padding: 11px 12px;
  outline: 0;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

textarea:focus,
select:focus,
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 120, 92, 0.14);
}

input[type="range"] {
  accent-color: var(--primary);
}

.toolbar-row,
.chip-row,
.tab-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.counter {
  margin-left: auto;
  color: var(--on-dark-soft);
  font-size: 12px;
}

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

.form-grid.compact {
  align-items: end;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--on-dark);
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.segmented,
.tab-row {
  padding: 4px;
  background: var(--surface-dark-elevated);
  border-radius: var(--rounded-md);
}

.segmented button,
.tab-row button,
.chip-row button {
  min-height: 36px;
  border: 0;
  border-radius: var(--rounded-sm);
  background: transparent;
  color: var(--on-dark-soft);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.segmented button.active,
.tab-row button.active,
.chip-row button:hover,
.chip-row button.active {
  background: var(--primary);
  color: var(--on-primary);
}

.tab-row {
  width: fit-content;
  background: var(--surface-card);
}

.tab-row button {
  color: var(--muted);
}

.tab-row button.active {
  color: var(--on-primary);
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 132px;
  border: 1px dashed var(--hairline);
  border-radius: var(--rounded-md);
  background: var(--surface-dark-soft);
  color: var(--on-dark-soft);
  cursor: pointer;
  text-align: center;
}

.upload-zone input {
  display: none;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.preview-strip img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--rounded-md);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hidden {
  display: none !important;
}

.result-layout {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  padding: 34px 0 72px;
}

.home-section {
  padding: 84px 0;
}

.surface-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.section-header.centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.logo-cloud {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.logo-cloud span {
  padding: 11px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  background: var(--canvas);
  color: var(--body-strong);
  font-weight: 700;
}

.editorial-grid,
.advanced-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: center;
}

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

.inspiration-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--rounded-lg);
  background: var(--surface-dark);
}

.inspiration-card.tall {
  grid-row: span 2;
}

.inspiration-card.wide {
  grid-column: span 2;
}

.inspiration-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.inspiration-card div {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--rounded-md);
  background: rgba(24, 23, 21, 0.72);
  color: var(--on-dark);
  backdrop-filter: blur(12px);
}

.inspiration-card span {
  color: var(--accent-amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.feature-tile,
.benefit-grid article {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  background: var(--canvas);
}

.feature-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.feature-tile svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-tile h3,
.benefit-grid strong {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.feature-tile p,
.benefit-grid p {
  color: var(--muted);
  font-size: 14px;
}

.dark-product-panel {
  padding: 22px;
  border-radius: var(--rounded-lg);
  background: var(--surface-dark);
  color: var(--on-dark);
}

.mini-window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.mini-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.mini-window-bar span:nth-child(2) {
  background: var(--accent-amber);
}

.mini-window-bar span:nth-child(3) {
  background: var(--accent-teal);
}

.dark-product-panel pre {
  margin: 0;
  overflow-x: auto;
  color: var(--on-dark-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body-strong);
  font-weight: 600;
}

.check-list svg {
  width: 18px;
  color: var(--success);
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  background: var(--surface-card);
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.faq-list p {
  margin-top: 12px;
  color: var(--muted);
}

.output-surface {
  padding: 24px;
  background: var(--canvas);
}

.output-frame,
.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 420px;
  background: var(--surface-dark);
  border-radius: var(--rounded-lg);
  color: var(--on-dark);
}

.output-frame.ratio-1-1 {
  aspect-ratio: 1 / 1;
  min-height: auto;
}

.output-frame.ratio-4-5 {
  aspect-ratio: 4 / 5;
  min-height: auto;
  max-height: 720px;
}

.output-frame.ratio-16-9,
.video-frame {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.output-frame.ratio-9-16 {
  aspect-ratio: 9 / 16;
  min-height: auto;
  max-height: 760px;
}

.output-frame img,
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.output-frame img.active,
.video-frame video.active {
  display: block;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  width: min(420px, 90%);
  text-align: center;
  color: var(--on-dark-soft);
  padding: 32px;
}

.empty-state h3 {
  color: var(--on-dark);
  font-size: 28px;
}

.empty-state p {
  color: var(--on-dark-soft);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  gap: 12px;
  background: rgba(24, 23, 21, 0.84);
  color: var(--on-dark);
  font-weight: 700;
}

.loading-overlay.active {
  display: grid;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(250, 249, 245, 0.22);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

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

.terminal,
.code-card pre {
  margin: 16px 0 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--rounded-md);
  background: var(--surface-dark-soft);
  color: var(--on-dark-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.output-actions {
  display: flex;
  gap: 8px;
}

.side-panel {
  padding: 24px;
  background: var(--surface-card);
  align-self: start;
}

.side-panel h2 {
  margin: 8px 0 14px;
  font-size: 32px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.metric-grid div {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
}

.metric-grid strong {
  color: var(--ink);
  font-size: 22px;
}

.metric-grid span {
  color: var(--muted);
  font-size: 11px;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1fr);
  gap: 42px;
  align-items: start;
  padding: 82px 0;
}

.copy-block {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.page-stack {
  display: grid;
  gap: 28px;
  padding: 82px 0;
}

.section-header {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

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

.template-card,
.gallery-card,
.model-card,
.pricing-card {
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
}

.template-card,
.model-card,
.pricing-card {
  padding: 24px;
}

.template-card {
  display: grid;
  gap: 14px;
}

.template-card p,
.model-card p,
.pricing-card p,
.pricing-card li {
  color: var(--body);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--rounded-pill);
  background: var(--canvas);
  color: var(--primary-active);
  font-size: 12px;
  font-weight: 700;
}

.gallery-card {
  background: var(--canvas);
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-dark);
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.gallery-body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

.gallery-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-actions .btn {
  min-height: 34px;
  padding: 8px 12px;
}

.model-card {
  display: grid;
  gap: 16px;
}

.model-card.dark,
.pricing-card.featured {
  background: var(--surface-dark);
  color: var(--on-dark);
}

.model-card.dark h3,
.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured li {
  color: var(--on-dark);
}

.cap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cap-list span {
  padding: 5px 9px;
  border-radius: var(--rounded-pill);
  background: var(--canvas);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.pricing-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.pricing-card .plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-card .credits {
  padding: 12px;
  border-radius: var(--rounded-md);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.pricing-card.featured .credits {
  background: rgba(250, 249, 245, 0.12);
  color: var(--on-dark);
}

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

.price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

.code-card {
  background: var(--surface-dark);
  padding: 8px;
}

.legal-page {
  display: grid;
  gap: 18px;
  max-width: 820px;
  padding: 82px 0;
}

.site-footer {
  padding: 60px 0 28px;
  background: var(--surface-dark);
  color: var(--on-dark-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid p {
  max-width: 340px;
  margin-top: 14px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
}

.footer-grid a:not(.brand) {
  display: block;
  margin: 9px 0;
  color: var(--on-dark-soft);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--on-dark);
}

.footer-brand {
  color: var(--on-dark);
}

.footer-brand .brand-mark {
  background: var(--primary);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 20, 19, 0.55);
  backdrop-filter: blur(10px);
}

.auth-dialog {
  position: relative;
  width: min(480px, 100%);
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-soft);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.auth-switch {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--primary-active);
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 249, 245, 0.12);
  font-size: 13px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  background: var(--surface-dark);
  color: var(--on-dark);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-popover {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    display: none;
    margin-bottom: 10px;
  }

  .nav-item:hover .nav-popover,
  .nav-item:focus-within .nav-popover {
    display: block;
    transform: none;
  }

  .nav-actions {
    display: flex;
    margin-left: auto;
  }

  .nav-actions .btn {
    display: none;
  }

  .language-select select {
    width: 94px;
  }

  .hero-grid,
  .result-layout,
  .subpage-grid,
  .editorial-grid,
  .advanced-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding-top: 44px;
  }

  .template-grid,
  .gallery-grid,
  .model-grid,
  .pricing-grid,
  .footer-grid,
  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .side-panel {
    order: -1;
  }
}

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

  .brand {
    font-size: 15px;
  }

  .form-grid,
  .template-grid,
  .gallery-grid,
  .model-grid,
  .pricing-grid,
  .footer-grid,
  .feature-grid,
  .benefit-grid,
  .inspiration-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .inspiration-card.tall,
  .inspiration-card.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .studio-card,
  .output-surface,
  .side-panel,
  .template-card,
  .model-card,
  .pricing-card {
    padding: 18px;
  }

  .output-frame,
  .video-frame {
    min-height: 340px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Auth Page Route Styling */
.auth-page-grid {
  min-height: calc(100vh - 240px);
  display: grid;
  align-items: center;
  gap: 40px;
}

.auth-page-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

#auth-page-switch {
  display: block;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

#auth-page-switch:hover {
  color: var(--primary-active);
  text-decoration: underline;
}
