/* ==========================================================================
   SmartPrime Landing Page — Design System
   Palette: Immersive Dark (#121218, #1A1525, #1B2838)
            Focus Gradient: Purple (#9B59B6) → Blue (#7B93E4) → Cyan (#3DEFE9)
            Magenta Glow (#A855F7)
   Fonts: Outfit (headings), Inter (body)
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #121218;
  background-image: linear-gradient(180deg, #121218 0%, #1A1525 40%, #1B2838 100%);
  background-attachment: fixed;
  color: #E2E8F0;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: #9B59B6;
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  color: #94A3B8;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-brand {
  background: linear-gradient(135deg, #3DEFE9, #7B93E4, #9B59B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: 6rem 0;
  position: relative;
}

/* --- Glassmorphism --- */
.glass {
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #9B59B6, #7B93E4, #3DEFE9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94A3B8;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.lang-switcher.open .lang-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 0.5rem;
  text-align: left;
  color: #94A3B8;
  transition: color 0.15s, background 0.15s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.lang-option.active {
  color: #3DEFE9;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.125rem;
  border-radius: 0.1875rem;
  background: rgba(155, 89, 182, 0.15);
  border: 1px solid rgba(155, 89, 182, 0.25);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #3DEFE9;
  flex-shrink: 0;
}

/* --- Badge Pill --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  background: rgba(155, 89, 182, 0.08);
  border: 1px solid rgba(155, 89, 182, 0.2);
  color: #A855F7;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
}

.badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #A855F7;
  animation: pulse-dot 2s infinite;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #9B59B6;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(2.5);
  }
}

/* --- Hero Section --- */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(155, 89, 182, 0.18) 0%, rgba(61, 239, 233, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero .badge {
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 42rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* --- Hero Mascot --- */
.hero-mascot-wrapper {
  position: relative;
  max-width: 24rem;
  margin: 0 auto;
}

.hero-mascot-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(61, 239, 233, 0.12) 0%, rgba(155, 89, 182, 0.1) 40%, transparent 70%);
  pointer-events: none;
  animation: mascot-glow 4s ease-in-out infinite alternate;
}

@keyframes mascot-glow {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-mascot-wrapper img {
  position: relative;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(155, 89, 182, 0.25)) drop-shadow(0 8px 16px rgba(61, 239, 233, 0.15));
  animation: mascot-float 6s ease-in-out infinite;
}

@keyframes mascot-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* --- Problem Section --- */
.problem {
  background: rgba(30, 41, 59, 0.15);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: #fff;
}

.section-header p {
  font-size: 1.125rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.problem-card:hover {
  border-color: rgba(155, 89, 182, 0.25);
  transform: translateY(-2px);
}

.problem-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.problem-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.problem-icon.red {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.problem-icon.red svg {
  stroke: #EF4444;
}

.problem-icon.orange {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.problem-icon.orange svg {
  stroke: #F59E0B;
}

.problem-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.problem-icon.blue svg {
  stroke: #3B82F6;
}

.problem-card h3 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Solution Section --- */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-content h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.solution-content>p {
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.feature-icon.energy {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.feature-icon.energy svg {
  stroke: #A855F7;
}

.feature-icon.env {
  background: rgba(61, 239, 233, 0.1);
  border: 1px solid rgba(61, 239, 233, 0.2);
}

.feature-icon.env svg {
  stroke: #3DEFE9;
}

.feature-icon.time {
  background: rgba(123, 147, 228, 0.1);
  border: 1px solid rgba(123, 147, 228, 0.2);
}

.feature-icon.time svg {
  stroke: #7B93E4;
}

.feature-item h3 {
  color: #fff;
  margin-bottom: 0.375rem;
}

.feature-item p {
  font-size: 0.9375rem;
}

/* --- Mockup Card --- */
.mockup-wrapper {
  position: relative;
}

.mockup-bg-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.12), rgba(61, 239, 233, 0.08));
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.mockup-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mockup-state-label {
  font-size: 0.8125rem;
  color: #64748B;
}

.mockup-state-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.mockup-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(61, 239, 233, 0.12);
  color: #3DEFE9;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mockup-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-task {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
}

.mockup-task.active {
  background: #1E293B;
  border: 1px solid rgba(155, 89, 182, 0.4);
  box-shadow: 0 0 20px rgba(155, 89, 182, 0.08);
}

.mockup-task.muted {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  opacity: 0.45;
}

.mockup-task-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

.mockup-task.active .mockup-task-circle {
  border-color: #9B59B6;
}

.mockup-task.muted .mockup-task-circle {
  border-color: #475569;
}

.mockup-task-title {
  font-weight: 500;
  color: #fff;
  font-size: 0.9375rem;
}

.mockup-task.muted .mockup-task-title {
  color: #94A3B8;
}

.mockup-task-meta {
  font-size: 0.75rem;
  color: #A855F7;
}

.mockup-task.muted .mockup-task-meta {
  color: #64748B;
}

.mockup-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.mockup-footer p {
  font-size: 0.875rem;
  color: #475569;
  font-style: italic;
}

/* --- CTA / Coming Soon Section --- */
.cta {
  text-align: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta>.container>p {
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

.platforms {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.platform-card {
  padding: 2rem 2.5rem;
  text-align: center;
  min-width: 10rem;
  transition: border-color 0.3s, transform 0.3s;
}

.platform-card:hover {
  border-color: rgba(155, 89, 182, 0.2);
  transform: translateY(-2px);
}

.platform-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke: #7B93E4;
}

.platform-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.platform-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9B59B6;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  object-fit: contain;
}

.footer-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #9B59B6, #7B93E4, #3DEFE9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-brand:hover .footer-brand-text {
  opacity: 1;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #334155;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 {
  transition-delay: 0.1s;
}

.fade-in.delay-2 {
  transition-delay: 0.2s;
}

.fade-in.delay-3 {
  transition-delay: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mockup-wrapper {
    order: -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .platforms {
    flex-direction: column;
    align-items: center;
  }

  .platform-card {
    width: 100%;
    max-width: 16rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-mascot-wrapper {
    max-width: 16rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    padding: 0 1rem;
  }

  .nav-inner {
    height: 3.75rem;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero-mascot-wrapper {
    max-width: 14rem;
  }
}