/* GeoShift Premium Mixed-Light CSS Stylesheet - Bento & SVG Animation Edition */

:root {
  --bg-main: #E8EBE5;
  /* Warm off-white / soft stone */
  --bg-surface: #F8F9F6;
  /* Clean off-white surface */
  --bg-secondary: #EEF1EC;
  /* Secondary light surface */
  --graphite: #10201C;
  /* Deep graphite structural sections */
  --secondary-graphite: #1D302A;
  /* Light graphite for trust cards */
  --emerald: #08A77D;
  /* Primary accent emerald */
  --teal: #0B7A70;
  /* Secondary accent teal */
  --picker-blue: #18A9EA;
  /* Location accent blue */
  --text-primary: #15211D;
  /* Primary deep text */
  --text-secondary: #5B6B64;
  /* Muted slate text */
  --text-light: #F8F9F6;
  /* Light surface text */
  --text-light-muted: #CDD5CF;
  /* Muted light text */
  --border: #CDD5CF;
  /* Subtle warm gray border */
  --white: #FFFFFF;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --shadow-premium: 0 15px 35px rgba(16, 32, 28, 0.08);
  --shadow-mockup: 0 30px 60px rgba(16, 32, 28, 0.18);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.landing-page {
  background-image: url('images/landing-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.25;
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: rgba(248, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 26px;
  height: 26px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--emerald);
}

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--emerald);
  color: var(--white);
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-nav-download:hover {
  background-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(8, 167, 125, 0.2);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--emerald);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(8, 167, 125, 0.25);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

/* Sections Base Layout */
.section-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 92px 24px;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-title.light-text {
  color: var(--text-light);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  background-color: var(--bg-surface);
}

.hero-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--teal);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
  color: var(--graphite);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-trust-list {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.scope-disclosure-box {
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--picker-blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 500px;
}

.scope-disclosure-box p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Browser Mockup Frame */
.browser-mockup {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.browser-header {
  height: 28px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border);
}

.browser-image-container {
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.browser-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.hero-mockup {
  width: 440px;
  max-width: 100%;
  z-index: 2;
  animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Contour lines visual decoration */
.hero-contour-glow {
  position: absolute;
  width: 115%;
  height: 115%;
  top: -7.5%;
  left: -7.5%;
  background-image:
    radial-gradient(circle, rgba(24, 169, 234, 0.05) 0%, transparent 60%),
    repeating-radial-gradient(circle, transparent, transparent 15px, rgba(13, 122, 112, 0.02) 15px, rgba(13, 122, 112, 0.02) 16px);
  z-index: 1;
  pointer-events: none;
}

/* How It Works Section */
.how-it-works-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 24px;
  /* Center of 48px step icon */
  left: 16%;
  right: 16%;
  height: 2px;
  border-top: 2px dashed var(--border);
  z-index: -1;
}

.step-card {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-2px);
}

.step-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--white);
  /* White opaque badge floats over dashed line */
  border: 1.5px solid var(--border);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.step-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--graphite);
}

.step-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* --- Bento Grid Section --- */
.features-section {
  background-color: var(--bg-surface);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-surface) 100%);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(16, 32, 28, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(8, 167, 125, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.bento-card-content {
  padding: 28px;
}

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

.bento-icon-svg {
  color: var(--teal);
  flex-shrink: 0;
}

.bento-icon {
  font-size: 20px;
}

.bento-card-header h3 {
  font-size: 16px;
  color: var(--graphite);
}

.bento-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background-color: transparent;
  padding: 14px 20px;
  margin-top: auto;
}

/* Bento grid custom alignments */
.col-span-2 {
  grid-column: span 2;
}

.col-span-1 {
  grid-column: span 1;
}

.row-span-1 {
  grid-row: span 1;
}

/* Horizontal alignment inside double bento cards */
.col-span-2.bento-card {
  flex-direction: row;
}

.col-span-2 .bento-card-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.col-span-2 .bento-visual {
  flex: 0.8;
  height: 100%;
  align-items: center;
  padding: 0;
  margin-top: 0;
}

/* --- Inline SVG Animations --- */

/* Map Picker Radarwaves */
.radar-wave {
  transform-origin: 200px 80px;
  animation: waveAnim 3s infinite linear;
}

.radar-wave.wave-2 {
  animation-delay: 1s;
}

.radar-wave.wave-3 {
  animation-delay: 2s;
}

@keyframes waveAnim {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }

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

.route-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 5s infinite alternate ease-in-out;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse-point {
  animation: pointPulse 1.5s infinite alternate ease-in-out;
}

@keyframes pointPulse {
  0% {
    fill: var(--emerald);
    filter: drop-shadow(0 0 2px var(--emerald));
  }

  100% {
    fill: var(--picker-blue);
    filter: drop-shadow(0 0 6px var(--picker-blue));
  }
}

/* Clipboard Parser float and draws */
.draw-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawLine 4s infinite alternate ease-in-out;
}

