/* Solar City Landing — palette from app Assets/Colors */

:root {
  --deep-ocean: #0A1628;
  --midnight: #1A2744;
  --surface-dark: #152238;
  --surface-mid: #1E3050;
  --solar-gold: #FFB800;
  --solar-amber: #FF9F1C;
  --panel-teal: #00C896;
  --energy-yellow: #FFE066;
  --sky-blue: #4CC9F0;
  --cloud-white: #F0F4F8;
  --slate-gray: #64748B;
  --steam-mist: #94A3B8;

  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  background: var(--deep-ocean);
  color: var(--cloud-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--sky-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--energy-yellow); }

/* Background — single fixed layer (CoffeeRoastery approach) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("assets/hero-bg.png") center / cover no-repeat,
    linear-gradient(145deg, var(--deep-ocean) 0%, var(--midnight) 45%, var(--surface-dark) 100%);
}

.glow {
  position: fixed;
  z-index: -1;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, transparent 70%);
  animation: float-glow 8s ease-in-out infinite;
  pointer-events: none;
}
.glow-1 { top: 15%; left: 8%; animation-delay: 0s; }
.glow-2 { top: 60%; right: 10%; animation-delay: -3s; width: 160px; height: 160px; }
.glow-3 { bottom: 10%; left: 30%; animation-delay: -5s; width: 90px; height: 90px; }

@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-24px) scale(1.08); opacity: 0.85; }
}

/* Header — sticky, not fixed */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 22, 40, 0.82);
  border-bottom: 1px solid rgba(255, 184, 0, 0.15);
}

.nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cloud-white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-brand img { border-radius: 10px; }
.nav-brand:hover { color: var(--solar-gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--steam-mist);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: rgba(0, 200, 150, 0.15);
  color: var(--cloud-white);
}
.nav-links a.active {
  background: rgba(255, 184, 0, 0.18);
  color: var(--solar-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--solar-gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero / Marketing */
.hero {
  padding: 80px 24px 100px;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--cloud-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--solar-gold), var(--panel-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--steam-mist);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--solar-gold), var(--solar-amber));
  color: var(--deep-ocean);
  box-shadow: 0 8px 28px rgba(255, 184, 0, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(255, 184, 0, 0.5); color: var(--deep-ocean); }

.btn-ghost {
  border: 1.5px solid rgba(0, 200, 150, 0.4);
  color: var(--cloud-white);
  background: rgba(30, 48, 80, 0.5);
}
.btn-ghost:hover { border-color: var(--panel-teal); background: rgba(0, 200, 150, 0.12); color: var(--cloud-white); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(30, 48, 80, 0.65);
  border: 1px solid rgba(255, 184, 0, 0.2);
  min-width: 100px;
}
.stat-chip strong {
  font-size: 1.5rem;
  color: var(--solar-gold);
  line-height: 1.2;
}
.stat-chip span {
  font-size: 0.75rem;
  color: var(--slate-gray);
  font-weight: 600;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 184, 0, 0.16) 0%, transparent 55%),
    rgba(30, 48, 80, 0.7);
  border: 1.5px solid rgba(255, 184, 0, 0.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(240, 244, 248, 0.08);
  animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: var(--shadow), inset 0 1px 0 rgba(240, 244, 248, 0.08); }
  50% { box-shadow: 0 28px 70px rgba(255, 184, 0, 0.2), inset 0 1px 0 rgba(240, 244, 248, 0.12); }
}

.hero-logo {
  width: 55%;
  border-radius: 22%;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  animation: logo-float 3s ease-in-out infinite;
}

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

.hero-orbit { position: absolute; inset: 0; }

.orbit-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(255, 184, 0, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}
.orbit-1 { top: 8%; right: 5%; animation: orbit-bob 3s ease-in-out infinite; }
.orbit-2 { bottom: 12%; left: 0; animation: orbit-bob 3.5s ease-in-out infinite -1s; }
.orbit-3 { bottom: 20%; right: 0; animation: orbit-bob 4s ease-in-out infinite -2s; }

