:root {
  --apple-bg: #ffffff;
  --apple-bg-secondary: #f5f5f7;
  --apple-text: #1d1d1f;
  --apple-text-secondary: #86868b;
  /* Updated to Via Solar Brand Color (Solar Orange) */
  --apple-accent: #F28500;
  --apple-accent-hover: #CC7000;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-nav-bg: rgba(255, 255, 255, 0.8);
  
  /* Safe fallback for Apple systems, otherwise Inter */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--apple-bg);
  color: var(--apple-text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  font-size: 1.15rem;
  color: var(--apple-text-secondary);
  max-width: 600px;
  margin-bottom: 20px;
}

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

.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-secondary {
  background-color: var(--apple-bg-secondary);
}

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

.d-flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background-color: var(--apple-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9999;
  border-bottom: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo img {
  height: 24px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav__link {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--apple-text);
}

.nav__cta {
  background-color: var(--apple-text);
  color: #fff;
  border-radius: 980px;
  padding: 4px 12px;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}

.nav__cta:hover {
  background-color: #333;
  transform: scale(1.02);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px; /* offset for nav */
}

.hero p.subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--apple-text-secondary);
  margin-top: 10px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-media {
  margin-top: 60px;
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  opacity: 0; /* for animation */
  transform: translateY(40px); /* for animation */
}

/* Authentic Apple-style Light Hero */
.apple-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--apple-bg-secondary);
  padding-top: 140px; /* Plenty of breathing room below the nav */
}

.apple-h1 {
  color: var(--apple-text);
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.apple-subtitle {
  color: var(--apple-text-secondary);
  font-size: 1.3rem;
  max-width: 850px;
  margin: 0 auto 35px;
}

.apple-hero-product {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-top: 50px;
}

.apple-hero-product img {
  width: 100%;
  max-width: 1300px; /* Enormous wow-factor constraint */
  height: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.15));
  opacity: 0;
  transform: translateY(120px);
  animation: appleRiseUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes appleRiseUp {
  to { transform: translateY(0); opacity: 1; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
}

.btn-primary {
  background-color: var(--apple-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--apple-accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background-color: transparent;
  color: var(--apple-accent);
}

.btn-secondary:hover {
  text-decoration: underline;
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 40px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
  overflow: hidden;
}

.card-secondary {
  background: var(--apple-bg-secondary);
  box-shadow: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--apple-text);
}

.card-desc {
  font-size: 1rem;
  color: var(--apple-text-secondary);
}

/* Feature row */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-media {
  flex: 1.1;
  border-radius: 24px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  margin-top: 60px;
}

.stat-val {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--apple-text);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--apple-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Animations Triggered by JS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--apple-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--apple-border);
}

.faq-question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--apple-text);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  gap: 20px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--apple-accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item[open] .faq-question {
  color: var(--apple-accent);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4px 24px;
  color: var(--apple-text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-row {
    flex-direction: column !important;
    gap: 30px;
  }
  .grid-2, .grid-3, .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
}

/* Interactive Map */
.interactive-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--apple-bg-secondary);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg {
  width: 110%;
  height: 110%;
  object-fit: contain;
  filter: invert(0.6) opacity(0.15) grayscale(100%);
  pointer-events: none;
}

.map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--apple-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
  transition: all 0.3s ease;
  z-index: 2;
}

.map-dot::after {
  content: '';
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border-radius: 50%;
  border: 1px solid var(--apple-accent);
  animation: pulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.map-dot:hover, .map-dot.active {
  background-color: #fff;
  box-shadow: 0 0 0 5px var(--apple-accent);
  z-index: 3;
}

.map-tooltip {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: calc(100% - 48px);
  max-width: 320px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--apple-border);
  pointer-events: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--apple-text);
  letter-spacing: -0.01em;
}

.map-tooltip p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--apple-text-secondary);
  line-height: 1.4;
}
