:root {
  --bg: #f5f8f6;
  --surface: rgba(255, 255, 255, 0.75);
  --text: #0c1a14;
  --muted: #51625a;
  --border: rgba(18, 70, 52, 0.12);
  --accent: #0e4f3a;
  --accent-soft: rgba(14, 79, 58, 0.08);
  --shadow-sm: 0 8px 32px rgba(14, 79, 58, 0.06);
  --shadow-md: 0 24px 48px rgba(14, 79, 58, 0.1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1120px;
  --section-space: clamp(4.5rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% -20%, rgba(14, 79, 58, 0.08), transparent 60%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 248, 246, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 9px;
  background: linear-gradient(160deg, #0f3d2e, #23634d);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
}

.brand-mark::before {
  inset: 7px 13px 7px 7px;
  border-radius: 4px;
}

.brand-mark::after {
  inset: 7px 7px 13px 7px;
  border-radius: 4px;
  opacity: 0.34;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: #274337;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  inline-size: 40px;
  block-size: 40px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(15, 61, 46, 0.08);
  padding: 0 0 0.95rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0.1rem;
  color: #234235;
  font-weight: 500;
}

main {
  position: relative;
  overflow: clip;
}

.pattern-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 61, 46, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 61, 46, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 60% 0%, black, transparent 70%);
}

.section {
  padding-block: var(--section-space);
}

.section + .section {
  border-top: 1px solid rgba(15, 61, 46, 0.08);
}

.hero {
  padding-top: clamp(4.5rem, 9vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #2e4f42;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1,
.page-hero h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #0b1c15;
  max-width: 15ch;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  text-wrap: balance;
}

.hero .tagline {
  margin-top: 0.7rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #1d3c30;
  font-weight: 500;
}

.hero p,
.page-hero p {
  margin-top: 1.2rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.13rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.actions-gap {
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  border: 1px solid transparent;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #135e45);
  color: #f4faf7;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #135e45, #0a3d2a);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(14, 79, 58, 0.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--border);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #fff;
  border-color: rgba(14, 79, 58, 0.3);
  box-shadow: var(--shadow-md);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.meta-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  color: #1e3a2f;
  box-shadow: 0 4px 14px rgba(14, 79, 58, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.meta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.9);
}

.hero-meta .meta-card:nth-child(1) { transition-delay: 0.1s; }
.hero-meta .meta-card:nth-child(2) { transition-delay: 0.2s; }
.hero-meta .meta-card:nth-child(3) { transition-delay: 0.3s; }

.meta-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #486557;
}

.meta-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.03rem;
}

.section-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.top-gap {
  margin-top: 2rem;
}

.section-title {
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #10251d;
}

.section-lead {
  max-width: 68ch;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.bento-grid .card:nth-child(1) { transition-delay: 0.1s; }
.bento-grid .card:nth-child(2) { transition-delay: 0.2s; }
.bento-grid .card:nth-child(3) { transition-delay: 0.3s; }

.card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 79, 58, 0.2);
}

.card-grid .card:nth-child(1) { transition-delay: 0.1s; }
.card-grid .card:nth-child(2) { transition-delay: 0.2s; }
.card-grid .card:nth-child(3) { transition-delay: 0.3s; }

.card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card .subtitle {
  margin-top: 0.25rem;
  color: #27644c;
  font-weight: 600;
  font-size: 0.95rem;
}

.card p {
  margin-top: 1rem;
  color: var(--muted);
}

.card .link-btn {
  margin-top: 1.4rem;
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  transition: gap 0.3s ease;
}

.card:hover .link-btn {
  gap: 0.7rem;
}

.card .link-btn::after {
  content: "->";
  line-height: 1;
  transform: translateY(-1px);
}

.highlight {
  background: linear-gradient(135deg, rgba(240, 246, 242, 0.8), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 79, 58, 0.15);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.highlight h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.highlight p {
  margin-top: 0.9rem;
  max-width: 62ch;
  font-size: 1.1rem;
  color: #294c3e;
}

.page-hero {
  padding-top: clamp(3.6rem, 9vw, 5.4rem);
  padding-bottom: clamp(2.6rem, 7vw, 4.3rem);
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.icon-card {
  display: grid;
  gap: 0.7rem;
}

.icon {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
}

.icon svg {
  inline-size: 21px;
  block-size: 21px;
}

.feature-list,
.use-case-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.feature-list li,
.use-case-list li {
  border: 1px solid var(--border);
  background: #fbfdfb;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
}

.use-case-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.contact-layout {
  display: grid;
  gap: 1.3rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

label {
  font-weight: 500;
  color: #1f3b30;
}

input,
textarea {
  font: inherit;
  color: var(--text);
  background: #fcfefd;
  border: 1px solid #cfddd3;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #23634d;
  box-shadow: 0 0 0 3px rgba(35, 99, 77, 0.13);
}

textarea {
  min-height: 138px;
  resize: vertical;
}

.form-note {
  margin-top: 0.8rem;
  color: #476456;
  font-size: 0.94rem;
}

.site-footer {
  border-top: 1px solid rgba(15, 61, 46, 0.1);
  padding: 1.9rem 0;
  background: #f5f8f5;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: #244336;
  font-weight: 500;
}

.social-links a {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #d6e1da;
  color: #214032;
}

.social-links svg {
  inline-size: 16px;
  block-size: 16px;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .nav-links {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
  }

  .card-grid.two-col,
  .info-grid,
  .use-case-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .bento-main {
    grid-column: span 2;
  }

  .footer-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: clamp(4.8rem, 8vw, 7.8rem);
  }

  .card-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: 14ch;
  }
}

/* Deep Tech Upgrades */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }
}

#tactical-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

#tactical-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(14, 79, 58, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

#tactical-cursor-follower.cursor-active {
  width: 48px;
  height: 48px;
  background-color: rgba(14, 79, 58, 0.05);
  border-color: var(--accent);
}

.typewriter-cursor {
  display: inline-block;
  width: 0.1em;
  background-color: currentColor;
  margin-left: 0.05em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ELITE UI UPGRADES */

/* Boot Loader */
#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #f5f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot-text {
  font-family: monospace;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  white-space: pre-wrap;
  max-width: 80%;
  text-align: left;
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(14, 79, 58, 0.05), rgba(14, 79, 58, 0.1), rgba(14, 79, 58, 0.05));
  padding: 1.5rem 0;
  border-top: 1px solid rgba(14, 79, 58, 0.1);
  border-bottom: 1px solid rgba(14, 79, 58, 0.1);
  display: flex;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}
.marquee-content {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  white-space: nowrap;
  padding-right: 2rem;
  opacity: 0.8;
}
@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Parallax SVG Elements */
.parallax-layer {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.parallax-1 { top: 15%; right: 5%; opacity: 0.6; }
.parallax-2 { top: 60%; left: -5%; opacity: 0.4; }

/* Spotlight Glow Borders for Cards */
.card {
  position: relative;
  overflow: hidden; /* Contains the glow */
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(14, 79, 58, 0.12),
    transparent 40%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::before {
  opacity: 1;
}
.card > * {
  position: relative;
  z-index: 1;
}

/* Backers Section */
.backers-section {
  padding-block: 4rem;
  background: var(--bg);
}

.backers-title {
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #51625a;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.backers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3.5rem;
  align-items: center;
}

.backer-logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: rgba(14, 79, 58, 0.4);
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.backer-logo:hover {
  color: var(--accent);
  transform: scale(1.05);
}

@media (min-width: 760px) {
  .backers-section {
    padding-block: 5.5rem;
  }
  .backers-title {
    font-size: 0.95rem;
  }
  .backer-logo {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
