/* ==========================================================================
   GeoTools Web Platform - Landing Page Styles (Clean Light Theme)
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 137, 123, 0.08);
  border: 1px solid rgba(0, 137, 123, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--primary-emerald); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-emerald) 20%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.hero-telemetry-strip {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
}

.telemetry-value span {
  color: var(--primary-emerald);
}

.telemetry-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Interactive Structural Compass Widget (Clean Light Dial) --- */
.hero-interactive-card {
  position: relative;
}

.compass-card-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 137, 123, 0.08);
  position: relative;
  overflow: hidden;
}

.compass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.compass-dial-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-dial-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 137, 123, 0.45);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.compass-dial-inner {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 40%, #f1f5f9 100%);
  border: 2px solid var(--primary-emerald);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05), var(--shadow-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-needle {
  position: absolute;
  width: 6px;
  height: 150px;
  top: 20px;
  left: calc(50% - 3px);
  transform-origin: 50% 50%;
  transition: transform 0.1s ease-out;
}

.needle-north {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 75px solid #dc2626;
  filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

.needle-south {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 75px solid #64748b;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.compass-center-pin {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3px solid var(--primary-emerald);
  border-radius: 50%;
  position: absolute;
  top: calc(50% - 7px);
  left: calc(50% - 7px);
  z-index: 10;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.cardinal-label {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
}
.cardinal-n { top: 8px; left: calc(50% - 6px); color: #dc2626; }
.cardinal-s { bottom: 8px; left: calc(50% - 5px); color: #64748b; }
.cardinal-e { right: 8px; top: calc(50% - 9px); color: var(--primary-dark); }
.cardinal-w { left: 8px; top: calc(50% - 9px); color: var(--primary-dark); }

.compass-controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-emerald);
  cursor: pointer;
  box-shadow: 0 0 6px var(--primary-emerald-glow);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.geological-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding: 0.95rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

.readout-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.readout-val {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* --- Features / Services Section --- */
.features-section {
  padding: 5.5rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 2rem;
  background: #ffffff;
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 137, 123, 0.08);
  border: 1px solid rgba(0, 137, 123, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* --- Ecosystem & Geovisor Section --- */
.ecosystem-section {
  padding: 5.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.architecture-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.sync-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
}

.step-number {
  width: 34px;
  height: 34px;
  background: var(--primary-emerald);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- Header Official Logo --- */
.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

/* --- Avenza-inspired Spatial Search Bar --- */
.geo-search-wrapper {
  max-width: 760px;
  margin: 2rem 0 1rem;
}

.geo-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 137, 123, 0.08);
  transition: all 0.25s ease;
}

.geo-search-box:focus-within {
  border-color: var(--primary-emerald);
  box-shadow: 0 12px 30px -5px rgba(0, 137, 123, 0.18), 0 0 0 3px rgba(0, 137, 123, 0.12);
}

.geo-search-icon {
  font-size: 1.2rem;
  margin-right: 0.75rem;
  color: var(--primary-emerald);
}

.geo-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
}

.geo-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.geo-search-btn {
  background: var(--accent-amber);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.geo-search-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.geo-search-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.search-chip {
  font-size: 0.76rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
}

.search-chip:hover {
  background: #e6fffa;
  border-color: var(--primary-emerald);
  color: var(--primary-dark);
}

/* --- Multidisciplinary Sector Showcase (Avenza Style Strip) --- */
.sector-showcase-section {
  padding: 3rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.sector-strip-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.sector-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 320px;
  background: #0f172a;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 137, 123, 0.25);
}

.sector-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sector-card:hover .sector-card-img {
  transform: scale(1.08);
}

.sector-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.92) 100%);
  z-index: 1;
}

.sector-card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  color: #ffffff;
}

.sector-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 137, 123, 0.85);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  backdrop-filter: blur(4px);
}

.sector-card-content h4 {
  font-size: 1.12rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.sector-card-content p {
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.35;
}

/* --- Section: Why GeoTools (Split Showcase) --- */
.why-geotools-wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

.why-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.why-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.why-item:hover {
  border-color: var(--primary-emerald);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 137, 123, 0.12);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 137, 123, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.why-item h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Freemium Pricing Transparency Card --- */
.freemium-pricing-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 60%, #fffbeb 100%);
  border: 2px solid rgba(0, 137, 123, 0.25);
  border-radius: 20px;
  padding: 2.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 15px 35px -10px rgba(0, 137, 123, 0.12);
  margin: 3.5rem 0 2rem;
}

.freemium-info {
  flex: 1;
}

.freemium-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 137, 123, 0.15);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.freemium-info h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.freemium-info p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.freemium-stats-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  min-width: 220px;
}

.freemium-stats-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-emerald);
  line-height: 1;
  font-family: var(--font-mono);
}

.freemium-stats-label {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 0.4rem;
}

.freemium-stats-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* --- Play Store Showcase Card (Clean Light) --- */
.playstore-showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  margin-top: 1rem;
}

.playstore-banner-header {
  position: relative;
  width: 100%;
  height: 320px;
  background: #0f172a;
  overflow: hidden;
}

.playstore-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}

.playstore-banner-header:hover .playstore-banner-img {
  transform: scale(1.02);
}

.playstore-banner-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playstore-body {
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}

.playstore-app-meta {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.playstore-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 137, 123, 0.2);
  border: 1px solid #e2e8f0;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  flex-shrink: 0;
}

.playstore-app-titles h3 {
  font-size: 1.65rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.playstore-dev {
  font-size: 0.92rem;
  color: var(--primary-emerald);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.playstore-rating-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rating-stars {
  color: #f59e0b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.playstore-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 650px;
}

.playstore-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-playstore-large {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  transition: all 0.2s ease;
}

.btn-playstore-large:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
  color: #ffffff;
}

.btn-playstore-large svg {
  width: 28px;
  height: 28px;
}

.playstore-qr-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.qr-frame {
  width: 170px;
  height: 170px;
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  margin: 0 auto 0.75rem;
}

.playstore-qr-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-geotools-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .freemium-pricing-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .playstore-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .playstore-app-meta {
    flex-direction: column;
    align-items: center;
  }
  .playstore-actions {
    justify-content: center;
  }
  .playstore-rating-bar {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }
  .why-feature-list {
    grid-template-columns: 1fr;
  }
}

