/* ==========================================================================
   EXCEL TO KML PRO - MODERN GIS STYLING & DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette - Deep Geospatial Navy & High-Vis Survey Gold */
  --bg-darkest: #050B10;
  --bg-dark: #0A1620;
  --bg-surface: #0E202D;
  --bg-surface-elevated: #142C3D;
  --bg-surface-hover: #1A374C;
  --bg-glass: rgba(14, 32, 45, 0.75);
  --bg-glass-card: rgba(16, 38, 54, 0.65);
  
  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-line: rgba(56, 189, 248, 0.18);
  --border-focus: rgba(255, 209, 0, 0.5);
  --border-gold: rgba(255, 209, 0, 0.35);

  /* Accents */
  --gold: #FFD100;
  --gold-hover: #FFE043;
  --gold-glow: rgba(255, 209, 0, 0.28);
  --gold-dim: #D4AF00;
  
  --cyan: #38BDF8;
  --cyan-glow: rgba(56, 189, 248, 0.25);
  
  --emerald: #10B981;
  --emerald-dim: rgba(16, 185, 129, 0.15);
  
  --coral: #F43F5E;
  
  /* Text */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #FFE566;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 28px rgba(255, 209, 0, 0.25);
  --shadow-cyan: 0 0 28px rgba(56, 189, 248, 0.22);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Container */
  --container-max: 1240px;
  --header-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(20, 52, 74, 0.45) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(6, 15, 22, 0.92);
  border-bottom-color: var(--border-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

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

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #16364A, #081B24);
  border: 1px solid var(--border-line);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.15);
  position: relative;
  overflow: hidden;
}

.brand-icon-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span.pro {
  color: var(--gold);
  background: rgba(255, 209, 0, 0.12);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid rgba(255, 209, 0, 0.3);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #171B04;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 2px 12px rgba(255, 209, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-nav-download:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 209, 0, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(5, 11, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 30px;
    gap: 12px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 999;
  }

  .nav-links.show-mobile {
    display: flex;
    animation: fadeIn 0.25s ease forwards;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 4px;
    font-size: 15.5px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 580px) {
  .brand-subtitle {
    display: none;
  }
  .btn-github span {
    display: none;
  }
  .btn-github {
    padding: 8px 10px;
  }
  .btn-nav-download span {
    display: none;
  }
  .btn-nav-download {
    padding: 8px 12px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.15), rgba(255, 209, 0, 0.08) 50%, transparent 70%);
  filter: blur(75px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 209, 0, 0.08);
  border: 1px solid rgba(255, 209, 0, 0.28);
  padding: 5px 14px 5px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { border-color: rgba(255, 209, 0, 0.28); box-shadow: 0 0 10px rgba(255, 209, 0, 0.1); }
  100% { border-color: rgba(255, 209, 0, 0.6); box-shadow: 0 0 20px rgba(255, 209, 0, 0.25); }
}

.release-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}

.release-pill .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.release-pill .version-tag {
  background: var(--gold);
  color: #1A1800;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #E2E8F0 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-gold {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  position: relative;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #FFDE38 0%, #FFD100 100%);
  color: #171802;
  font-size: 16px;
  font-weight: 750;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid #FFE45C;
  box-shadow: 0 4px 20px rgba(255, 209, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 209, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: #FFE455;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Key specs row in hero */
.hero-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-dim);
}

.spec-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}

.spec-badge svg {
  color: var(--emerald);
}

/* ==========================================================================
   HERO INTERACTIVE SHOWCASE WINDOW
   ========================================================================== */
