/* ══════════════════════════════════════════════
   TELEHOME SIP — Main Stylesheet
   ══════════════════════════════════════════════ */

:root {
  --primary:    #0b1f3a;
  --primary-mid:#1e3a5f;
  --accent:     #e8601c;
  --accent-lt:  #ff7a38;
  --light:      #f6f5f2;
  --white:      #ffffff;
  --gray-100:   #f3f4f6;
  --gray-300:   #d1d5db;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --green:      #22c55e;

  --nav-h:      72px;
  --radius:     12px;
  --radius-lg:  20px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 2rem;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-lt); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--primary);
  padding: 1.5rem 5%;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.4rem 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.22s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,96,28,0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   SECTION COMMONS
   ══════════════════════════════════════════════ */
section { padding: 100px 0; }
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(232,96,28,0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  will-change: transform, opacity;
}
/* End-state — high specificity so it always wins over modifiers below */
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── Directional / effect modifiers (initial states) ── */
.reveal-left   { transform: translateX(-55px); }
.reveal-right  { transform: translateX(55px); }
.reveal-scale  { transform: scale(0.88) translateY(30px); }
.reveal-blur   { transform: translateY(24px); filter: blur(12px); }
.reveal-rotate { transform: perspective(1400px) rotateX(14deg) translateY(50px); transform-origin: 50% 0; }
.reveal-clip   { clip-path: inset(0 0 100% 0); transform: translateY(20px); }
.reveal-clip.visible { clip-path: inset(0 0 0 0); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  background: var(--primary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: var(--nav-h) 5% 60px;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb2 {
  width: 400px; height: 400px;
  background: #1a6bb5;
  bottom: -150px; left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb3 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 50%; left: 50%;
  animation: orbFloat 6s ease-in-out infinite 2s;
  opacity: 0.08;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,96,28,0.15);
  border: 1px solid rgba(232,96,28,0.3);
  color: #ffa06a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.1;
}
.hero-title em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.title-accent {
  color: var(--accent);
  display: block;
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-unit { color: var(--accent); font-weight: 700; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.house-diagram {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.house-svg {
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: houseFloat 6s ease-in-out infinite;
}
@keyframes houseFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  color: white;
  font-size: 0.8rem;
  white-space: nowrap;
}
.float-label strong { display: block; font-size: 0.9rem; }
.float-label span { color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.fl-icon { font-size: 1.1rem; }
.label-1 { bottom: 20%; left: -20px; transition-delay: 0.2s; }
.label-2 { top: 20%; right: -10px; transition-delay: 0.4s; }
.label-3 { top: 5%; left: 5%; transition-delay: 0.6s; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDrop 1.5s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ══════════════════════════════════════════════
   TECHNOLOGY
   ══════════════════════════════════════════════ */
#technology {
  background: var(--light);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 60px;
}

/* SIP Panel diagram */
.panel-diagram {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 32px rgba(11,31,58,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.panel-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}
.panel-layer:hover { transform: scaleX(1.02); z-index: 1; }
.layer-osb {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c507d 100%);
  color: white;
  height: 80px;
}
.layer-eps {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  height: 160px;
  border: 2px dashed #93c5fd;
  position: relative;
}
.layer-eps::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(147,197,253,0.3) 8px,
    rgba(147,197,253,0.3) 9px
  );
}
.layer-eps span { position: relative; z-index: 1; }
.panel-total {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--gray-100);
  margin-top: 0.5rem;
}

.tech-features { display: flex; flex-direction: column; gap: 2rem; }

.tech-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.tf-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
  min-width: 24px;
}
.tf-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.tf-content p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.65; }

/* Comparison table */
.tech-comparison h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.comparison-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(11,31,58,0.08);
}
.ct-head, .ct-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
  gap: 0;
}
.ct-head {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ct-head > div, .ct-row > div {
  padding: 0.9rem 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.ct-head .ct-sip {
  background: rgba(232,96,28,0.15);
  color: #ffa06a;
}
.ct-row {
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--gray-100); }
.ct-row > div:nth-child(1) { color: var(--gray-700); font-weight: 500; }
.ct-row > div:nth-child(3), .ct-row > div:nth-child(4) { color: var(--gray-500); }
.ct-sip { background: rgba(34, 197, 94, 0.06); }
.ct-sip.green { color: #15803d; font-weight: 700; }
.recommended-tag {
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   MODELS
   ══════════════════════════════════════════════ */
#models {
  background: var(--white);
}

.models-filter {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--gray-100);
  border: 2px solid transparent;
  color: var(--gray-500);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.model-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.models-grid .model-card.visible:hover,
.models-grid .model-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(11,31,58,0.12);
  border-color: var(--accent);
}
.model-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(232,96,28,0.15);
}
.model-card.hidden { display: none; }

