.btn-generate {
  width: 100%;
  margin-top: 0.25rem;
  background: var(--gradient-cta);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-generate:hover {
  box-shadow: var(--shadow-lg);
}

.btn-generate::after {
  content: "›";
  font-size: 1.35em;
  font-weight: 300;
  line-height: 1;
  margin-left: 0.15em;
  opacity: 0.95;
}

.generator-section {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.generator-card {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.generator-card.simulator-box {
  margin-top: 80px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.65rem;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.generator-card.simulator-box .generator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.generator-card-head h2 {
  text-align: center;
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.generator-funnel-bridge {
  max-width: 52rem;
  margin: 0 auto 1.35rem;
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.generator-grid {
  display: grid;
  align-items: stretch;
}

.generator-form-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inputs {
  align-self: start;
}

.generator-preview-column {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.preview-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.preview-toggle {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.preview-toggle--active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.preview-device {
  display: none;
}

.preview-device--active {
  display: block;
}

.preview-mobile {
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  max-width: 320px;
  margin: 0 auto;
}

.preview-mobile-bezel {
  border-radius: 2rem;
  padding: 0.75rem;
  background: linear-gradient(155deg, #475569 0%, #1e293b 38%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

.preview-mobile-screen {
  border-radius: 1.5rem;
  overflow: hidden;
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 9 / 18;
}

.preview-laptop {
  position: relative;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55));
}

.preview-laptop-bezel {
  border-radius: 1.25rem;
  padding: 0.55rem;
  background: linear-gradient(155deg, #475569 0%, #1e293b 38%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

.preview-laptop-screen {
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 10;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #475569;
}

.preview-chrome span:nth-child(1) {
  background: #f87171;
}

.preview-chrome span:nth-child(2) {
  background: #fbbf24;
}

.preview-chrome span:nth-child(3) {
  background: #4ade80;
}

.preview-mount {
  flex: 1;
  padding: 1rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 260px;
  contain: content;
}

.preview-placeholder {
  align-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 22ch;
  margin: 0 auto;
}

.field-group--styles {
  margin-top: 0.15rem;
}

.style-toggles.style-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.style-options button {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  margin-right: 10px;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.style-options button:last-child {
  margin-right: 0;
}

.style-options button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.style-options button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.style-options button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.generator-actions {
  display: grid;
  gap: 0.7rem;
}

.btn-export {
  width: 100%;
  margin-top: 0;
}

.generator-card-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.generator-card-foot p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.generator-card-foot .btn {
  margin-top: 0;
  flex-shrink: 0;
}

.preview-browser {
  width: 100%;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: hsl(var(--preview-hue), 18%, 8%);
  --accent: hsl(var(--preview-hue), 85%, 58%);
  --accent-soft: hsla(var(--preview-hue), 70%, 55%, 0.25);
}

.preview-browser.preview-style-minimal {
  background: hsl(var(--preview-hue), 8%, 12%);
  border-color: rgba(255, 255, 255, 0.12);
}

.preview-browser.preview-style-luxury {
  background: linear-gradient(160deg, hsl(var(--preview-hue), 25%, 8%) 0%, #0c0a09 100%);
  border-color: rgba(251, 191, 36, 0.25);
}

.preview-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
}

.preview-site-nav span:last-child {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
}

.preview-hero {
  position: relative;
  min-height: 140px;
  padding: 1rem 0.85rem;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.5) 0%, transparent 55%),
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 80% 100% at 100% 0%, hsla(var(--preview-hue), 60%, 40%, 0.35), transparent 55%);
}

.preview-style-minimal .preview-hero {
  background: rgba(255, 255, 255, 0.04);
  min-height: 120px;
}

.preview-style-luxury .preview-hero {
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.08), transparent),
    linear-gradient(120deg, rgba(0, 0, 0, 0.55), transparent),
    radial-gradient(circle at 80% 20%, hsla(var(--preview-hue), 50%, 35%, 0.4), transparent 50%);
}

.preview-hero h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  max-width: 14ch;
}

.preview-style-minimal .preview-hero h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.preview-style-luxury .preview-hero h3 {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.preview-hero p {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.85);
  max-width: 28ch;
}

.preview-hero-description {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.9);
  max-width: 32ch;
}

.preview-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-card {
  flex: 1 1 26%;
  min-width: 4.25rem;
  max-width: 7.5rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.35rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  color: rgba(248, 250, 252, 0.92);
}

.preview-style-minimal .preview-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.preview-style-luxury .preview-card {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.15);
}

.preview-cta {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(105deg, var(--accent), hsl(calc(var(--preview-hue) + 40), 75%, 52%));
  box-shadow: 0 4px 16px hsla(var(--preview-hue), 80%, 40%, 0.35);
}

.preview-style-minimal .preview-cta {
  background: #fff;
  color: hsl(var(--preview-hue), 30%, 12%);
  box-shadow: none;
}

.preview-style-luxury .preview-cta {
  background: linear-gradient(105deg, #ca8a04, #eab308);
  color: #1c1917;
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
}

.preview-site-body {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.68rem;
  color: rgba(203, 213, 225, 0.9);
}

.preview-site-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.preview-services-section,
.preview-about,
.preview-contact {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-services-section strong,
.preview-about strong,
.preview-contact strong {
  display: block;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.preview-services-section p,
.preview-about p,
.preview-contact p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.85);
}

.preview-footer {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.65rem;
  color: rgba(226, 232, 240, 0.65);
  background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .generator-card.simulator-box {
  background-color: #111827;
  border-color: #263244;
}

@media (max-width: 900px) {
  .generator-card.simulator-box {
    margin-top: 48px;
    padding: 24px;
    border-radius: 20px;
  }

  .generator-card.simulator-box .generator-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .generator-card-foot {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .simulator-box .generator-grid {
    grid-template-columns: 1fr;
  }
}
