/* ==========================================================================
   1. Reset & Global Variables
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* Prevents iOS from auto-inflating font size on rotate */
}

:root {
  --bg-gradient: radial-gradient(
    circle at 70% 0%,
    #000000 40%,
    #0C1326 60%,
    #000000 100%
  );
  --text-primary: #DFF1DA;
  --text-muted: #b7c4d2;
  --text-eyebrow: #7f8fa0;
  --accent-green: #5DB847;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.07);
  --grid-color: rgba(255, 255, 255, 0.015);
}

body {
  background: var(--bg-gradient);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.logo-img {
  height: 28px;       /* Controls the vertical scaling of the logo */
  width: auto;        /* Ensures the aspect ratio remains perfectly locked */
  display: block;     /* Removes baseline spacing quirks */
  object-fit: contain;
  margin-top: 50px;
}

/* Base Utility Layout Container */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Eyebrows used across all sections */
.eyebrow-text {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-eyebrow);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ==========================================================================
   2. Background Grid Matrix (Visible across Desktop - 3.jpg)
   ========================================================================== */
.global-grid-matrix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 120px 120px;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   3. Header Navigation
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.meta-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-eyebrow);
}

/* ==========================================================================
   4. Hero Section & Pulsating Animation
   ========================================================================== */
.hero-container {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 60px 20px;

}

/* Dimming overlay — sits between the background image (z-index: 0) and
   everything else (bg-svg-wrapper z-index:1, hero-content z-index:2) */
.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* Increase toward 0.8 to dim further, lower toward 0.3 to dim less */
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Hero Background Logo & Dynamic Brightness Pulse
   ========================================================================== */
.bg-svg-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1600px;
  height: 1600px;
  max-width: 150vw;   /* Keeps the glow from ever overflowing a narrow viewport */
  max-height: 150vw;
  z-index: 1;
  pointer-events: none;

  /* Smooth, hardware-accelerated brightness and breathing animation */
  animation: bg-pulse-container 6s infinite ease-in-out;
  will-change: transform, opacity, filter; /* Optimizes browser performance */
}

.hero-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keyframe matrix handling synchronized scaling, opacity brightness, and glow */
@keyframes bg-pulse-container {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.93);
    opacity: 0.25; /* Soft, deep resting state background baseline */
    filter: drop-shadow(0 0 0px rgba(0, 128, 0, 0));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.95; /* Drives the green lines to near full-strength saturation at peak expansion */
    filter: drop-shadow(0 0 12px rgba(12, 231, 12, 0.4)); /* Injects a bright green electric glow aura */
  }
}

/* ==========================================================================
   Hero Content Typography & Layout
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 2;         /* Keeps the text cleanly layered over the background SVG */
  max-width: 950px;   /* Prevents long text strings from stretching too wide */
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* Main Display Headline */
.hero-content h1 {
  font-size: 68px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px; /* Snug distance to the supporting subheadline */
  color: #DFF1DA;
  word-wrap: break-word;
}

/* Rich Green Accent Branding Word */
.green-text {
  color: var(--accent-green, #008000);
}

/* Secondary Subheadline Statement */
.hero-content h3 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #f7fafc; /* Slightly softer white value */
  margin-bottom: 32px;
}

/* Body Narrative Context Block */
.hero-lead {
  font-size: 22px;
  line-height: 1.65;
  color: var(--text-muted, #cbd5e0);
  max-width: 760px;
  margin: 0 auto 24px auto; /* Centered layout block */
  font-weight: 300;
}

/* Closing Callout Label */
.hero-content h4 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-eyebrow, #a0aec0);
  margin-bottom: 48px; /* Breathing room above the Call To Action button */
}

/* Primary Call To Action Button */
.hero-content .cta-btn {
  display: inline-block;
  background-color: rgba(0, 128, 0, 0.12);
  color: #ffffff;
  border: 1px solid rgba(0, 128, 0, 0.4);
  padding: 14px 36px;
  font-size: 15px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content .cta-btn:hover {
  background-color: rgba(0, 128, 0, 0.25);
  border-color: rgba(0, 128, 0, 0.8);
  box-shadow: 0 0 20px rgba(0, 128, 0, 0.25);
}

/* ==========================================================================
   5. Philosophy Section
   ========================================================================== */
.philosophy-section {
  padding: 140px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.philosophy-section .philosophy-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px; /* Enhanced separation gap */
}

/* Constrains your content column to let the graphic breathe on the right */
.philosophy-text-block {
  flex: 1.2;
  max-width: 680px; /* Snug fit to prevent text from colliding with the graphic */
  min-width: 0; /* Allows flex children to shrink below content size on narrow screens */
}

.philosophy-section h2 {
  font-size: 54px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 40px;
  max-width: 750px;
}

.philosophy-content {
  max-width: 760px;
}

.philosophy-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 28px;
}

.philosophy-content p:last-child {
  margin-bottom: 0;
}

/* Let the graphic take up equal weight to support its details */
.philosophy-graphic-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* Strictly no background block container */
  padding: 0;
  min-width: 0;
}