.model-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-img-custom {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--primary) 100%);
}
.custom-icon {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.6;
}
.model-house {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.model-house::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.model-house::after {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-color: transparent transparent rgba(255,255,255,0.25) transparent;
}
.model-house-s::before { width: 100px; height: 55px; }
.model-house-s::after { border-width: 0 65px 45px 65px; margin-bottom: 55px; }
.model-house-m::before { width: 130px; height: 65px; }
.model-house-m::after { border-width: 0 80px 55px 80px; margin-bottom: 65px; }
.model-house-l::before { width: 150px; height: 75px; }
.model-house-l::after { border-width: 0 90px 60px 90px; margin-bottom: 75px; }
.model-house-xl::before { width: 160px; height: 80px; }
.model-house-xl::after { border-width: 0 95px 65px 95px; margin-bottom: 80px; }
.model-house-xxl::before { width: 175px; height: 90px; }
.model-house-xxl::after { border-width: 0 105px 72px 105px; margin-bottom: 90px; }

.model-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.badge-featured {
  background: var(--accent) !important;
  color: white;
}

.model-body { padding: 1.4rem; }
.model-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.model-size {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232,96,28,0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.model-class {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(34,197,94,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.model-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.model-body > p {
  color: var(--gray-500);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.model-specs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.model-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.model-specs li:last-child { border-bottom: none; }
.model-specs span { color: var(--gray-500); }
.model-specs strong { color: var(--primary); font-weight: 600; }

.model-price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.price-from {
  font-size: 0.78rem;
  color: var(--gray-500);
}
.price-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.price-unit { font-size: 0.9rem; color: var(--gray-500); }

/* ══════════════════════════════════════════════
   PROCESS
   ══════════════════════════════════════════════ */
/* Animated background canvas (hero + process) */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

#process {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
#process .section-container {
  position: relative;
  z-index: 1;
}
#process .section-header h2 { color: var(--white); }
#process .section-header p { color: rgba(255,255,255,0.55); }
#process .section-tag { background: rgba(232,96,28,0.2); color: var(--accent-lt); }

/* Vertical timeline with scroll-fill */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 12px;
}
.timeline-track {
  position: absolute;
  left: 38px; top: 12px; bottom: 12px;
  width: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--accent-lt), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.timeline-step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding-bottom: 2.2rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.ts-marker {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.ts-marker span {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  transition: color 0.4s;
}
.timeline-step.visible .ts-marker {
  background: var(--accent);
  border-color: rgba(232,96,28,0.35);
  box-shadow: 0 0 0 6px rgba(232,96,28,0.12);
}
.timeline-step.visible .ts-marker span { color: #fff; }

.ts-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  flex: 1;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.ts-card:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,96,28,0.3);
}
.ts-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ts-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.65;
}
.step-time {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-lt);
  background: rgba(232,96,28,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

/* ══════════════════════════════════════════════
   CALCULATOR
   ══════════════════════════════════════════════ */
#calculator {
  background: var(--light);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-form { display: flex; flex-direction: column; gap: 2rem; }

.calc-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 2px 20px rgba(11,31,58,0.06);
}
.step-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.step-badge {
  width: 28px; height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Size selector */
.size-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.size-opt { cursor: pointer; }
.size-opt input { display: none; }
.size-card {
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  text-align: center;
  transition: all 0.2s;
  background: var(--white);
}
.size-card strong { display: block; font-size: 0.95rem; color: var(--primary); }
.size-card span { font-size: 0.72rem; color: var(--gray-500); }
.size-opt input:checked + .size-card {
  border-color: var(--accent);
  background: rgba(232,96,28,0.05);
}
.size-opt:hover .size-card { border-color: var(--gray-300); }

/* Extras */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.extra-opt { cursor: pointer; }
.extra-opt input { display: none; }
.extra-card {
  border: 2px solid var(--gray-100);
  border-radius: 10px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.2s;
  background: var(--white);
}
.extra-icon { font-size: 1.1rem; }
.extra-card strong { display: block; font-size: 0.85rem; color: var(--primary); }
.extra-card span { font-size: 0.75rem; color: var(--gray-500); }
.extra-opt input:checked + .extra-card {
  border-color: var(--accent);
  background: rgba(232,96,28,0.05);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  color: var(--primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,96,28,0.12);
}

/* Result card */
.calc-result { position: sticky; top: calc(var(--nav-h) + 24px); }

.result-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  box-shadow: 0 20px 60px rgba(11,31,58,0.25);
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.result-tag {
  background: rgba(34,197,94,0.2);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.result-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
#resultPrice {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
  display: inline-block;
}
#resultPrice.rolling {
  color: var(--accent-lt);
  transform: scale(1.04);
}
.result-unit { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.result-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.result-breakdown {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rb-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.rb-row span:last-child { font-weight: 600; color: white; }

.result-monthly {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}
.rm-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.rm-value { font-size: 1rem; font-weight: 700; color: #86efac; }

.result-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.5;
}

.result-success {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(11,31,58,0.25);
}
.success-icon {
  width: 60px; height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.result-success h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.result-success p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
#footer {
  background: #060f1e;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; color: white; }
.footer-brand > p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-links h4, .footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}
.footer-links ul, .footer-contact ul {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.footer-links a {
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.footer-contact svg { flex-shrink: 0; opacity: 0.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: white; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
#testimonials { background: var(--light); }

.testi-carousel {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.testi-track {
  display: flex;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.testi-slide {
  min-width: 100%;
  padding: 0 0.5rem;
}
.testi-quote {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
  text-align: center;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testi-author strong { display: block; color: var(--primary); font-size: 0.95rem; }
.testi-author span { font-size: 0.82rem; color: var(--gray-500); }
.testi-stars { color: var(--accent); font-size: 0.9rem; margin-left: 0.5rem; letter-spacing: 0.05em; }

.testi-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.testi-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease-out);
}
.testi-dot.active { background: var(--accent); width: 26px; border-radius: 100px; }

/* ══════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════ */
#faq { background: var(--white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(11,31,58,0.07);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}
.faq-item[open] .faq-answer {
  max-height: 320px;
  padding: 0 1.4rem 1.2rem;
}
.faq-answer p { color: var(--gray-500); font-size: 0.92rem; line-height: 1.7; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .panel-diagram { max-width: 400px; margin: 0 auto; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  #hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 32px);
    text-align: center;
    min-height: auto;
    padding-bottom: 80px;
  }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero-badge { margin: 0 auto; }

  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  section { padding: 64px 0; }

  .calc-wrapper { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .size-selector { grid-template-columns: repeat(2, 1fr); }
  .extras-grid { grid-template-columns: 1fr; }

  .models-grid { grid-template-columns: 1fr; }
  .comparison-table { overflow-x: auto; }
  .ct-head, .ct-row { min-width: 520px; }

  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .scroll-hint { display: none; }

  .testi-quote { font-size: 1.1rem; }
  .timeline { padding-left: 0; }
  .timeline-track { left: 26px; }
  .ts-marker { width: 44px; height: 44px; }
  .ts-marker span { font-size: 0.95rem; }
  .timeline-step { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .size-selector { grid-template-columns: repeat(2, 1fr); }
  .testi-author { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════
   FULL DARK THEME — unified hero-style background
   One continuous backdrop; all sections transparent;
   light surfaces become frosted glass with light text.
   ══════════════════════════════════════════════ */
body { background: var(--primary); color: #e8eef5; }

/* Continuous fixed backdrop */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #123257 0%, #0b1f3a 52%, #081628 100%);
}
.site-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}
.site-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.16;
  display: block;
}
.site-orb1 { width: 620px; height: 620px; background: var(--accent); top: -180px; right: -120px; animation: orbFloat 9s ease-in-out infinite; }
.site-orb2 { width: 500px; height: 500px; background: #1a6bb5; top: 42%; left: -150px; animation: orbFloat 11s ease-in-out infinite reverse; }
.site-orb3 { width: 460px; height: 460px; background: var(--accent); bottom: -160px; right: 16%; opacity: 0.10; animation: orbFloat 8s ease-in-out infinite 1.5s; }

/* Sections transparent so the backdrop shows through everywhere */
#hero, #technology, #models, #process, #testimonials, #faq, #calculator { background: transparent; }

/* Headings + copy → light */
.section-header h2 { color: #ffffff; }
.section-header p  { color: rgba(255,255,255,0.62); }
.section-tag { background: rgba(232,96,28,0.15); }

/* ── Technology ── */
.panel-diagram { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); box-shadow: none; }
.panel-total { color: rgba(255,255,255,0.55); border-top-color: rgba(255,255,255,0.1); }
.tf-content h3 { color: #fff; }
.tf-content p  { color: rgba(255,255,255,0.6); }
.tech-comparison h3 { color: #fff; }
.comparison-table { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); box-shadow: none; }
.ct-row { border-bottom-color: rgba(255,255,255,0.08); }
.ct-row:hover { background: rgba(255,255,255,0.045); }
.ct-row > div:nth-child(1) { color: rgba(255,255,255,0.85); }
.ct-row > div:nth-child(3), .ct-row > div:nth-child(4) { color: rgba(255,255,255,0.5); }
.ct-sip { background: rgba(34,197,94,0.1); }
.ct-sip.green { color: #4ade80; }

/* ── Models ── */
.model-card { background: rgba(255,255,255,0.045); border: 1.5px solid rgba(255,255,255,0.09); }
.model-body h3 { color: #fff; }
.model-body > p { color: rgba(255,255,255,0.6); }
.model-specs li { border-bottom-color: rgba(255,255,255,0.08); }
.model-specs span { color: rgba(255,255,255,0.5); }
.model-specs strong { color: #fff; }
.price-num { color: #fff; }
.price-from, .price-unit { color: rgba(255,255,255,0.5); }
.filter-btn { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.filter-btn:hover { color: #fff; }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }

/* ── Calculator ── */
.calc-step { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); box-shadow: none; }
.step-title { color: #fff; }
.size-card, .extra-card { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.12); }
.size-card strong, .extra-card strong { color: #fff; }
.size-card span, .extra-card span { color: rgba(255,255,255,0.55); }
.size-opt input:checked + .size-card,
.extra-opt input:checked + .extra-card { background: rgba(232,96,28,0.16); border-color: var(--accent); }
.size-opt:hover .size-card { border-color: rgba(255,255,255,0.3); }
.form-group label { color: rgba(255,255,255,0.75); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group select option { color: #111; }
.result-card, .result-success { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.1); }

/* ── Testimonials ── */
.testi-quote { color: #fff; }
.testi-author strong { color: #fff; }
.testi-author span { color: rgba(255,255,255,0.55); }
.testi-avatar { background: rgba(255,255,255,0.14); color: #fff; }
.testi-dot { background: rgba(255,255,255,0.25); }
.testi-dot.active { background: var(--accent); }

/* ── FAQ ── */
.faq-item { background: rgba(255,255,255,0.045); border: 1.5px solid rgba(255,255,255,0.09); }
.faq-item[open] { border-color: var(--accent); box-shadow: none; }
.faq-item summary { color: #fff; }
.faq-answer p { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════════
   MODEL CARD — uniform layout across all cards
   Equal-height bodies, aligned specs/price, and a
   consistent full-width CTA anchored to the bottom.
   ══════════════════════════════════════════════ */
.model-card { display: flex; flex-direction: column; }
.model-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.model-body > p { min-height: 5.2rem; }      /* reserve up to ~4 lines so specs align */
.model-specs { margin-bottom: 1.2rem; }
.model-price {
  min-height: 2.4rem;
  display: flex;
  align-items: baseline;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.model-body .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;            /* pin CTA to the bottom of every card */
}

@media (max-width: 768px) {
  .model-body > p { min-height: 0; }   /* single column — no need to reserve */
}

/* ── Uniform house thumbnails (override per-model sizing) ── */
.model-house-s::before, .model-house-m::before, .model-house-l::before,
.model-house-xl::before, .model-house-xxl::before {
  width: 124px; height: 62px;
}
.model-house-s::after, .model-house-m::after, .model-house-l::after,
.model-house-xl::after, .model-house-xxl::after {
  border-width: 0 78px 54px 78px;
  margin-bottom: 62px;
}

/* ── Top nav scrim — clean surface behind the menu before scroll ── */
#nav::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 200%;
  background: linear-gradient(to bottom,
    rgba(8,18,33,0.92) 0%,
    rgba(8,18,33,0.55) 45%,
    rgba(8,18,33,0) 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s;
}
#nav.scrolled::before { opacity: 0; }   /* scrolled state has its own solid bg */

/* ══════════════════════════════════════════════
   FOOTER — aligned to the dark design language
   Translucent glass panel, accent hairline, and the
   same orange underline-on-hover used in the top nav.
   ══════════════════════════════════════════════ */
#footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  position: relative;
  backdrop-filter: blur(6px);
}
#footer::before {                      /* accent hairline, echoes the nav scrim */
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(232,96,28,0.5) 50%, transparent 92%);
}

.footer-brand > p { color: rgba(255,255,255,0.55); }

/* Section-style heading treatment (matches .section-tag chips) */
.footer-links h4, .footer-contact h4 { color: #fff; }

/* Links — orange underline-on-hover, same motif as nav links */
.footer-links a {
  position: relative;
  width: fit-content;
  color: rgba(255,255,255,0.6);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.footer-links a:hover { color: var(--accent-lt); }
.footer-links a:hover::after { transform: scaleX(1); }

/* Social — glass tiles consistent with cards */
.footer-social a {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.footer-social a:hover {
  background: rgba(232,96,28,0.12);
  border-color: var(--accent);
  color: var(--accent-lt);
  transform: translateY(-2px);
}

/* Contact — accent-tinted icons */
.footer-contact li { color: rgba(255,255,255,0.6); }
.footer-contact svg { color: var(--accent); opacity: 0.85; }

/* Bottom bar */
.footer-bottom { border-top-color: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--accent-lt); }

/* ── Custom-styled select to match the glass inputs ── */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  color: rgba(255,255,255,0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}
.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23e8601c' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
.form-group select option { background: #102a4d; color: #fff; }

/* Select placeholder ("Válasszon...") matches the muted input placeholders;
   becomes full white once a real option is selected. */
.form-group select { color: #fff; }
.form-group select:has(option[value=""]:checked) { color: rgba(255,255,255,0.4); }
.form-group select option[value=""] { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════════
   BACK-TO-TOP — glass button + scroll-progress ring
   ══════════════════════════════════════════════ */
.to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(13,32,58,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  z-index: 950;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(232,96,28,0.45);
}
.tt-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.tt-track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 2.5; }
.tt-prog {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 0.1s linear;
}
.tt-arrow { position: relative; transition: color 0.2s; }
.to-top:hover .tt-arrow { color: var(--accent-lt); }

@media (max-width: 768px) {
  .to-top { bottom: 18px; right: 18px; width: 46px; height: 46px; }
}

/* ══════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ══════════════════════════════════════════════ */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ══════════════════════════════════════════════
   LIGHT THEME  (activated by html[data-theme="light"])
   ══════════════════════════════════════════════ */
[data-theme="light"] body { background: #eef2f7; color: #26303f; }

[data-theme="light"] .site-bg {
  background: radial-gradient(120% 80% at 50% -10%, #ffffff 0%, #eef2f7 52%, #e2e8f1 100%);
}
[data-theme="light"] .site-bg-grid {
  background-image:
    linear-gradient(rgba(11,31,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,0.05) 1px, transparent 1px);
}
[data-theme="light"] .site-orb { opacity: 0.10; }
[data-theme="light"] .site-orb2 { background: #3b82f6; }

/* Nav */
[data-theme="light"] #nav.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 1px 20px rgba(11,31,58,0.08); }
[data-theme="light"] #nav::before { background: linear-gradient(to bottom, rgba(247,249,252,0.95) 0%, rgba(247,249,252,0.5) 45%, rgba(247,249,252,0) 100%); }
[data-theme="light"] .nav-logo { color: var(--primary); }
[data-theme="light"] .nav-links a { color: rgba(11,31,58,0.7); }
[data-theme="light"] .nav-links a:hover { color: var(--primary); }
[data-theme="light"] .burger span { background: var(--primary); }
[data-theme="light"] .mobile-menu { background: #fff; }
[data-theme="light"] .mobile-menu a { color: rgba(11,31,58,0.8); border-bottom-color: rgba(11,31,58,0.08); }
[data-theme="light"] .theme-toggle { background: rgba(11,31,58,0.05); border-color: rgba(11,31,58,0.14); color: var(--primary); }
[data-theme="light"] .theme-toggle:hover { background: rgba(11,31,58,0.1); }

/* Hero */
[data-theme="light"] .hero-title { color: var(--primary); }
[data-theme="light"] .hero-title em { color: rgba(11,31,58,0.55); }
[data-theme="light"] .hero-sub { color: #5a6678; }
[data-theme="light"] .hero-badge { color: var(--accent); background: rgba(232,96,28,0.1); border-color: rgba(232,96,28,0.3); }
[data-theme="light"] .stat-num { color: var(--primary); }
[data-theme="light"] .stat-label { color: #7a8696; }
[data-theme="light"] .stat-divider { background: rgba(11,31,58,0.12); }
[data-theme="light"] .float-label { background: rgba(255,255,255,0.85); border-color: rgba(11,31,58,0.1); color: var(--primary); }
[data-theme="light"] .float-label span { color: #5a6678; }
[data-theme="light"] .scroll-hint { color: rgba(11,31,58,0.4); }
[data-theme="light"] .scroll-line { background: linear-gradient(to bottom, rgba(11,31,58,0.4), transparent); }

/* Section headers */
[data-theme="light"] .section-header h2 { color: var(--primary); }
[data-theme="light"] .section-header p { color: #5a6678; }

/* Buttons */
[data-theme="light"] .btn-ghost { background: rgba(11,31,58,0.06); color: var(--primary); border-color: rgba(11,31,58,0.15); }
[data-theme="light"] .btn-ghost:hover { background: rgba(11,31,58,0.1); }
[data-theme="light"] .btn-outline { color: var(--primary); border-color: var(--primary); }
[data-theme="light"] .btn-outline:hover { background: var(--primary); color: #fff; }

/* Technology */
[data-theme="light"] .panel-diagram { background: #fff; border-color: #e4e8ef; box-shadow: 0 4px 32px rgba(11,31,58,0.08); }
[data-theme="light"] .panel-total { color: #5a6678; border-top-color: #eef0f4; }
[data-theme="light"] .tf-content h3 { color: var(--primary); }
[data-theme="light"] .tf-content p { color: #5a6678; }
[data-theme="light"] .tech-comparison h3 { color: var(--primary); }
[data-theme="light"] .comparison-table { background: #fff; border-color: #e4e8ef; box-shadow: 0 4px 32px rgba(11,31,58,0.08); }
[data-theme="light"] .ct-row { border-bottom-color: #eef0f4; }
[data-theme="light"] .ct-row:hover { background: #f6f8fb; }
[data-theme="light"] .ct-row > div:nth-child(1) { color: var(--gray-700); }
[data-theme="light"] .ct-row > div:nth-child(3),
[data-theme="light"] .ct-row > div:nth-child(4) { color: var(--gray-500); }
[data-theme="light"] .ct-sip { background: rgba(34,197,94,0.06); }
[data-theme="light"] .ct-sip.green { color: #15803d; }

/* Models */
[data-theme="light"] .model-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .model-body h3 { color: var(--primary); }
[data-theme="light"] .model-body > p { color: #5a6678; }
[data-theme="light"] .model-specs li { border-bottom-color: #eef0f4; }
[data-theme="light"] .model-specs span { color: #5a6678; }
[data-theme="light"] .model-specs strong { color: var(--primary); }
[data-theme="light"] .price-num { color: var(--primary); }
[data-theme="light"] .price-from, [data-theme="light"] .price-unit { color: #7a8696; }
[data-theme="light"] .filter-btn { background: #eef1f5; color: #5a6678; }
[data-theme="light"] .filter-btn:hover { color: var(--primary); }
[data-theme="light"] .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Process timeline */
[data-theme="light"] #process .section-header h2 { color: var(--primary); }
[data-theme="light"] #process .section-header p { color: #5a6678; }
[data-theme="light"] .timeline-track { background: rgba(11,31,58,0.1); }
[data-theme="light"] .ts-marker { background: #fff; border-color: rgba(11,31,58,0.15); }
[data-theme="light"] .ts-marker span { color: #9aa4b2; }
[data-theme="light"] .timeline-step.visible .ts-marker { background: var(--accent); border-color: rgba(232,96,28,0.35); }
[data-theme="light"] .timeline-step.visible .ts-marker span { color: #fff; }
[data-theme="light"] .ts-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .ts-card:hover { background: #f6f8fb; border-color: rgba(232,96,28,0.3); }
[data-theme="light"] .ts-card h3 { color: var(--primary); }
[data-theme="light"] .ts-card p { color: #5a6678; }

/* Calculator */
[data-theme="light"] .calc-step { background: #fff; border-color: #e6e9ef; box-shadow: 0 2px 20px rgba(11,31,58,0.06); }
[data-theme="light"] .step-title { color: var(--primary); }
[data-theme="light"] .size-card, [data-theme="light"] .extra-card { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .size-card strong, [data-theme="light"] .extra-card strong { color: var(--primary); }
[data-theme="light"] .size-card span, [data-theme="light"] .extra-card span { color: #5a6678; }
[data-theme="light"] .size-opt input:checked + .size-card,
[data-theme="light"] .extra-opt input:checked + .extra-card { background: rgba(232,96,28,0.05); border-color: var(--accent); }
[data-theme="light"] .size-opt:hover .size-card { border-color: #cdd3dc; }
[data-theme="light"] .form-group label { color: var(--gray-700); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea { background: #fff; border-color: #d1d5db; color: var(--primary); }
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #9aa4b2; }
[data-theme="light"] .form-group select { color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230b1f3a' stroke-width='2' stroke-opacity='0.55'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }
[data-theme="light"] .form-group select:has(option[value=""]:checked) { color: #9aa4b2; }
[data-theme="light"] .form-group select option { background: #fff; color: #111; }
[data-theme="light"] .result-card, [data-theme="light"] .result-success { background: var(--primary); border: none; }

/* Testimonials */
[data-theme="light"] .testi-quote { color: var(--primary); }
[data-theme="light"] .testi-author strong { color: var(--primary); }
[data-theme="light"] .testi-author span { color: #5a6678; }
[data-theme="light"] .testi-avatar { background: var(--primary); color: #fff; }
[data-theme="light"] .testi-dot { background: #cdd3dc; }
[data-theme="light"] .testi-dot.active { background: var(--accent); }

/* FAQ */
[data-theme="light"] .faq-item { background: #fff; border-color: #e6e9ef; }
[data-theme="light"] .faq-item[open] { border-color: var(--accent); box-shadow: 0 8px 30px rgba(11,31,58,0.07); }
[data-theme="light"] .faq-item summary { color: var(--primary); }
[data-theme="light"] .faq-answer p { color: #5a6678; }

/* Footer */
[data-theme="light"] #footer { background: rgba(11,31,58,0.02); border-top-color: #e6e9ef; color: #5a6678; }
[data-theme="light"] #footer::before { background: linear-gradient(90deg, transparent 8%, rgba(232,96,28,0.45) 50%, transparent 92%); }
[data-theme="light"] .footer-brand .nav-logo { color: var(--primary); }
[data-theme="light"] .footer-brand > p { color: #5a6678; }
[data-theme="light"] .footer-links h4, [data-theme="light"] .footer-contact h4 { color: var(--primary); }
[data-theme="light"] .footer-links a { color: #5a6678; }
[data-theme="light"] .footer-links a:hover { color: var(--accent); }
[data-theme="light"] .footer-social a { background: rgba(11,31,58,0.04); border-color: rgba(11,31,58,0.12); color: #5a6678; }
[data-theme="light"] .footer-social a:hover { color: var(--accent); border-color: var(--accent); background: rgba(232,96,28,0.1); }
[data-theme="light"] .footer-contact li { color: #5a6678; }
[data-theme="light"] .footer-contact svg { color: var(--accent); }
[data-theme="light"] .footer-bottom { border-top-color: #e6e9ef; color: #7a8696; }
[data-theme="light"] .footer-bottom-links a:hover { color: var(--accent); }

/* Back-to-top */
[data-theme="light"] .to-top { background: #fff; border-color: #e0e4ea; color: var(--primary); box-shadow: 0 10px 30px rgba(11,31,58,0.15); }
[data-theme="light"] .to-top:hover { background: var(--accent); border-color: var(--accent); }
[data-theme="light"] .tt-track { stroke: rgba(11,31,58,0.12); }
[data-theme="light"] .to-top .tt-arrow { color: var(--primary); }
[data-theme="light"] .to-top:hover .tt-arrow { color: #fff; }

@media (max-width: 768px) {
  .theme-toggle { margin-left: auto; }
}

/* ══════════════════════════════════════════════
   HERO HOUSE — "build from blocks" assembly animation
   Walls rise → windows/door pop in → roof drops on top
   → SIP panel lines fade in. Replays when hero re-enters.
   (transform-only where possible to preserve SVG fills)
   ══════════════════════════════════════════════ */
@keyframes hFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hPop  { 0% { transform: scale(0); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes hRoof { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hLine { from { opacity: 0; } to { opacity: 0.35; } }

.house-svg.build .h-shadow { animation: hFade 0.4s ease both 0.1s; }
.house-svg.build .h-body {
  transform-box: fill-box; transform-origin: center bottom;
  animation: hRise 0.6s var(--ease-out) both 0.2s;
}
.house-svg.build .h-panel {
  transform-box: fill-box; transform-origin: center bottom;
  animation: hRise 0.5s var(--ease-out) both;   /* per-panel delay set inline */
}
.house-svg.build .h-win {
  transform-box: fill-box; transform-origin: center;
  animation: hPop 0.45s var(--ease-spring) both;   /* per-window delay set inline */
}
.house-svg.build .h-door {
  transform-box: fill-box; transform-origin: center bottom;
  animation: hPop 0.45s var(--ease-spring) both 1.50s;
}
.house-svg.build .h-knob {
  transform-box: fill-box; transform-origin: center;
  animation: hPop 0.4s var(--ease-spring) both 1.62s;
}
.house-svg.build .h-roof {
  transform-box: fill-box; transform-origin: center top;
  animation: hRoof 0.6s var(--ease-out) both 1.55s;
}
.house-svg.build .h-line { animation: hLine 0.5s ease both; }  /* per-line delay set inline */

@media (prefers-reduced-motion: reduce) {
  .house-svg.build .h-shadow,
  .house-svg.build .h-body,
  .house-svg.build .h-panel,
  .house-svg.build .h-win,
  .house-svg.build .h-door,
  .house-svg.build .h-knob,
  .house-svg.build .h-roof,
  .house-svg.build .h-line { animation: none !important; }
}

/* ── Light theme: frosted (translucent white) surfaces ── */
[data-theme="light"] .panel-diagram,
[data-theme="light"] .comparison-table,
[data-theme="light"] .model-card,
[data-theme="light"] .calc-step,
[data-theme="light"] .ts-card,
[data-theme="light"] .faq-item {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(11,31,58,0.06);
}
[data-theme="light"] .size-card,
[data-theme="light"] .extra-card {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.65);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.7);
}
[data-theme="light"] .float-label {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .ct-row:hover { background: rgba(255,255,255,0.45); }
[data-theme="light"] .ts-card:hover { background: rgba(255,255,255,0.75); }

/* ── Light theme: frosted result card (calculator) ── */
[data-theme="light"] .result-card,
[data-theme="light"] .result-success {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 30px rgba(11,31,58,0.08);
}
[data-theme="light"] .result-header { color: #5a6678; }
[data-theme="light"] .result-tag { background: rgba(34,197,94,0.14); color: #15803d; }
[data-theme="light"] #resultPrice { color: var(--primary); }
[data-theme="light"] .result-unit { color: #7a8696; }
[data-theme="light"] .result-note { color: #5a6678; }
[data-theme="light"] .result-breakdown { background: rgba(11,31,58,0.04); }
[data-theme="light"] .rb-row { color: #5a6678; }
[data-theme="light"] .rb-row span:last-child { color: var(--primary); }
[data-theme="light"] .result-monthly { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); }
[data-theme="light"] .rm-label { color: #5a6678; }
[data-theme="light"] .rm-value { color: #15803d; }
[data-theme="light"] .result-disclaimer { color: #9aa4b2; }
[data-theme="light"] .result-success h3 { color: var(--primary); }
[data-theme="light"] .result-success p { color: #5a6678; }

/* ── Light theme: comparison table header ── */
[data-theme="light"] .ct-head {
  background: rgba(11,31,58,0.05);
  color: #5a6678;
  border-bottom: 1px solid rgba(11,31,58,0.08);
}
[data-theme="light"] .ct-head > div { border-right-color: rgba(11,31,58,0.06); }
[data-theme="light"] .ct-head .ct-sip { background: rgba(232,96,28,0.1); color: var(--accent); }

/* ── Extra option cards: uniform height + aligned prices ── */
.extra-card { min-height: 66px; }
.extra-card strong { line-height: 1.25; }
.extra-card span {
  white-space: nowrap;
  margin-left: auto;
  padding-left: 0.6rem;
  text-align: right;
}
