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

:root {
  --bg: #0a0c0f;
  --bg2: #111418;
  --bg3: #181d24;
  --accent: #f5a623;
  --accent2: #ff6b35;
  --text: #e8eaed;
  --text-muted: #8a9bb0;
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --glow: rgba(245,166,35,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #0a0c0f;
  padding: 0.55rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; }

/* HERO */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 4rem;
  overflow: hidden;
  gap: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 65% 40%, rgba(245,166,35,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255,107,53,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0c0f;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Syne', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Syne', sans-serif;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.solar-panel-graphic {
  position: relative;
  width: 340px;
  height: 260px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  height: 100%;
  transform: perspective(600px) rotateX(10deg) rotateY(-8deg);
}

.panel-cell {
  background: linear-gradient(135deg, #1a2535 0%, #0d1520 50%, #1a2535 100%);
  border-radius: 4px;
  border: 1px solid rgba(100,150,200,0.15);
  position: relative;
  overflow: hidden;
  animation: panel-shimmer 3s ease-in-out infinite;
}
.panel-cell:nth-child(odd) { animation-delay: 0.5s; }
.panel-cell:nth-child(3n) { animation-delay: 1s; }

.panel-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,166,35,0.06) 0%, transparent 60%);
}

@keyframes panel-shimmer {
  0%, 100% { border-color: rgba(100,150,200,0.15); }
  50% { border-color: rgba(245,166,35,0.25); }
}

.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 2.5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
}

/* SECTIONS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.features, .how-it-works, .contact {
  padding: 6rem 0;
}

.features { background: var(--bg2); }
.how-it-works { background: var(--bg); }
.contact { background: var(--bg2); }

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(245,166,35,0.1);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* HOW IT WORKS */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(245,166,35,0.15);
  line-height: 1;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.step-arrow {
  font-size: 2rem;
  color: var(--accent);
  margin-top: 2rem;
  opacity: 0.5;
}

/* CONTACT */
.contact h2 + p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  margin-top: -2rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(245,166,35,0.4); }
.contact-form textarea { resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form .btn-primary { align-self: flex-start; }

/* EMBEDDED FORM */
.embed-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.embed-form-scroll {
  max-height: 480px;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--card-bg);
}
.embed-form-scroll::-webkit-scrollbar { width: 6px; }
.embed-form-scroll::-webkit-scrollbar-track { background: var(--card-bg); }
.embed-form-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.scroll-form-btn {
  display: block;
  width: 100%;
  background: rgba(245,166,35,0.08);
  border: none;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.7rem;
  cursor: pointer;
  transition: background 0.15s;
}
.scroll-form-btn:hover { background: rgba(245,166,35,0.15); }

/* FOOTER */
.footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}
.footer-brand .logo {
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.65;
}
.footer-links h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 4rem;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { flex-direction: column; padding: 4rem 1.5rem; }
  .hero-visual { display: none; }
  .container { padding: 0 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { padding: 1.5rem; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
}