.showcase-window {
  margin-top: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.window-header {
  background: #081720;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-circle {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-circle.red { background: #FF5F56; }
.window-circle.yellow { background: #FFBD2E; }
.window-circle.green { background: #27C93F; }

.window-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-title .live-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.window-tabs {
  display: flex;
  gap: 6px;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--gold);
  background: rgba(255, 209, 0, 0.1);
  border-color: rgba(255, 209, 0, 0.3);
}

.tab-content {
  display: none;
  position: relative;
  min-height: 480px;
}

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

/* Image preview containers */
.preview-img-box {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: hidden;
  background: #060F14;
}

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

.preview-overlay-info {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 22, 32, 0.88);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

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

.overlay-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Interactive Quick Converter inside Tab 3 */
.live-playground-pane {
  padding: 28px;
  background: #0A1722;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 520px;
}

@media (max-width: 860px) {
  .live-playground-pane {
    grid-template-columns: 1fr;
  }
}

.playground-input-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preset-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.preset-btn.active {
  background: rgba(255, 209, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.field-group input, .field-group select {
  background: #061118;
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.field-group input:focus, .field-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.2);
}

.playground-result-side {
  background: #061017;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.radar-preview {
  height: 180px;
  background: radial-gradient(circle at center, rgba(14, 38, 56, 0.7) 0%, #03080C 70%);
  border: 1px dashed var(--border-line);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.radar-sweep {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.radar-sweep::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), transparent);
  transform-origin: bottom right;
  animation: sweep 4s linear infinite;
  border-radius: 100% 0 0 0;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-crosshair {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(56, 189, 248, 0.15);
}

.radar-crosshair.vert {
  width: 1px;
  height: 100%;
}

.radar-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--gold);
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-label {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

.output-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.out-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.out-label {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.out-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

.kml-action-btns {
  display: flex;
  gap: 10px;
}

.btn-download-kml {
  flex: 1;
  background: var(--emerald);
  color: #032014;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-download-kml:hover {
  background: #34D399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-view-app {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-view-app:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   METRICS / HIGHLIGHTS RIBBON
   ========================================================================== */
.stats-ribbon {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 22, 32, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-number span.accent {
  color: var(--gold);
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255, 209, 0, 0.1);
  border: 1px solid rgba(255, 209, 0, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   KEY FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 990px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
  background: var(--bg-surface-elevated);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 209, 0, 0.15), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(255, 209, 0, 0.25);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 22px;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.1));
  border-color: rgba(56, 189, 248, 0.25);
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
  color: var(--emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(255, 209, 0, 0.1));
  border-color: rgba(16, 185, 129, 0.25);
}

.feature-title {
  font-size: 19px;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.feature-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.feature-meta span.tag {
  color: var(--gold);
  background: rgba(255, 209, 0, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ==========================================================================
   WORKFLOW / HOW IT WORKS SECTION
   ========================================================================== */
.workflow-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .workflow-row {
    grid-template-columns: 1fr;
  }
}

.workflow-card {
  background: #0B1924;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 26px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #171802;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.4);
}

.workflow-card h3 {
  font-size: 18px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.workflow-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.code-snippet-box {
  background: #050E14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
  line-height: 1.5;
  overflow-x: auto;
}

/* ==========================================================================
   DOWNLOAD HUB SECTION (MAIN CTA)
   ========================================================================== */
.download-section {
  background: linear-gradient(180deg, rgba(14, 32, 45, 0.4) 0%, rgba(5, 11, 16, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.download-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(56, 189, 248, 0.12);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .download-hub-card {
    padding: 28px 20px;
  }
}

.download-primary-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 40px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .download-primary-banner {
    grid-template-columns: 1fr;
  }
}

.dl-main-info h3 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 14px;
}

.dl-main-info p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dl-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-big-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #FFDE38 0%, #FFD100 100%);
  color: #1A1A00;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 800;
  border: 1px solid #FFE45C;
  box-shadow: 0 4px 24px rgba(255, 209, 0, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-big-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255, 209, 0, 0.55);
}

.btn-big-download .dl-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-big-download .dl-details .sub {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
}

.dl-meta-badge-box {
  background: #081720;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-row .label {
  color: var(--text-dim);
}

.meta-row .val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

.checksum-box {
  background: #050F16;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.checksum-box code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-hash {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-copy-hash:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Secondary options grid (Portable, Web, Android, iOS) */
.alt-downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .alt-downloads-grid {
    grid-template-columns: 1fr;
  }
}

.alt-card {
  background: #0A1924;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.alt-card:hover {
  border-color: var(--border-line);
  transform: translateY(-2px);
}

.alt-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alt-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.alt-card h4 {
  font-size: 15px;
}

.alt-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.btn-alt-action {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.btn-alt-action:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* ==========================================================================
   TECHNICAL SPECIFICATIONS TABLE
   ========================================================================== */
.specs-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.specs-table th {
  background: #081720;
  padding: 16px 20px;
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-heading);
}

.specs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  vertical-align: top;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.specs-table td strong {
  color: #FFFFFF;
}

.badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon-chevron {
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 380px;
  padding: 0 22px 20px;
}

/* ==========================================================================
   BOTTOM CTA BANNER
   ========================================================================== */
.bottom-cta-box {
  background: radial-gradient(circle at 50% 50%, #153247 0%, #0A1924 80%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottom-cta-box h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.bottom-cta-box p {
  font-size: 16.5px;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04080D;
  padding: 50px 0 30px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0E2638;
  color: #FFFFFF;
  border: 1px solid var(--border-line);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Scroll Reveal Animations */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Additional Responsive Tweaks */
@media (max-width: 768px) {
  .window-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .window-tabs {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .preview-img-box {
    height: 380px;
  }

  .hero-title {
    font-size: clamp(30px, 6vw, 44px);
  }

  .hero-desc {
    font-size: 15px;
    padding: 0 8px;
  }

  .hero-specs-row {
    gap: 12px 20px;
  }

  .spec-badge {
    font-size: 12.5px;
  }
}

@media (max-width: 600px) {
  .preview-img-box {
    height: 300px;
  }

  .preview-overlay-info {
    position: static;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .live-playground-pane {
    padding: 16px;
  }

  .output-fields-grid {
    grid-template-columns: 1fr;
  }

  .kml-action-btns {
    flex-direction: column;
  }

  .dl-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-big-download {
    width: 100%;
    justify-content: center;
  }

  .bottom-cta-box {
    padding: 40px 20px;
  }
}