/* Scalable Responsive 3D Valley Vector Elements */
.terrain-valley-3d {
  width: 100%;
  max-width: 620px; /* Significantly increased frame size */
  height: auto;
  color: var(--text-muted);
  opacity: 0.65;
  transform: rotateX(15deg) rotateY(-8deg); /* Isometric perspective angle match */
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.5s ease,
              opacity 0.5s ease;
}

/* Refined interactive hover logic */
.philosophy-section:hover .terrain-valley-3d {
  opacity: 0.95;
  color: #4ade80; /* Switches cleanly to your brand green color on layout focus */
  transform: rotateX(11deg) rotateY(-4deg) scale(1.03);
}

/* Background canvas frame */
.section-topography-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Prevents background layer from capturing text highlight/mouse events */

  background-image: url('./map2.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.12;

  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Subtle shift animation when interacting with the grid section */
.features-section:hover .section-topography-bg {
  transform: scale(1.02);
  opacity: 0.16;
}

/* Scalable wireframe settings */
.terrain-wireframe {
  width: 100%;
  max-width: 480px;
  height: auto;
  color: rgba(255, 255, 255, 0.35); /* Subtle wireframe default color */
  filter: drop-shadow(0px 20px 40px rgba(13, 21, 32, 0.6));
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Micro interaction to give the 3D map spatial reaction when hovered */
.terrain-wireframe:hover {
  transform: translateY(-6px) scale(1.02);
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Capabilities Section (What We See Grid)
   ========================================================================== */
.features-section {
  padding: 100px 0;
  background-color: var(--bg-color);
  position: relative;
  z-index: 2;
}

.features-section .section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.features-section .eyebrow-text {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-eyebrow);
  font-weight: 600;
  margin-bottom: 24px;
}

.features-section h2 {
  color: var(--text-primary);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

/* 3x2 Grid Array Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Proportioned Balanced Card Housing */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 1.6 / 1;
  min-height: 195px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Smooth Interactive Glow State */
.feature-card:hover {
  border-color: rgba(0, 128, 0, 0.45);
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.card-num {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.85;
}

/* Centered Canvas Container for SVG Wireframes */
.wireframe-container {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
}

/* Unified Graphic Scaler & Tone Styling */
.wireframe-graphic {
  width: 100px;
  height: 100px;
  stroke: var(--text-muted);
  opacity: 0.35;
  transition: all 0.4s ease;
}

/* Hover effect targets graphic elements instantly */
.feature-card:hover .wireframe-graphic {
  stroke: var(--accent-green);
  opacity: 0.95;
  transform: scale(1.05);
}

/* Bottom Weighted Typography labels */
.feature-card h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* Fixed Baseline Indicator Bars */
.card-underline {
  width: 48px;
  height: 2px;
  background-color: var(--accent-green);
  border-radius: 1px;
}

/* ==========================================================================
   7. Pull Quote Section
   ========================================================================== */
.quote-section {
  padding: 160px 0;
  text-align: center;
}

.quote-section blockquote {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  padding: 0 20px;
}

.quote-section cite {
  font-style: normal;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-eyebrow);
}

/* ==========================================================================
   8. Capital Deployment Section (Bottom Hero CTA)
   ========================================================================== */
.deployment-section {
  padding: 160px 0 200px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.deployment-section h2 {
  font-size: 54px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin-bottom: 28px;
}

.deployment-section p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  font-weight: 300;
  margin-bottom: 48px;
}

/* ==========================================================================
   9. Footer Section (Start a Conversation)
   ========================================================================== */
.site-footer {
  position: relative;
  padding: 120px 0 0 0;
  overflow: hidden;          /* Crops the overlapping vector graphics cleanly */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 250px;
}

.footer-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  background-size: 120px 120px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  z-index: 1;
  pointer-events: none;
}

.footer-logo-object {
  width: 120%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; /* Pins the baseline to the bottom edge */
}

.footer-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  padding: 0 40px;
}

.footer-cta-block {
  margin-bottom: 40px;
}

.site-footer h2 {
  font-size: 48px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.footer-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 44px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Fluid SVG Asset Mask Wrapper */
.giant-footer-brand-svg {
  position: relative;
  z-index: 2;
  width: 100vw;              /* Forces the SVG to match screen boundaries perfectly */
  height: 20vw;              /* Maintains responsive vertical thickness scale */
  margin-top: auto;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: flex-end;     /* Pins the paths tightly to the footer cutoff baseline */
}

.giant-footer-brand-svg svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -3vw;       /* Pulls the bottom loop tails slightly off-screen to match design crop */
}

/* ==========================================================================
   10. Scroll Reveal Animations
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 1s ease, transform 1s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity;
}

.scroll-reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Direction variations */
.hero-content.scroll-reveal {
  transform: translateY(80px);
}

/* Header fade */
.site-header.scroll-reveal {
  transform: translateY(-30px);
}

/* Footer entrance */
.site-footer.scroll-reveal {
  transform: translateY(100px);
}

/* Optional floating effect */
.feature-card.show:hover {
  transform: translateY(-6px);
  transition-duration: .4s;
}

/* Respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .bg-svg-wrapper,
  .scroll-reveal,
  .terrain-valley-3d,
  .terrain-wireframe,
  .feature-card,
  .wireframe-graphic,
  .cta-btn,
  .footer-btn {
    animation: none !important;
    transition: none !important;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   All section-level responsive rules are consolidated here, from largest
   to smallest viewport, so nothing overrides itself out of order.
   ========================================================================== */

/* ---------- Large desktops / laptops (<=1200px) ---------- */
@media (max-width: 1200px) {
  .section-container,
  .features-section .section-container,
  .footer-container {
    padding: 0 32px;
  }

  .hero-content h1 {
    font-size: 58px;
  }

  .philosophy-section h2,
  .deployment-section h2 {
    font-size: 46px;
  }
}

/* ---------- Tablets (<=992px) ---------- */
@media (max-width: 992px) {
  .site-header {
    padding: 32px 40px;
  }

  .hero-container {
    min-height: 70vh;
    padding: 50px 20px;
  }

  .hero-content h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .hero-content h3 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .bg-svg-wrapper {
    width: 900px;
    height: 900px;
  }

  /* Philosophy section stacks vertically */
  .philosophy-section {
    padding: 100px 0;
  }

  .philosophy-section .philosophy-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
  }

  .philosophy-text-block,
  .philosophy-graphic-block {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .philosophy-graphic-block {
    padding: 30px 0 0 0;
    justify-content: center;
  }

  .philosophy-section h2 {
    font-size: 38px;
    max-width: 100%;
  }

  .terrain-valley-3d,
  .terrain-wireframe-glow {
    max-width: 440px;
  }

  .terrain-wireframe {
    max-width: 420px;
  }

  /* Feature grid drops to 2 columns */
  .features-section {
    padding: 80px 0;
  }

  .features-section h2 {
    font-size: 38px;
  }

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

  .quote-section {
    padding: 110px 0;
  }

  .quote-section blockquote {
    font-size: 36px;
  }

  .deployment-section {
    padding: 110px 0 140px 0;
  }

  .deployment-section h2 {
    font-size: 38px;
  }

  .deployment-section p {
    font-size: 17px;
  }

  .giant-footer-brand-svg {
    height: 26vw;
  }
}

/* ---------- Small tablets / large phones (<=768px) ---------- */
@media (max-width: 768px) {
  .section-container,
  .features-section .section-container,
  .footer-container {
    padding: 0 24px;
  }

  .site-header {
    padding: 24px;
    justify-content: center;
    text-align: center;
  }

  h1 { font-size: 44px; }

  .hero-content {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .hero-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .hero-lead {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-content h4 {
    font-size: 12px;
    margin-bottom: 32px;
    letter-spacing: 1px;
  }

  .hero-content .cta-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  .bg-svg-wrapper {
    width: 480px;
    height: 480px;
  }

  .philosophy-section h2,
  .deployment-section h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .philosophy-content p {
    font-size: 16px;
  }

  .features-section h2 {
    font-size: 30px;
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .quote-section {
    padding: 80px 0;
  }

  .quote-section blockquote {
    font-size: 26px;
    padding: 0 8px;
  }

  .deployment-section {
    padding: 80px 0 100px 0;
  }

  .deployment-section p {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .site-footer {
    min-height: 320px;
    padding-top: 70px;
  }

  .site-footer h2 {
    font-size: 28px;
  }

  .footer-btn {
    padding: 12px 32px;
    font-size: 14px;
  }

  .giant-footer-brand-svg {
    height: 34vw;
  }

  .giant-footer-brand-svg svg {
    margin-bottom: -5vw; /* Adjusts the cropping offset slightly for smaller viewports */
  }
}

/* ---------- Phones (<=480px) ---------- */
@media (max-width: 480px) {
  .logo-img {
    height: 22px;
  }

  .logo {
    font-size: 20px;
  }

  .meta-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .eyebrow-text {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .hero-container {
    min-height: 60vh;
    padding: 40px 16px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content h3 {
    font-size: 17px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-content .cta-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .bg-svg-wrapper {
    width: 340px;
    height: 340px;
  }

  .philosophy-section {
    padding: 70px 0;
  }

  .philosophy-section h2,
  .deployment-section h2 {
    font-size: 26px;
  }

  .terrain-valley-3d,
  .terrain-wireframe {
    max-width: 100%;
  }

  .features-section {
    padding: 60px 0;
  }

  .features-section h2 {
    font-size: 26px;
  }

  .feature-card {
    padding: 22px 18px 18px 18px;
    min-height: 160px;
  }

  .wireframe-graphic {
    width: 72px;
    height: 72px;
  }

  .feature-card h3 {
    font-size: 19px;
  }

  .quote-section blockquote {
    font-size: 21px;
  }

  .deployment-section {
    padding: 60px 0 80px 0;
  }

  .deployment-section p {
    font-size: 15px;
  }

  .site-footer h2 {
    font-size: 22px;
    padding: 0 12px;
  }

  .footer-btn {
    width: calc(100% - 48px);
  }

  .giant-footer-brand-svg {
    height: 44vw;
  }
}
