/* ================================================================
   STAYSPHERE — MAIN STYLESHEET
   Brand Colors: #372583 (Meteorite), #FB3821 (Accent)
   ================================================================ */

/* ──────────────────────────────────────────────────────────────────
   0. CSS CUSTOM PROPERTIES (Design Tokens)
   ────────────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-primary: #372583;
  --clr-primary-light: #4e37a8;
  --clr-primary-dark: #271a60;
  --clr-accent: #fb3821;
  --clr-accent-light: #ff5c47;

  --clr-bg: #ffffff;
  --clr-bg-alt: #f6f4fb;
  --clr-bg-dark: #0d0820;
  --clr-bg-card: #ffffff;

  --clr-text: #1a1a2e;
  --clr-text-secondary: #5a5a7a;
  --clr-text-muted: #8b8ba8;
  --clr-text-light: #e0dff0;

  --clr-border: #ebebf5;
  --clr-border-dark: #2a2054;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #372583, #6c5ce7);
  --grad-accent: linear-gradient(135deg, #fb3821, #ff7979);
  --grad-hero: linear-gradient(160deg, #0d0820 0%, #1a1040 40%, #2a1a60 100%);
  --grad-cta: linear-gradient(135deg, #372583 0%, #fb3821 100%);

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(55, 37, 131, 0.06);
  --shadow-md: 0 8px 30px rgba(55, 37, 131, 0.1);
  --shadow-lg: 0 16px 50px rgba(55, 37, 131, 0.15);
  --shadow-glow: 0 0 60px rgba(251, 56, 33, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.3s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ──────────────────────────────────────────────────────────────────
   2. TYPOGRAPHY UTILITIES
   ────────────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-secondary);
  margin-top: 0.5rem;
  max-width: 560px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

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

/* ──────────────────────────────────────────────────────────────────
   3. BUTTONS
   ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--sm {
  font-size: 0.85rem;
  padding: 8px 20px;
}
.btn--lg {
  font-size: 1rem;
  padding: 14px 32px;
}
.btn--xl {
  font-size: 1.1rem;
  padding: 18px 40px;
}

.btn--primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(251, 56, 33, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 56, 33, 0.45);
}

.btn--accent {
  background: var(--clr-accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--clr-accent-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost {
  background: rgba(55, 37, 131, 0.1);
  color: var(--clr-primary);
}
.btn--ghost:hover {
  background: rgba(55, 37, 131, 0.2);
}

/* ──────────────────────────────────────────────────────────────────
   4. SCROLL REVEAL ANIMATION
   ────────────────────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────────
   5. NAVBAR
   ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.logo-icon--light {
  background: rgba(255, 255, 255, 0.15);
}
.logo-text {
  color: var(--clr-primary);
}
.logo-text--light {
  color: var(--clr-text-light);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition);
}
.nav-link:hover {
  color: var(--clr-primary);
}
.nav-link:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ──────────────────────────────────────────────────────────────────
   6. HERO
   ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.hero__circle--1 {
  width: 500px;
  height: 500px;
  background: #372583;
  top: -10%;
  right: -5%;
  animation: float 8s ease-in-out infinite;
}
.hero__circle--2 {
  width: 350px;
  height: 350px;
  background: #fb3821;
  bottom: -5%;
  left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}
.hero__circle--3 {
  width: 200px;
  height: 200px;
  background: #6c5ce7;
  top: 40%;
  left: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--clr-text-light);
  opacity: 0.8;
  margin-top: 1.25rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero__cta .btn--ghost {
  background: #211f37;
  color: #fff;
}
.hero__cta .btn--ghost:hover {
  background: #352f4f;
}

.hero__dashboard {
  position: relative;
}
.dashboard-svg {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.dashboard-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 56, 33, 0.15) 0%,
    transparent 70%
  );
  z-index: -1;
  border-radius: var(--radius-xl);
}

/* ──────────────────────────────────────────────────────────────────
   7. STATS
   ────────────────────────────────────────────────────────────────── */
.stats {
  padding: 100px 0;
  background: var(--clr-bg);
}
.stats__header {
  text-align: center;
  margin-bottom: 60px;
}
.stats__header .section-subtitle {
  margin: 0.5rem auto 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}
.stat-card__number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
}
.stat-card__plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent);
}
.stat-card__label {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────────
   8. MANAGEMENT (Tabs Section)
   ────────────────────────────────────────────────────────────────── */
.management {
  padding: 100px 0;
  background: var(--clr-bg-alt);
}
.management__header {
  text-align: center;
  margin-bottom: 48px;
}

.management__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: var(--clr-bg);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.tab-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(55, 37, 131, 0.3);
}
.tab-icon {
  font-size: 1.1rem;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel__info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}
.tab-panel__desc {
  font-size: 1.05rem;
  color: var(--clr-text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.feature-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-step {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--clr-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.feature-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}

.step-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-accent);
  min-width: 32px;
  line-height: 1.4;
}

