/* ═══════════════════════════════════════════
   ASTERION ENERGY - Global Stylesheet
   Inspired by Tesla Powerwall
   ═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --carbon: #111111;
  --charcoal: #1a1a1a;
  --steel: #5c5c5c;
  --silver: #9a9a9a;
  --light: #d4d4d4;
  --white: #ffffff;
  --lime: #bed533;
  --lime-hover: #d4ea45;
  --lime-dim: rgba(190, 213, 51, 0.6);
  --navy: #1d2b3b;
  --navy-mid: #274c63;
  --steel-blue: #7c95a5;
  --orange: #ec5e1e;
  --text-dark: #171a20;
  --text-dark-secondary: rgba(23, 26, 32, 0.7);
  --text-dark-tertiary: rgba(23, 26, 32, 0.5);
  --text-light: rgba(255, 255, 255, 0.7);
  --text-light-secondary: rgba(255, 255, 255, 0.5);
  --text-light-tertiary: rgba(255, 255, 255, 0.3);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(23, 26, 32, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: transparent;
  transition: all 0.3s;
}

.nav--solid {
  background: rgba(0, 0, 0, 0.92);
}

.nav--light {
  background: rgba(255, 255, 255, 0.72);
}

.nav--light .nav__logo,
.nav--light .nav__links a,
.nav--light .hamburger svg {
  color: var(--text-dark);
  fill: var(--text-dark);
}

.nav--light .nav__logo span {
  color: var(--text-dark-tertiary);
}

.nav__logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.nav__logo span {
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 5px;
  display: block;
  color: var(--text-light-secondary);
  margin-top: -1px;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav__links a:hover {
  opacity: 0.7;
}

.nav__cta {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav--light .nav__cta {
  background: rgba(23, 26, 32, 0.08);
  color: var(--text-dark);
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
}

/* ═══════════════════════════════════════════
   BUTTONS (Tesla style)
   ═══════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 10px 56px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--white {
  background: var(--white);
  color: var(--text-dark);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.85);
}

.btn--dark {
  background: var(--text-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--black);
}

.btn--lime {
  background: var(--lime);
  color: var(--text-dark);
}

.btn--lime:hover {
  background: var(--lime-hover);
}

.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.btn--ghost-white:hover {
  border-color: var(--white);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--text-dark);
  border: 3px solid var(--border-dark);
}

.btn--ghost-dark:hover {
  border-color: var(--text-dark);
}

.btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   FULL-BLEED SECTIONS (Tesla Powerwall)
   ═══════════════════════════════════════════ */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section--auto {
  min-height: auto;
}

.section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Top content area */
.section__top {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 40px 32px;
  flex-shrink: 0;
}

.section__category {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-light-secondary);
  margin-bottom: 4px;
}

.section__category--dark {
  color: var(--text-dark-tertiary);
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}

.section__title--dark {
  color: var(--text-dark);
}

.section__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 24px;
}

.section__desc--dark {
  color: var(--text-dark-secondary);
}

/* Bottom features area */
.section__bottom {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 40px 48px;
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.feature {
  flex: 1;
  text-align: center;
  max-width: 280px;
}

.feature__stat {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.feature__stat--dark {
  color: var(--text-dark);
}

.feature__label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light-secondary);
  line-height: 1.5;
}

.feature__label--dark {
  color: var(--text-dark-tertiary);
}

/* ═══════════════════════════════════════════
   BACKGROUNDS
   ═══════════════════════════════════════════ */
.bg-black {
  background: var(--black);
}

.bg-white {
  background: var(--white);
}

.bg-offwhite {
  background: #f4f4f4;
}

.bg-gradient-1 {
  background: linear-gradient(180deg, #000 0%, #0c1219 40%, #0a0f14 60%, #000 100%);
}

.bg-gradient-1::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(190, 213, 51, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.bg-gradient-2 {
  background: linear-gradient(180deg, #000 0%, #0a1520 50%, #000 100%);
}

.bg-gradient-2::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 10%;
  width: 50vw;
  height: 50vh;
  max-width: 500px;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(190, 213, 51, 0.02) 0deg, transparent 60deg,
    rgba(190, 213, 51, 0.015) 120deg, transparent 180deg,
    rgba(190, 213, 51, 0.02) 240deg, transparent 300deg,
    rgba(190, 213, 51, 0.015) 360deg
  );
  border-radius: 50%;
  animation: slowSpin 50s linear infinite;
}

.bg-gradient-3 {
  background: linear-gradient(135deg, #000 0%, #0d1117 50%, #000 100%);
}

.bg-gradient-3::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 5%;
  width: 90vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 213, 51, 0.1), transparent);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  justify-content: center;
}

