:root {
  --ink: #08251d;
  --forest: #0f3f2f;
  --leaf: #638b55;
  --mint: #dfeadc;
  --sage: #aebfa4;
  --cream: #f7faf4;
  --white: #ffffff;
  --line: rgba(15, 63, 47, 0.16);
  --shadow: 0 24px 80px rgba(8, 37, 29, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(247, 250, 244, 0.74);
  box-shadow: 0 18px 50px rgba(8, 37, 29, 0.08);
  backdrop-filter: blur(22px);
  border-radius: var(--radius);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 250, 244, 0.9);
  box-shadow: 0 14px 42px rgba(8, 37, 29, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 50px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--leaf);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.36em;
}

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

.nav a {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: rgba(8, 37, 29, 0.76);
  font-size: 14px;
  font-weight: 650;
}

.nav a:hover {
  background: rgba(15, 63, 47, 0.08);
  color: var(--forest);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 132px 24px 26px;
  background:
    radial-gradient(circle at 76% 38%, rgba(99, 139, 85, 0.22), transparent 32%),
    linear-gradient(135deg, #f9fbf7 0%, #edf4e8 48%, #fbfcfa 100%);
}

.energy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.66;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: calc(100svh - 220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--forest);
  font-size: clamp(54px, 9vw, 126px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 610px;
  color: rgba(8, 37, 29, 0.78);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(15, 63, 47, 0.22);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.64);
  color: var(--forest);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.orbital-shell {
  position: absolute;
  inset: 4%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.drop-3d {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(320px, 68vw);
  aspect-ratio: 0.74;
  place-items: center;
  color: var(--forest);
  filter: drop-shadow(0 42px 52px rgba(8, 37, 29, 0.22));
  transform: translateZ(80px);
}

.drop-3d::before {
  content: "";
  position: absolute;
  inset: 16% 7% 7%;
  background: linear-gradient(140deg, rgba(255,255,255,0.82), rgba(174,191,164,0.2));
  filter: blur(14px);
  transform: translateZ(-40px) rotateX(64deg);
}

.drop-3d svg {
  position: relative;
  width: 100%;
  height: 100%;
}

.drop-ribbon {
  fill: var(--leaf);
}

.orbit {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(15, 63, 47, 0.22);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-one {
  animation: orbit 16s linear infinite;
}

.orbit-two {
  width: 54%;
  border-color: rgba(99, 139, 85, 0.3);
  animation: orbit 12s linear infinite reverse;
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 10px rgba(15, 63, 47, 0.08);
}

.dot-a {
  top: 22%;
  right: 20%;
  animation: float 4.8s ease-in-out infinite;
}

.dot-b {
  left: 18%;
  bottom: 18%;
  background: var(--leaf);
  animation: float 5.6s ease-in-out infinite reverse;
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.hero-strip span {
  min-height: 56px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(8, 37, 29, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 104px 24px;
}

.section-heading {
  width: min(900px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

h2 {
  color: var(--forest);
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 1;
}

.about-grid,
.product-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glass-panel,
.product-card,
.contact-card {
  border: 1px solid rgba(15, 63, 47, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.glass-panel,
.product-card {
  min-height: 260px;
  padding: 28px;
}

.panel-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
}

.panel-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

h3 {
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 22px;
  line-height: 1.15;
}

.glass-panel p,
.product-card p,
.trade-copy p,
.contact-copy p {
  color: rgba(8, 37, 29, 0.68);
  line-height: 1.7;
}

.trading {
  background:
    linear-gradient(90deg, rgba(8, 37, 29, 0.94), rgba(16, 66, 49, 0.9)),
    radial-gradient(circle at 80% 12%, rgba(174, 191, 164, 0.24), transparent 34%);
  color: var(--white);
}

.trade-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 46px;
  align-items: center;
}

.trading h2,
.trading h3 {
  color: var(--white);
}

.trading .eyebrow {
  color: var(--sage);
}

.trade-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.pipeline-3d {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
}

.pipe-row {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.pipe-row span {
  display: block;
  width: 84px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--white), var(--leaf));
  box-shadow: inset 0 -8px 16px rgba(8, 37, 29, 0.2), 0 16px 28px rgba(0, 0, 0, 0.18);
}

.pipe-row strong {
  font-size: 22px;
}

.metrics {
  width: min(1180px, 100%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.metrics div {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.metrics strong {
  display: block;
  font-size: 44px;
}

.metrics span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.products {
  background: #fbfcfa;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 54px;
  height: 4px;
  background: var(--leaf);
}

.contact {
  padding-top: 52px;
}

.contact-card {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 18px;
  padding: 18px;
}

.contact-copy {
  padding: 34px 24px;
}

.contact-copy h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.05;
}

.map-shell {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mint);
}

.map-shell iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  filter: saturate(0.88) contrast(1.04);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit {
  from {
    transform: rotateX(72deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}

@keyframes float {
  50% {
    transform: translate3d(0, -18px, 70px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .trade-wrap,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 22px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .about-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 9px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 10px;
    right: 10px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(247, 250, 244, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 14px;
  }

  .hero {
    padding: 112px 16px 18px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 74px);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-strip,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero-strip span {
    min-height: 48px;
    font-size: 11px;
  }

  .section {
    padding: 72px 16px;
  }

  .section-heading {
    text-align: left;
  }

  .about-grid,
  .product-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .glass-panel,
  .product-card {
    min-height: auto;
    padding: 24px;
  }

  .pipeline-3d {
    padding: 14px;
  }

  .pipe-row {
    min-height: 66px;
  }

  .pipe-row strong {
    font-size: 18px;
  }

  .contact-card {
    padding: 10px;
  }

  .contact-copy {
    padding: 22px 14px;
  }

  .map-shell {
    min-height: 320px;
  }

  .footer {
    display: grid;
  }
}

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