:root {
  --orange: #ff5a1f;
  --orange-2: #ff7a32;
  --black: #080a0d;
  --graphite: #11151b;
  --graphite-2: #171c23;
  --white: #ffffff;
  --muted: #b9c0cc;
  --line: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 8% 8%, #1f2530 0, #11161d 45%, #090d12 100%);
  color: var(--white);
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 90, 31, .22), transparent 36%),
    radial-gradient(circle at 16% 52%, rgba(255, 122, 50, .16), transparent 38%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 13, .76);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(176px, 16vw, 220px);
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.desktop-nav a {
  color: #dbe2ee;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.desktop-nav a:hover { color: #ffbe95; }

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

.status-badge {
  border: 1px solid rgba(255, 90, 31, .58);
  background: rgba(255, 90, 31, .12);
  color: #ffd4bd;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .84rem;
  white-space: nowrap;
}

.btn {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 22px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary {
  background: linear-gradient(145deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 90, 31, .30);
}

.btn-ghost {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
}

.hero {
  padding: 62px 0 30px;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: #ffb88f;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  font-size: .86rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4.7vw, 5rem);
  line-height: 1.04;
}

.lead-text {
  margin: 0;
  color: #d0d7e1;
  line-height: 1.56;
  font-size: 1.04rem;
  max-width: 640px;
}

.accent-line {
  margin: 14px 0 0;
  color: #ffbc96;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-cta .btn {
  min-width: 220px;
}

.hero-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  max-width: 520px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 0 18px;
  color: #d5dcea;
  background: rgba(255,255,255,.03);
  font-size: .92rem;
  white-space: nowrap;
}

.hero-video-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, rgba(13,18,27,.96), rgba(8,11,18,.98));
  border: 1px solid rgba(255, 90, 31, .45);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,90,31,.1);
}

.hero-video-card h2 {
  margin: 2px 0 12px;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 700;
  color: #f0f3f8;
}

.video-shell {
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.14), transparent 52%),
    linear-gradient(180deg, #131b26, #0b1017);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.video-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.section {
  padding: 62px 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.6;
}

.soon-grid,
.benefits-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.glass-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  padding: 16px;
}

.glass-card span {
  font-size: 1.3rem;
}

.glass-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.glass-card p {
  margin: 0;
  color: #ccd4e0;
  line-height: 1.5;
  font-size: .95rem;
}

.config-section {
  padding-top: 72px;
}

.config-shell {
  margin-top: 22px;
  background: #f5f7fb;
  color: #161b24;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 30px 65px rgba(5,8,12,.35);
}

.config-stepper {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(70px, 1fr));
  gap: 8px;
}

.config-stepper li {
  text-align: center;
  padding: 10px 8px;
  font-size: .83rem;
  font-weight: 700;
  color: #616c7d;
  border-radius: 10px;
  border: 1px solid #d8dee8;
  background: #fff;
}

.config-stepper li.active {
  color: var(--orange);
  border-color: rgba(255, 90, 31, .65);
  box-shadow: 0 9px 20px rgba(255, 90, 31, .18);
}

.config-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 12px;
}

.config-panel {
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.config-panel h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.preset-card {
  width: 100%;
  text-align: left;
  border: 1px solid #d9e0ea;
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f8f9fc;
  font-weight: 700;
  color: #2d3645;
}

.preset-card.active {
  border-color: rgba(255, 90, 31, .68);
  background: #fff2ea;
  color: var(--orange);
}

.config-panel p {
  margin: 8px 0 0;
  color: #667287;
  line-height: 1.45;
  font-size: .9rem;
}

.config-preview {
  border: 1px solid #dce2eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf2f8 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.scene-badge {
  align-self: flex-end;
  color: #6d7789;
  font-weight: 600;
  font-size: .8rem;
}

.scene-canvas {
  position: relative;
  margin: 8px auto 0;
  width: min(100%, 520px);
  height: 250px;
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(180, 198, 218, .28), rgba(205, 217, 230, .14));
  border: 1px dashed #ccd6e4;
  overflow: hidden;
}

.lot-shadow {
  position: absolute;
  left: 18%;
  top: 58%;
  width: 64%;
  height: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 86, 103, .38), transparent 70%);
}

.lot-line {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(108, 129, 152, .25);
  border-radius: 14px;
}

.home-volume {
  position: absolute;
  left: 28%;
  top: 26%;
  width: 44%;
  height: 48%;
  transform: skewX(-10deg);
}