@keyframes orbit-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* Features */
.features {
  padding: 80px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.section-head-left { text-align: left; margin-left: 0; margin-right: 0; }

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--cloud-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--steam-mist);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(30, 48, 80, 0.72);
  border: 1px solid rgba(255, 184, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(240, 244, 248, 0.05);
  transition: transform var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 150, 0.4);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.2);
}
.feature-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--cloud-white);
  margin-bottom: 8px;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--steam-mist);
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  padding: 20px 28px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(255, 184, 0, 0.18);
  max-width: 720px;
  margin: 0 auto 48px;
}
.pipeline span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cloud-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pipe-dot {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--solar-gold), var(--panel-teal));
  border-radius: 2px;
}

.journey-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journey-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(30, 48, 80, 0.65);
  border: 1px solid rgba(255, 184, 0, 0.15);
  transition: transform var(--transition), border-color var(--transition);
}
.journey-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 0, 0.3);
}
.journey-card img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.journey-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--cloud-white);
}
.journey-card p {
  font-size: 0.82rem;
  color: var(--slate-gray);
  line-height: 1.5;
}

/* Privacy */
.legal {
  padding: 80px 24px;
  background: rgba(10, 22, 40, 0.55);
  border-top: 1px solid rgba(255, 184, 0, 0.12);
  border-bottom: 1px solid rgba(255, 184, 0, 0.12);
}

.legal-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.legal-body {
  padding: 36px;
  border-radius: var(--radius);
  background: rgba(30, 48, 80, 0.65);
  border: 1px solid rgba(255, 184, 0, 0.18);
}

.legal-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--solar-gold);
  margin: 28px 0 10px;
}
.legal-body h3:first-of-type { margin-top: 0; }

.legal-body p, .legal-body li {
  font-size: 0.95rem;
  color: var(--steam-mist);
  margin-bottom: 12px;
}
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--cloud-white); }

/* Support */
.support {
  padding: 80px 24px 100px;
}

.support-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 20px;
  margin-top: 40px;
}

.support-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(30, 48, 80, 0.72);
  border: 1px solid rgba(255, 184, 0, 0.18);
}

.support-card-main {
  border-color: rgba(255, 184, 0, 0.35);
  background:
    radial-gradient(ellipse at top right, rgba(255, 184, 0, 0.08) 0%, transparent 60%),
    rgba(30, 48, 80, 0.75);
}

.support-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cloud-white);
  margin-bottom: 12px;
}
.support-card p { color: var(--steam-mist); font-size: 0.92rem; margin-bottom: 12px; }

.support-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--solar-gold);
  margin: 8px 0 16px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.25);
}
.support-email:hover { background: rgba(255, 184, 0, 0.18); color: var(--energy-yellow); }

.support-note { font-size: 0.82rem !important; color: var(--slate-gray) !important; }

.faq-item {
  border-bottom: 1px solid rgba(255, 184, 0, 0.12);
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cloud-white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--solar-gold);
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; font-size: 0.88rem; color: var(--steam-mist); }

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 184, 0, 0.1);
  font-size: 0.88rem;
}
.info-list div:last-child { border-bottom: none; }
.info-list dt { color: var(--slate-gray); font-weight: 500; }
.info-list dd { color: var(--cloud-white); font-weight: 600; text-align: right; }

/* Footer */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 184, 0, 0.12);
  background: rgba(10, 22, 40, 0.9);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cloud-white);
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-brand img { border-radius: 8px; }
.footer-brand:hover { color: var(--solar-gold); }

.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--steam-mist);
  font-weight: 600;
}
.footer-nav a:hover { color: var(--cloud-white); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-gray);
  margin-top: 8px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { width: min(300px, 80vw); }
  .legal-inner { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .journey-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.96);
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: var(--radius);
    padding: 12px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { text-align: center; padding: 12px; }

  .pipeline { border-radius: var(--radius); }
  .legal-body { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
