/* ===================================
   Svitgrid Landing Page Styles
   =================================== */

/* CSS Variables */
:root {
  /* Primary Colors - Amber/Gold Solar Theme */
  --color-primary: #F59E0B;
  --color-primary-light: #FCD34D;
  --color-primary-dark: #D97706;
  --color-primary-darker: #B45309;

  /* Accent - Orange */
  --color-accent: #EA580C;
  --color-accent-light: #FB923C;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  --gradient-hero: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
  --gradient-dark: linear-gradient(180deg, #1F2937 0%, #111827 100%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-primary);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

/* ===================================
   Header / Navigation
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header--scrolled {
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  text-decoration: none;
}

.nav__logo-icon {
  color: var(--color-primary);
}

.nav__links {
  display: none;
  gap: var(--space-xl);
}

.nav__links a {
  color: var(--color-gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__cta {
  display: none;
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--color-white);
  padding-top: 80px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
}

.mobile-menu__link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-800);
  text-decoration: none;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  position: relative;
  padding: 120px 0 var(--space-4xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero__container {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  text-align: center;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.store-badge {
  display: block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge__img {
  height: 44px;
  width: auto;
}

.store-badge--large .store-badge__img {
  height: 56px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hero__scroll:hover {
  color: var(--color-primary);
}

.hero__scroll svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__phone {
  animation: float 6s ease-in-out infinite;
}

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

.hero__phone-frame {
  width: 280px;
  height: 560px;
  background: var(--color-gray-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-white);
  border-radius: 32px;
  padding: var(--space-lg);
  overflow: hidden;
}

.hero__phone-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-top: var(--space-xl);
}

.hero__phone-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.hero__phone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__phone-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
}

.hero__phone-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
}

.hero__phone-stat-icon--sun {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
}

.hero__phone-stat-icon--battery {
  background: linear-gradient(135deg, #34D399, #10B981);
}

.hero__phone-stat-icon--home {
  background: linear-gradient(135deg, #93C5FD, #3B82F6);
}

.hero__phone-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gray-900);
}

.hero__phone-stat-label {
  font-size: 0.625rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero__phone-chart {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  height: 100px;
}

.hero__phone-chart-svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .hero {
    padding: 160px 0 var(--space-4xl);
  }

  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }

  .hero__content {
    text-align: left;
  }

  .hero__subtitle {
    margin: 0 0 var(--space-xl);
  }

  .hero__cta {
    justify-content: flex-start;
  }
}

/* ===================================
   Section Header
   =================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header__title {
  color: var(--color-gray-900);
}

/* ===================================
   Features Section
   =================================== */

.features {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.features__grid {
  display: grid;
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.feature-card__title {
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  color: var(--color-gray-600);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   How It Works Section
   =================================== */

.how-it-works {
  padding: var(--space-4xl) 0;
  background: var(--color-gray-50);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.step__content {
  flex: 1;
}

.step__title {
  margin-bottom: var(--space-xs);
}

.step__desc {
  color: var(--color-gray-600);
  font-size: 0.9375rem;
}

.step__connector {
  width: 2px;
  height: 24px;
  background: var(--color-gray-200);
  margin-left: 47px;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    gap: var(--space-lg);
  }

  .step {
    flex: 1;
    min-width: 200px;
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .step__number {
    margin: 0 auto;
  }

  .step__connector {
    display: none;
  }
}

/* ===================================
   Compatibility Section
   =================================== */

.compatibility {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.compatibility__content {
  text-align: center;
}

.compatibility__brands {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.compatibility__brand {
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-gray-200);
}

.compatibility__brand--coming {
  border-style: dashed;
  color: var(--color-gray-500);
}

.compatibility__brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.compatibility__text {
  color: var(--color-gray-600);
  max-width: 500px;
  margin: 0 auto;
}

/* ===================================
   CTA Section
   =================================== */

.cta {
  padding: var(--space-4xl) 0;
  background: var(--gradient-dark);
}

.cta__content {
  text-align: center;
}

.cta__title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta__subtitle {
  color: var(--color-gray-400);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ===================================
   Footer
   =================================== */

.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-gray-900);
  color: var(--color-gray-400);
}

.footer__grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer__logo-icon {
  color: var(--color-primary);
}

.footer__tagline {
  color: var(--color-gray-500);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
  font-size: 0.875rem;
}

.footer__made {
  color: var(--color-gray-500);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ===================================
   Animations
   =================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.features__grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.features__grid .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.features__grid .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.features__grid .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.features__grid .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.features__grid .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

.steps .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.steps .animate-on-scroll:nth-child(3) { transition-delay: 150ms; }
.steps .animate-on-scroll:nth-child(5) { transition-delay: 300ms; }
.steps .animate-on-scroll:nth-child(7) { transition-delay: 450ms; }