.hero .section__top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero__logo img {
  width: clamp(240px, 40vw, 440px);
}

.hero__tagline {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light-secondary);
  letter-spacing: 2px;
  margin: 8px 0 32px;
}

/* Solar grid visual */
.solar-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 600px);
  height: min(50vh, 400px);
  z-index: 1;
  opacity: 0.08;
}

.solar-grid__line-h,
.solar-grid__line-v {
  position: absolute;
}

.solar-grid__line-h {
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 20%, var(--lime) 80%, transparent 100%);
}

.solar-grid__line-v {
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--lime) 20%, var(--lime) 80%, transparent 100%);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 2s ease-in-out infinite;
}

.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--silver), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   SPECS SECTION (split layout)
   ═══════════════════════════════════════════ */
.specs {
  display: flex;
  min-height: 100vh;
}

.specs__visual {
  flex: 1;
  min-height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.specs__visual-inner {
  width: min(80%, 400px);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(190, 213, 51, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.specs__visual-inner::before {
  content: '';
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(190, 213, 51, 0.05);
  border-radius: 8px;
}

.specs__content {
  flex: 1;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  color: var(--text-dark);
}

.specs__content .section__category,
.specs__content .section__title {
  text-align: left;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 40px;
}

.spec-item {
  padding: 24px 0;
  border-top: 1px solid var(--border-dark);
}

.spec-item:nth-child(odd) {
  padding-right: 32px;
}

.spec-item:nth-child(even) {
  padding-left: 32px;
}

.spec-item__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.spec-item__value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PROCESS STEPS
   ═══════════════════════════════════════════ */
.process-grid {
  display: flex;
  justify-content: center;
  gap: 1px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  background: rgba(23, 26, 32, 0.06);
}

.process-step {
  flex: 1;
  min-width: 200px;
  background: var(--white);
  padding: 40px 32px;
  text-align: center;
}

.process-step__num {
  font-size: 48px;
  font-weight: 300;
  color: rgba(190, 213, 51, 0.25);
  margin-bottom: 12px;
  line-height: 1;
}

.process-step__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.process-step__desc {
  font-size: 13px;
  color: var(--text-dark-tertiary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA / CONTACT SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  background: var(--black);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(190, 213, 51, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.cta-section__desc {
  font-size: 16px;
  color: var(--text-light-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  position: relative;
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-inline {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.form-inline input,
.form-inline textarea,
.form-inline select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-inline input:focus,
.form-inline textarea:focus,
.form-inline select:focus {
  border-color: rgba(190, 213, 51, 0.5);
}

.form-inline input::placeholder,
.form-inline textarea::placeholder {
  color: var(--text-light-tertiary);
}

.form-inline textarea {
  resize: none;
  min-height: 80px;
}

/* Light form variant */
.form-inline--light input,
.form-inline--light textarea,
.form-inline--light select {
  background: rgba(23, 26, 32, 0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-dark);
}

.form-inline--light input::placeholder,
.form-inline--light textarea::placeholder {
  color: var(--text-dark-tertiary);
}

.form-inline--light input:focus,
.form-inline--light textarea:focus {
  border-color: var(--lime);
}

/* Contact meta */
.contact-meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
  position: relative;
}

.contact-meta__item {
  text-align: center;
}

.contact-meta__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light-tertiary);
  margin-bottom: 4px;
}

.contact-meta__value {
  font-size: 14px;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   CONTENT SECTIONS (About, Services pages)
   ═══════════════════════════════════════════ */
.content-section {
  padding: 100px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.content-section--centered {
  text-align: center;
}

.content-section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 24px;
}

.content-section__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark-secondary);
  max-width: 700px;
}

.content-section--centered .content-section__text {
  margin: 0 auto;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 40px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black);
  border-top: 1px solid var(--border-light);
}

.footer__copy {
  font-size: 12px;
  color: var(--text-light-tertiary);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 12px;
  color: var(--text-light-tertiary);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--text-light-secondary);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--white); }
.text-dark { color: var(--text-dark); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.max-w-1000 { max-width: 1000px; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .specs { flex-direction: column; }
  .specs__visual { min-height: 50vh; }
  .specs__content { padding: 48px 24px; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-item:nth-child(odd) { padding-right: 0; }
  .spec-item:nth-child(even) { padding-left: 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .hamburger { display: block; }

  .section__top { padding: 100px 24px 24px; }
  .section__bottom { padding: 0 24px 40px; }
  .features-row { flex-direction: column; gap: 24px; align-items: center; }
  .feature { max-width: 100%; }

  .content-section { padding: 60px 24px; }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .process-grid { flex-direction: column; }
}
