:root {
  --bg: #080d17;
  --card: #0f1627;
  --accent: #f7b267;
  --accent-strong: #f19b5c;
  --text: #f6f8ff;
  --muted: #99aac7;
  --outline: rgba(255, 255, 255, 0.12);
  --gradient: radial-gradient(circle at 20% 20%, rgba(247, 178, 103, 0.08), rgba(0, 0, 0, 0)),
    linear-gradient(135deg, #0b1324 0%, #0c182c 45%, #0a1220 100%);
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  background: var(--gradient);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.sky-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

#star-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

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

.nav {
  max-width: 960px;
  width: min(100%, 100vw);
  padding: 28px 16px 12px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.logo {
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--outline);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: #0d0f14;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--outline);
  box-shadow: none;
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--outline);
  box-shadow: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(247, 178, 103, 0.35);
}

.hero {
  max-width: 960px;
  width: min(100%, 100vw);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 32px;
  padding: 24px 16px 52px;
  margin: 0 auto;
}

.hero>* {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  margin: 6px 0 16px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 14px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 178, 103, 0.12);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(247, 178, 103, 0.3);
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--outline);
  color: var(--text);
  font-weight: 500;
}

.pill[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.cta-note {
  display: grid;
  gap: 6px;
}

.hero-checks {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 14px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  gap: 12px;
}

.poster-hero {
  position: relative;
  width: min(320px, 100%);
}

.frame {
  border-radius: 14px;
  background: radial-gradient(circle at 60% 30%, rgba(247, 178, 103, 0.12), rgba(0, 0, 0, 0)),
    linear-gradient(145deg, #0f1627, #0c1220);
  padding: 18px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 100%;
}

.frame img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.frame-shadow {
  position: absolute;
  inset: 12px;
  filter: blur(20px);
  background: radial-gradient(circle at 30% 30%, rgba(247, 178, 103, 0.2), transparent 45%);
  z-index: -1;
}

.floating-card {
  position: relative;
  right: auto;
  bottom: auto;
  background: var(--card);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 240px;
  width: 100%;
  margin: 0 auto;
}

.small-muted,
.tiny-note,
.mini {
  color: var(--muted);
}

.small-muted {
  font-size: 14px;
}

.mini {
  font-size: 13px;
}

.tiny-note {
  font-size: 12px;
  margin-top: 6px;
}

.section {
  max-width: 960px;
  width: min(100%, 100vw);
  padding: 46px 16px;
  margin: 0 auto;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 36px);
}

.section-header p {
  margin: 0 0 16px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
}

.form-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
  width: 100%;
}

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

.pricing-card h3 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.price-label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9em;
}

.new-price {
  color: var(--accent);
  font-weight: 700;
}

.sale-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: rgba(247, 178, 103, 0.12);
  border-color: rgba(247, 178, 103, 0.4);
  color: var(--accent);
  font-weight: 600;
}

.pricing-card.disabled {
  opacity: 0.45;
  filter: grayscale(0.6);
  pointer-events: none;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.pricing-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.pill-row.wrap {
  margin-top: 6px;
}

.scenarios .pill-row {
  margin-top: 12px;
}

.examples .example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f1627;
  border: 1px solid var(--outline);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 5;
}

.location-suggestions.visible {
  display: block;
}

.location-suggestions .suggestion {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.location-suggestions .suggestion:hover {
  background: rgba(247, 178, 103, 0.08);
  color: var(--text);
}

.example-card {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.example-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid var(--outline);
  background: #000 !important;
  position: relative;
  z-index: 2;
}

.example-meta {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}

.why-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--outline);
}

.list-row:last-child {
  border-bottom: none;
}

.quality-callout {
  background: radial-gradient(circle at 30% 30%, rgba(247, 178, 103, 0.16), rgba(255, 255, 255, 0.02)),
    var(--card);
}

.quality-stars {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px dashed var(--outline);
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(247, 178, 103, 0.25), transparent 35%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(247, 178, 103, 0.12), transparent 40%);
  mix-blend-mode: screen;
}

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

.quote {
  display: grid;
  gap: 8px;
}

.stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.design h3 {
  margin: 6px 0 10px;
}

.step {
  margin-bottom: 14px;
}

#step-two {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--outline);
}

.step-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--outline);
  margin-bottom: 6px;
}

form .field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.field.dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.promo-row {
  grid-template-columns: minmax(160px, 0.82fr) 1.18fr;
}

@media (max-width: 680px) {
  .promo-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(247, 178, 103, 0.5);
}

.input-invalid {
  border-color: #f26b6b;
  box-shadow: 0 0 0 1px rgba(242, 107, 107, 0.35);
}

.input-invalid:focus {
  outline-color: rgba(242, 107, 107, 0.7);
}

.pill-select {
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 120ms ease;
}

.pill-select.active {
  border-color: var(--accent);
  background: rgba(247, 178, 103, 0.14);
  color: var(--text);
}

.pill-select:hover {
  transform: translateY(-1px);
}

#product-picker {
  gap: 8px;
}

.template-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
}

.template-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
  min-width: 200px;
  overflow: hidden;
  max-width: 100%;
}

.template-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.template-card.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.form-actions {
  margin-top: 14px;
}

.preview {
  background: linear-gradient(160deg, rgba(247, 178, 103, 0.06), rgba(255, 255, 255, 0.05));
  border: 1px dashed var(--outline);
  border-radius: var(--radius);
  min-height: 480px;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 16px;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.preview img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.preview-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

.how-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.step-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(247, 178, 103, 0.12);
  border: 1px solid rgba(247, 178, 103, 0.3);
  color: var(--accent);
  font-weight: 700;
}

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

.footer {
  max-width: 960px;
  width: min(100%, 100vw);
  padding: 32px 16px;
  margin: 0 auto;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
}

.footer a:hover {
  color: var(--text);
}

.error-text {
  margin-top: 10px;
  color: #f88;
  min-height: 20px;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 12px;
  }

  .nav-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 12px;
  }

  .template-carousel {
    grid-auto-columns: minmax(160px, 1fr);
  }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.1fr; /* Slight bias to visual for balance */
  }
  .hero-visual {
    max-width: none;
    justify-self: start; /* Align left in extra space */
  }
  .poster-hero {
    width: min(480px, 55vw); /* Larger base, viewport-proportional */
  }
  .frame {
    padding: 24px; /* Proportional increase */
  }
  .frame img {
    max-height: 540px; /* Taller for immersion, retain contain */
  }
}

@media (max-width: 600px) {
  .poster-hero {
    width: 95vw; /* Near-full width on mobile for prominence */
    margin: 0 auto;
  }
  .frame {
    padding: 16px; /* Slightly less padding on small screens */
  }
}