.feature-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}
.feature-step p {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────
   9. CORE FEATURES
   ────────────────────────────────────────────────────────────────── */
.core-features {
  padding: 100px 0;
  background: var(--clr-bg);
}
.core-features__header {
  text-align: center;
  margin-bottom: 60px;
}
.core-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.core-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.core-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}
.core-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: rgba(251, 56, 33, 0.08);
}
.core-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.core-card p {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────
   10. SMART METER
   ────────────────────────────────────────────────────────────────── */
.smart-meter {
  padding: 80px 0;
  background: var(--clr-bg-alt);
}
.smart-meter__card {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.smart-meter__card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(251, 56, 33, 0.1);
  top: -80px;
  right: -60px;
  filter: blur(40px);
}
.smart-meter__content {
  flex: 1;
  position: relative;
  z-index: 1;
}
.smart-meter__content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.smart-meter__content p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 480px;
}
.smart-meter__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.smart-meter__visual {
  width: 220px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.spin-slow {
  animation: spin 20s linear infinite;
  transform-origin: 110px 110px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ──────────────────────────────────────────────────────────────────
   11. AWARDS
   ────────────────────────────────────────────────────────────────── */
.awards {
  padding: 60px 0;
  background: var(--clr-bg);
}
.awards__card {
  text-align: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(55, 37, 131, 0.05),
    rgba(251, 56, 33, 0.05)
  );
  border: 1px solid var(--clr-border);
}
.awards__badge {
  font-size: 3rem;
  margin-bottom: 16px;
}
.awards__card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 8px;
}
.awards__card p {
  color: var(--clr-text-secondary);
}
.awards__date {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-accent);
}

/* ──────────────────────────────────────────────────────────────────
   12. ADVANTAGE SECTION
   ────────────────────────────────────────────────────────────────── */
.advantage {
  padding: 100px 0;
  background: var(--clr-bg-alt);
}
.advantage__header {
  text-align: center;
  margin-bottom: 60px;
}
.advantage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}
.advantage-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.advantage-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.advantage-card p {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────
   13. PLATFORMS
   ────────────────────────────────────────────────────────────────── */
.platforms {
  padding: 100px 0;
  background: var(--clr-bg);
}
.platforms__inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.platforms__text {
  flex: 1;
}
.platforms__badges {
  display: flex;
  gap: 16px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text);
}
.platforms__visual {
  width: 240px;
  flex-shrink: 0;
}
.phone-mockup svg {
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(55, 37, 131, 0.3));
}

/* ──────────────────────────────────────────────────────────────────
   14. WHITE LABEL
   ────────────────────────────────────────────────────────────────── */
.white-label {
  padding: 80px 0;
  background: var(--clr-bg-alt);
}
.white-label__card {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-xl);
  background: var(--grad-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.white-label__card::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.2);
  top: -150px;
  left: -100px;
  filter: blur(60px);
}
.white-label__card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.white-label__card p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
.white-label__card .btn {
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────────────────────────
   15. TESTIMONIALS
   ────────────────────────────────────────────────────────────────── */
.testimonials {
  padding: 100px 0;
  background: var(--clr-bg);
}
.testimonials__header {
  text-align: center;
  margin-bottom: 60px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-card__stars {
  color: #fdcb6e;
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: 0.95rem;
}
.testimonial-card__author span {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ──────────────────────────────────────────────────────────────────
   16. BACKED SECTION
   ────────────────────────────────────────────────────────────────── */
.backed {
  padding: 80px 0;
  background: var(--clr-bg-alt);
}
.backed__inner {
  text-align: center;
}
.backed__inner .section-subtitle {
  margin: 0.5rem auto 2rem;
}
.backed__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo-pill {
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  transition: all var(--transition);
}
.logo-pill:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────
   17. FINAL CTA
   ────────────────────────────────────────────────────────────────── */
.final-cta {
  padding: 120px 0;
  background: var(--clr-bg);
}
.final-cta__inner {
  text-align: center;
}
.final-cta__inner h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ──────────────────────────────────────────────────────────────────
   18. FOOTER
   ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--clr-bg-dark);
  color: var(--clr-text-light);
  padding: 80px 0 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--clr-border-dark);
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer__address {
  margin-top: 1rem !important;
}
.footer__brand a {
  color: var(--clr-accent);
  transition: opacity var(--transition);
}
.footer__brand a:hover {
  opacity: 0.7;
}

.footer__links-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer__col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-text-light);
  opacity: 0.6;
  padding: 4px 0;
  transition: all var(--transition);
}
.footer__col a:hover {
  opacity: 1;
  color: var(--clr-accent);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 0.85rem;
  opacity: 0.5;
}

.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  color: var(--clr-text-light);
  opacity: 0.6;
  transition: all var(--transition);
}
.footer__socials a:hover {
  opacity: 1;
  color: var(--clr-accent);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────
   19. RESPONSIVE
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__subtitle {
    margin: 1rem auto 0;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__dashboard {
    max-width: 500px;
    margin: 0 auto;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .core-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__links-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__links,
  .navbar__actions {
    display: none;
  }
  .navbar__hamburger {
    display: flex;
  }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--clr-border);
    z-index: 999;
  }

  .navbar__actions.open {
    display: flex;
    position: absolute;
    top: calc(var(--nav-height) + 220px);
    left: 0;
    width: 100%;
    justify-content: center;
    padding: 0 24px 20px;
    background: #fff;
    z-index: 999;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .core-features__grid {
    grid-template-columns: 1fr 1fr;
  }
  .advantage__grid {
    grid-template-columns: 1fr;
  }

  .smart-meter__card {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .smart-meter__visual {
    width: 160px;
  }

  .platforms__inner {
    flex-direction: column;
    text-align: center;
  }
  .platforms__badges {
    justify-content: center;
  }
  .platforms__visual {
    width: 180px;
  }

  .feature-steps {
    grid-template-columns: 1fr;
  }

  .footer__links-group {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .core-features__grid {
    grid-template-columns: 1fr;
  }
  .management__tabs {
    gap: 8px;
  }
  .tab-btn {
    font-size: 0.82rem;
    padding: 10px 16px;
  }
  .footer__links-group {
    grid-template-columns: 1fr;
  }
}
