/* ─────────────────────────────────────────────────────────────
   WLTD Landing Page — Dark Industrial Theme
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #161616;
  --border:    rgba(255,255,255,0.08);
  --accent:    #e8ff47;      /* terminal-industries yellow-green */
  --accent2:   #5affb0;      /* secondary teal */
  --text:      #f0f0f0;
  --muted:     #777;
  --font:      'Inter', sans-serif;
  --r:         6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: none;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-sm   { padding: 8px 18px; font-size: 0.8rem; }
.btn-primary { background: var(--accent); color: #000; }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-full    { width: 100%; justify-content: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-right: auto;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── SECTION COMMON ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 60px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}
.hero-inner { flex: 1; }
.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,255,71,0.3);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: 1.05rem;
  color: #999;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero visual */
.hero-visual { flex: 1; min-width: 320px; }

.screen-mock {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.screen-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
}
.screen-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #333;
}
.screen-bar span:first-child  { background: #ff5f57; }
.screen-bar span:nth-child(2) { background: #ffbd2e; }
.screen-bar span:nth-child(3) { background: #28ca41; }

.screen-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }

.gauge-row { display: flex; gap: 16px; }
.gauge {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}
.gauge-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.gauge-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.gauge-val span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}
.gauge-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.gauge-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 1s ease;
}
.gauge-fill.warm { background: #ff6b35; }
.gauge-fill.cool { background: var(--accent2); }

.chart-mock {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  height: 90px;
  overflow: hidden;
}
.chart-mock svg { width: 100%; height: 100%; }
.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.chart-line-2 {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 1.5;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.flow-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flow-key {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.flow-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── STATS ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { font-size: 1.2rem; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: 0.82rem; color: var(--muted); }

/* ── FEATURES ── */
.features { background: var(--bg); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 40px;
  transition: background .2s;
}
.feature-card:hover { background: var(--bg3); }
.feature-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feature-bullets li {
  font-size: 0.8rem;
  color: #666;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ── HOW IT WORKS ── */
.how { background: var(--bg2); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  min-width: 32px;
  margin-top: 4px;
}
.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-content p {
  font-size: 0.9rem;
  color: #888;
  max-width: 680px;
  line-height: 1.75;
}

/* ── TESTIMONIAL ── */
.testimonial {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonial .section-inner { padding: 80px 40px; text-align: center; }
.testimonial blockquote p {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 24px;
}
.testimonial cite {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
}

/* ── CONTACT ── */
.contact { background: var(--bg2); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 40px;
}
.contact-steps { display: flex; flex-direction: column; gap: 16px; }
.contact-step {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  gap: 14px;
}
.contact-step span {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  min-width: 24px;
  margin-top: 2px;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(232,255,71,0.4); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #555; }
.contact-form textarea { resize: vertical; }

.form-success {
  display: none;
  text-align: center;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-brand p { font-size: 0.85rem; color: #666; max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-col a { font-size: 0.875rem; color: #666; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.78rem;
  color: #444;
}

/* ── 3D MODEL TRACK ── */
.model-track {
  height: 350vh;
}
.model-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #080808;
}
#model-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}
.model-overlay {
  position: absolute;
  top: 50%;
  left: clamp(40px, 7vw, 110px);
  transform: translateY(-50%);
  z-index: 10;
  max-width: 460px;
  width: 36%;
  min-width: 260px;
}
.model-phase {
  display: none;
}
.model-phase.active {
  display: block;
  animation: phaseIn 0.4s ease forwards;
}
@keyframes phaseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.model-phase .section-tag { margin-bottom: 14px; }
.model-phase h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.model-phase p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.75;
}
.model-progress {
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.model-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  transition: background 0.3s, transform 0.3s;
}
.model-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: auto; padding-top: 120px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .section-inner { padding: 70px 20px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 40px 20px; gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 30px; }
  .model-track { height: 280vh; }
  .model-overlay { left: 20px; width: calc(100% - 40px); max-width: 100%; }
  .model-progress { display: none; }
}