.parse-line-2 {
  animation: lineGlow 3s infinite alternate ease-in-out;
}

@keyframes lineGlow {
  0% {
    fill: var(--border);
  }

  100% {
    fill: var(--emerald);
  }
}

.float-emblem {
  animation: floatEmblem 3s infinite alternate ease-in-out;
}

@keyframes floatEmblem {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

/* Scope modes dash routing */
.route-pulse-line {
  stroke-dasharray: 8;
  stroke-dashoffset: 16;
  animation: dashMove 1.5s infinite linear;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: 0;
  }
}

/* Shield Protective pulse */
.shield-path {
  transform-origin: 200px 101px;
  animation: shieldPulse 4s infinite alternate ease-in-out;
}

@keyframes shieldPulse {
  0% {
    filter: drop-shadow(0 0 1px rgba(8, 167, 125, 0.1));
  }

  100% {
    filter: drop-shadow(0 0 6px rgba(8, 167, 125, 0.4));
  }
}

/* Showcase Section with Tab Selectors */
.showcase-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.showcase-tabs {
  display: flex;
  gap: 12px;
  background-color: var(--bg-secondary);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid var(--border);
  max-width: 100%;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background-color: var(--white);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.showcase-viewport {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.showcase-text-pane {
  text-align: center;
  max-width: 600px;
}

.showcase-text-pane p {
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 40px;
}

.showcase-mockup {
  width: 100%;
  border: 1px solid var(--border);
}

/* Privacy & Scope Section (Deep Graphite Palette) */
.privacy-scope-section {
  background-color: var(--graphite);
  color: var(--text-light);
}

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

.trust-card {
  background-color: var(--secondary-graphite);
  border: 1px solid rgba(205, 213, 207, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.trust-card h4 {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 10px;
}

.trust-card p {
  color: var(--text-light-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* FAQ Section (Underlined Clean Accordion) */
.faq-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.faq-accordion-group {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.faq-question .chevron-icon {
  color: var(--text-secondary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--emerald);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  max-height: 120px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Final CTA Section */
.final-cta-section {
  background-color: var(--bg-main);
  padding: 80px 24px;
  text-align: center;
}

.cta-title {
  font-size: 26px;
  margin-bottom: 24px;
}

.cta-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Legal Subpages Layout */
.legal-page {
  background-color: var(--bg-surface);
}

.legal-content {
  padding-top: 100px;
}

.legal-title {
  font-size: 32px;
  color: var(--graphite);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--graphite);
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.legal-section li {
  margin-bottom: 6px;
}

/* Footer Section */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-title {
  font-size: 16px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--emerald);
}

.footer-disclosures {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.footer-disclosure-text,
.footer-disclaimer-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-copyright {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 6px;
}

/* Accessibility Focus Indicator */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--picker-blue);
  outline-offset: 2px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive CSS rules */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .scope-disclosure-box {
    margin: 0 auto;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .steps-row::before {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .col-span-2.bento-card {
    flex-direction: column;
  }

  .col-span-2 .bento-visual {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .trust-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Scoped Landing Page transparent/glassmorphic overrides */
body.landing-page .hero-section {
  background-color: transparent;
}
body.landing-page .how-it-works-section {
  background-color: rgba(232, 235, 229, 0.75);
  backdrop-filter: blur(12px);
}
body.landing-page .features-section {
  background-color: rgba(248, 249, 246, 0.75);
  backdrop-filter: blur(12px);
}
body.landing-page .showcase-section {
  background-color: rgba(232, 235, 229, 0.75);
  backdrop-filter: blur(12px);
}
body.landing-page .faq-section {
  background-color: rgba(248, 249, 246, 0.75);
  backdrop-filter: blur(12px);
}
body.landing-page .final-cta-section {
  background-color: transparent;
}