/* HIVA Market Landing Page — Warm Orange & Beige Design System (Dark & Light Themes) */

:root {
  /* Default Warm Dark Palette */
  --bg-primary: #120f0e;
  --bg-surface: #1e1916;
  --bg-surface-elevated: #2a231f;
  --bg-glass: rgba(36, 30, 26, 0.85);
  --border-glass: rgba(245, 230, 211, 0.15);
  --border-glow: rgba(249, 115, 22, 0.4);

  --text-primary: #fefefc;
  --text-secondary: #e7e5e4;
  --text-muted: #a8a29e;
  --text-beige: #f5f5f4;

  /* HIVA Warm Orange & Amber Accents */
  --accent-orange: #f97316;
  --accent-orange-bright: #ff6b00;
  --accent-amber: #f59e0b;
  --accent-beige: #fef3c7;
  --accent-emerald: #10b981;
  --accent-rose: #ef4444;

  --gradient-hero: linear-gradient(135deg, #1c1410 0%, #2e1c14 50%, #120f0e 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b00 0%, #ea580c 50%, #f59e0b 100%);
  --gradient-beige: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #fcfaf7;
  --bg-surface: #f5ede4;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(217, 119, 6, 0.2);
  --border-glow: rgba(234, 88, 12, 0.5);

  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --text-beige: #292524;

  --shadow-glow: 0 0 25px rgba(234, 88, 12, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(120, 113, 108, 0.15);
}

[data-theme="light"] body {
  background: radial-gradient(circle at 50% 0%, #fef3c7 0%, var(--bg-primary) 70%);
}

[data-theme="light"] .navbar {
  background: rgba(252, 250, 247, 0.9);
}

[data-theme="light"] .gis-mock {
  background: #f7f1e9;
  background-image: radial-gradient(rgba(234, 88, 12, 0.12) 1px, transparent 0);
}

[data-theme="light"] input, 
[data-theme="light"] select, 
[data-theme="light"] textarea {
  background: #ffffff !important;
  color: #1c1917 !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #2a1f18 0%, var(--bg-primary) 70%);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

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

/* Glassmorphism Container */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(18, 15, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-orange);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* Continuous Moving Live Ticker Banner */
.moving-ticker-bar {
  margin-top: 4.5rem;
  background: rgba(249, 115, 22, 0.12);
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
}

.ticker-title-badge {
  background: var(--accent-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.3rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.ticker-item strong {
  color: var(--accent-orange);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: rgba(254, 243, 199, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* Hero Section Grid Layout */
.hero {
  padding: 4rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}

/* Hero 8-Image Carousel Styles */
.hero-carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(249, 115, 22, 0.3);
  border: 2px solid var(--border-glow);
  aspect-ratio: 1 / 1;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(18, 15, 14, 0.95) 0%, transparent 100%);
  color: #fff;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 15, 14, 0.75);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.carousel-nav-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  right: 1.5rem;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--accent-orange);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--accent-orange);
}

.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Feature Grid Cards */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-mini-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.feature-mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Subdomain Provisioning Interactive Widget */
.provision-widget {
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 2rem;
  text-align: left;
}

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

.input-group {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.input-domain-suffix {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-left: 1px solid var(--border-glass);
}

.preview-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent-orange);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* Feature Showcase Section */
.features-section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

.tab-content {
  display: none;
  padding: 2rem;
  min-height: 400px;
}

.tab-content.active {
  display: block;
}

/* Simulated GIS Map */
.gis-mock {
  position: relative;
  width: 100%;
  height: 380px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background-image: radial-gradient(rgba(249, 115, 22, 0.12) 1px, transparent 0);
  background-size: 20px 20px;
}

.map-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 0 15px currentColor;
}

.map-pin:hover {
  transform: scale(1.3);
  z-index: 10;
}

.pin-critical { color: var(--accent-rose); background: rgba(239, 68, 68, 0.2); border: 2px solid var(--accent-rose); }
.pin-warning  { color: var(--accent-amber); background: rgba(245, 158, 11, 0.2); border: 2px solid var(--accent-amber); }
.pin-hospital { color: var(--accent-orange); background: rgba(249, 115, 22, 0.2); border: 2px solid var(--accent-orange); }
.pin-shelter  { color: var(--accent-emerald); background: rgba(16, 185, 129, 0.2); border: 2px solid var(--accent-emerald); }

.map-popover {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--bg-surface-elevated);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  max-width: 320px;
}

/* Radio Station Preview */
.radio-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.radio-player-card {
  padding: 2rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.radio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  margin: 1.5rem 0;
}

.bar {
  flex: 1;
  background: var(--accent-orange);
  border-radius: 4px;
  animation: equalize 1s infinite alternate ease-in-out;
}

@keyframes equalize {
  0% { height: 15%; }
  100% { height: 95%; }
}

/* ROI Calculator Section */
.calculator-section {
  padding: 6rem 2rem;
  background: var(--bg-surface);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.slider-group input[type=range] {
  width: 100%;
  accent-color: var(--accent-orange);
}

.roi-card {
  text-align: center;
  padding: 3rem 2rem;
}

.roi-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-orange);
  margin: 1rem 0;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.price-card {
  padding: 2.5rem;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-orange);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.25);
}

.price-val {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
}

.price-trial-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.price-features {
  list-style: none;
  margin: 2rem 0;
}

.price-features li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-card {
  background: var(--bg-surface-elevated);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-glass);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .calc-grid, .radio-widget { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
}