.home-roof {
  position: absolute;
  left: 6%;
  top: 2%;
  width: 86%;
  height: 24%;
  background: linear-gradient(100deg, #3f4a5c, #232b3a);
  clip-path: polygon(0 100%, 10% 0, 100% 0, 90% 100%);
}

.home-body {
  position: absolute;
  left: 0;
  top: 22%;
  width: 100%;
  height: 72%;
  border-radius: 9px;
  border: 2px solid #97a6bc;
  background: linear-gradient(140deg, #fdf8f0, #d7c5b2);
}

.home-glass {
  position: absolute;
  top: 40%;
  width: 17%;
  height: 20%;
  border: 2px solid #61748f;
  background: linear-gradient(130deg, #9ecdf9, #d2e9ff);
}

.home-glass.g1 { left: 16%; }
.home-glass.g2 { left: 40%; }

.home-door {
  position: absolute;
  right: 13%;
  top: 47%;
  width: 11%;
  height: 47%;
  background: #2f3641;
}

.mini-plan {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 10px;
  border: 1px solid #d2dbe8;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(4px);
  padding: 8px 10px;
  width: 150px;
  display: grid;
  gap: 2px;
}

.mini-plan strong {
  font-size: .76rem;
  color: #1f2633;
}

.mini-plan span {
  font-size: .72rem;
  color: #596477;
}

.config-preview p {
  margin: 12px 0 0;
  text-align: center;
  color: #525f74;
  font-weight: 600;
}

.config-panel.right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.config-panel.right li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #d8dee8;
  padding: 8px 0;
}

.config-panel.right li:last-child { border-bottom: 0; }
.config-panel.right span { color: #6a7485; }
.config-panel.right strong { color: #1e2534; }
.config-panel.right li.price strong { color: var(--orange); }

.style-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.style-card {
  border: 1px solid #d4dce8;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  font-weight: 700;
  color: #2f3949;
  cursor: pointer;
}

.style-card.active {
  border-color: rgba(255, 90, 31, .72);
  color: var(--orange);
  box-shadow: 0 9px 16px rgba(255, 90, 31, .16);
}

.config-preview.theme-modern .home-body { background: linear-gradient(140deg, #fdf8f0, #d7c5b2); }
.config-preview.theme-classic .home-body { background: linear-gradient(140deg, #f1e4d7, #ceb59a); }
.config-preview.theme-scandi .home-body { background: linear-gradient(140deg, #f7fbfd, #d3e4ea); }
.config-preview.theme-chalet .home-body { background: linear-gradient(140deg, #edd8be, #b98f67); }
.config-preview.theme-hitech .home-body { background: linear-gradient(140deg, #d8deea, #9da9be); }
.config-preview.theme-classic .home-roof { background: linear-gradient(100deg, #6b504c, #3d2c2c); }
.config-preview.theme-scandi .home-roof { background: linear-gradient(100deg, #677487, #2f3948); }
.config-preview.theme-chalet .home-roof { background: linear-gradient(100deg, #6c4d34, #38281d); }
.config-preview.theme-hitech .home-roof { background: linear-gradient(100deg, #40506a, #1f2838); }

.lead-section {
  padding-top: 74px;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.lead-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
}

.lead-copy p {
  color: #cfd6e2;
  line-height: 1.6;
}

.lead-note {
  margin-top: 14px;
  color: #ffbc96;
  font-weight: 600;
}

.lead-form {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-size: .93rem;
  color: #d7dfeb;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.26);
  color: #fff;
  padding: 11px 12px;
  font-family: inherit;
}

.form-feedback {
  min-height: 22px;
  margin: 0;
  color: #d2d9e3;
  font-weight: 600;
}

.form-feedback.success { color: #87e8b0; }
.form-feedback.error { color: #ff9f90; }

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  color: #aeb8c8;
  padding: 24px 24px 34px;
}

.footer-brand,
.footer-domain {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
}

.footer-copy {
  color: #8e98aa;
  font-size: .9rem;
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .soon-grid,
  .benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 34px; }
}

@media (max-width: 980px) {
  .site-header { position: static; }

  .header-row {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 14px 0 12px;
  }

  .desktop-nav { display: none; }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions .btn {
    width: min(320px, 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-video-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .config-layout { grid-template-columns: 1fr; }

  .style-cards {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .lead-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-copy { white-space: normal; }
}

@media (max-width: 900px) {
  .site-header .header-actions,
  .site-header .header-cta,
  .site-header .nav-actions,
  .site-header .btn,
  .site-header a[href="#lead"] {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }

  .header-actions { display: none !important; }

  .header-row {
    grid-template-columns: auto;
    justify-content: start;
    gap: 0;
    min-height: auto;
    padding: 10px 0;
  }

  .brand-logo {
    width: clamp(148px, 44vw, 186px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-cta .btn,
  .lead-form .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-chips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
  }

  .chip {
    width: 100%;
    justify-content: center;
  }

  .soon-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .config-stepper {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .config-shell {
    padding: 14px;
  }

  .scene-canvas {
    height: 220px;
  }
}

@media (max-width: 1024px) {
  .site-header .header-actions-desktop {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

@media (min-width: 1025px) {
  .site-header .header-actions-desktop {
    display: flex !important;
  }
}
