/* HORIZON landing page styles — owns all visual presentation for /. */

/* ── Design tokens (dark theme, professional solar energy) */
:root {
  --bg:          #0c0f14;
  --bg-card:     #151920;
  --bg-elevated: #1c2028;
  --border:      #252a33;
  --text:        #d4d8e0;
  --text-muted:  #7c8494;
  --text-heading:#f0f2f6;
  --accent:      #3b82f6;
  --accent-hover:#2563eb;
  --accent-glow: rgba(59,130,246,0.12);
  --green:       #22c55e;
  --amber:       #f59e0b;
  --amber-bg:    rgba(245,158,11,0.08);
  --font-display:'Instrument Serif', Georgia, serif;
  --font-body:   'Satoshi', -apple-system, sans-serif;
  --radius:      12px;
  --max-w:       1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,15,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.nav-brand {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--text-heading); text-decoration: none; letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-heading); }
.nav-cta {
  padding: 8px 20px;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (max-width: 700px) {
  .nav-links { display: none; }
}

/* ── Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 90px;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-content {}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow); border: 1px solid rgba(59,130,246,0.3);
  border-radius: 999px; padding: 5px 14px 5px 10px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--text-heading); line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-muted); margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 28px; background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  padding: 13px 28px; background: transparent;
  border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: border-color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-glow); }

.hero-image-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16/10; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-image-label {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(12,15,20,0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 14px;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; aspect-ratio: 16/8; }
  .hero { padding: 48px 16px 64px; }
}

/* ── APER callout band */
.aper-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--amber-bg);
  padding: 28px 24px;
}
.aper-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.aper-icon {
  font-size: 2.2rem; line-height: 1; flex-shrink: 0;
}
.aper-content { flex: 1; min-width: 280px; }
.aper-title {
  font-size: 0.75rem; font-weight: 700; color: var(--amber);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.aper-text {
  font-size: 0.95rem; color: var(--text); line-height: 1.5;
}
.aper-text strong { color: var(--text-heading); }
.aper-cta {
  padding: 10px 22px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  border: 1px solid var(--amber); color: var(--amber);
  transition: background 0.2s;
}
.aper-cta:hover { background: rgba(245,158,11,0.1); }

/* ── Value props */
.section { padding: 80px 24px; max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-heading); letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 48px;
}
.vp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.vp-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.vp-card:hover { border-color: rgba(59,130,246,0.5); transform: translateY(-2px); }
.vp-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-glow); border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.vp-title {
  font-family: var(--font-display); font-size: 1.2rem;
  color: var(--text-heading); margin-bottom: 10px;
}
.vp-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.vp-tag {
  display: inline-block; margin-top: 16px; padding: 4px 10px;
  border-radius: 6px; font-size: 0.72rem; font-weight: 600;
  background: rgba(34,197,94,0.1); color: var(--green);
  border: 1px solid rgba(34,197,94,0.2);
}

/* ── How it works */
.how-section { background: var(--bg); border-top: 1px solid var(--border); }
.how-inner { max-width: var(--max-w); margin: 0 auto; padding: 80px 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 1.2rem;
  margin-bottom: 16px; border: 2px solid rgba(59,130,246,0.3);
}
.step-title {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--text-heading); margin-bottom: 8px;
}
.step-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.step-connector {
  display: none; /* No connectors on mobile */
}

/* ── Simulator teaser */
.sim-teaser {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  max-width: var(--max-w); margin: 0 auto 80px;
}
.sim-teaser-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; min-height: 380px;
}
.sim-teaser-visual {
  background: linear-gradient(135deg, #0c1a2e 0%, #0f2040 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; position: relative; overflow: hidden;
}
.sim-teaser-visual::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(12,15,20,0.5) 0%, transparent 100%);
}
.kpi-row { display: flex; gap: 20px; margin-bottom: 24px; width: 100%; justify-content: center; flex-wrap: wrap; }
.kpi-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 20px 24px; text-align: center; min-width: 120px;
}
.kpi-box-value {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--green);
  line-height: 1.1; margin-bottom: 4px;
}
.kpi-box-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.sim-teaser-visual-text {
  color: rgba(255,255,255,0.6); font-size: 0.88rem; text-align: center;
  position: relative; z-index: 1;
}
.sim-teaser-content {
  padding: 48px; display: flex; flex-direction: column; justify-content: center;
}
.sim-teaser-title {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--text-heading); margin-bottom: 16px;
}
.sim-teaser-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.sim-teaser-features { list-style: none; margin-bottom: 32px; }
.sim-teaser-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text); margin-bottom: 10px;
}
.sim-teaser-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 800px) {
  .sim-teaser-inner { grid-template-columns: 1fr; }
  .sim-teaser-visual { min-height: 240px; }
  .sim-teaser-content { padding: 32px 24px; }
}

/* ── Contact / Lead form */
.contact-section {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 80px 24px;
}
.contact-inner {
  max-width: 680px; margin: 0 auto;
  text-align: center;
}
.contact-form {
  margin-top: 40px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { cursor: pointer; }
.form-submit {
  width: 100%; padding: 14px; background: var(--accent);
  color: #fff; border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--accent-hover); }
.form-submit:active { transform: scale(0.99); }
.form-success {
  display: none; text-align: center; padding: 48px 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-success.show { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success-title {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--text-heading); margin-bottom: 8px;
}
.form-success p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-display); font-size: 1rem; color: var(--text-heading); }
.footer-brand span { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }