/* =====================
   THEME VARIABLES
===================== */
:root {
  --bg-base: #071c16;
  --bg-deep: #041410;
  --green-glow: #16a34a;
  --green-soft: #22c55e;
  --text-main: #ecfdf5;
  --text-muted: #9fd3c4;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

/* =====================
   RESET & BASE
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}

body {
  color: var(--text-main);
  line-height: 1.6;

  /* 🔥 ASTRO-STYLE LAYERED BACKGROUND */
  background:
    radial-gradient(
      1200px 600px at 15% 20%,
      rgba(34, 197, 94, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 85% 30%,
      rgba(22, 163, 74, 0.18),
      transparent 65%
    ),
    radial-gradient(
      700px 400px at 50% 80%,
      rgba(16, 185, 129, 0.12),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--bg-base),
      var(--bg-deep)
    );
}

/* =====================
   UTILITIES
===================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
}

p {
  color: var(--text-muted);
  font-size: 16px;
}

/* =====================
   HEADER & NAV
===================== */
.system-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* System Strip */
.system-strip {
  height: 32px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.15),
    rgba(34, 197, 94, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #9fd3c4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.system-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

/* Core Header */
.header-core {
  background: rgba(7, 28, 22, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 30px;
  width: auto;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
}

/* Nav */
.header-nav a {
  margin-left: 26px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-main);
  opacity: 0.85;
}

.header-nav a:hover {
  opacity: 1;
}

/* CTA */
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22 !important;
  font-weight: 500;
}

/* =====================
   HERO SECTION
===================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  background-image: url("../assets/images/supply-chain.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 28, 22, 0.78),
    rgba(7, 28, 22, 0.92)
  );
  z-index: 1;
}

/* Content wrapper */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Headline */
.hero h1 {
  font-size: 46px;
  max-width: 780px;
  margin: auto;
}

/* Description */
.hero p {
  margin: 26px auto;
  max-width: 640px;
  font-size: 17px;
  color: #cfeee4;
}

/* CTA spacing */
.hero .btn {
  margin-top: 10px;
}

/* Trust line */
.hero .trust-line {
  margin-top: 18px;
  font-size: 13px;
  color: #9fd3c4;
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--green-soft),
    var(--green-glow)
  );
  color: #022c22;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* =====================
   GRIDS & CARDS
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.card {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.01)
    );
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(6px);
}

.card h3 {
  margin-bottom: 12px;
  color: #eafff7;
}

/* =====================
   PROBLEMS
===================== */
.problems-stack {
  padding: 120px 0;
}

.problems-stack h2 {
  text-align: center;
  margin-bottom: 80px;
}

/* Container */
.problems-list {
  max-width: 820px;
  margin: auto;
  position: relative;
}

/* Vertical spine */
.problems-list::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;

  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.4),
    rgba(34, 197, 94, 0.05)
  );
}

/* Item */
.problem-item {
  display: flex;
  gap: 36px;
  padding: 44px 0;
  position: relative;

  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Index */
.problem-index {
  min-width: 36px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(34, 197, 94, 0.7);
  text-align: center;
}

/* Content */
.problem-content {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );
  padding: 32px 36px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.problem-content h3 {
  margin-bottom: 8px;
  color: #eafff7;
}

.problem-content p {
  color: #9fd3c4;
  line-height: 1.7;
}

/* Hover confidence (desktop only) */
@media (hover: hover) {
  .problem-item:hover .problem-content {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateX(4px);
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
}

/* =====================
   INDUSTRIES
===================== */
.industries {
  text-align: center;
}

.industries-intro {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--text-muted);
}

.industry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 90px;
}

.industry-row.reverse {
  direction: rtl;
}

.industry-row.reverse > * {
  direction: ltr;
}

.industry-text {
  text-align: left;
}

.industry-text h3 {
  margin-bottom: 14px;
  color: #eafff7;
}

.industry-text p {
  max-width: 480px;
}

.industry-image img {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
}

/* =====================
   HOW WE WORK / PROCESS
===================== */
.work-canvas {
  padding: 160px 0;
}

/* Header */
.canvas-header {
  max-width: 700px;
  margin-bottom: 100px;
}

.canvas-header p {
  font-size: 18px;
  line-height: 1.7;
  color: #9fd3c4;
}

/* Grid */
.canvas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 100px;
  align-items: start;
}

/* Individual block */
.canvas-block {
  position: relative;
  padding: 48px 52px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.025)
    );

  border-radius: 28px;

  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45);

  transform: translateY(30px);
  opacity: 0;

  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.canvas-block.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
.canvas-block h3 {
  margin-bottom: 12px;
  color: #eafff7;
}

.canvas-block p {
  color: #9fd3c4;
  line-height: 1.75;
}

/* Asymmetry (this is the key difference) */
.canvas-block:nth-child(2) {
  margin-top: 120px;
}

.canvas-block:nth-child(3) {
  margin-top: -60px;
}

/* Mobile */
@media (max-width: 900px) {
  .canvas-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .canvas-block:nth-child(2),
  .canvas-block:nth-child(3) {
    margin-top: 0;
  }
}

/* =====================
   Recent Projects
===================== */
.project-scope {
  margin-top: 14px;
  font-size: 14px;
  color: #9fd3c4;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

/* =====================
   ABOUT – MANIFESTO
===================== */
.about-manifesto {
  padding: 160px 0;
}

/* Layout */
.about-manifesto .about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

/* Left anchor */
.about-manifesto .about-anchor {
  position: sticky;
  top: 140px;
}

.about-manifesto .about-anchor span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 10px;
}

.about-manifesto .about-anchor h2 {
  font-size: 56px;
  line-height: 1;
  margin: 0;
  color: #eafff7;
}

/* Right content */
.about-manifesto .about-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #9fd3c4;
  margin-bottom: 28px;
  max-width: 640px;
}

/* Subtle divider rhythm */
.about-manifesto .about-content p:not(:last-child) {
  position: relative;
}

.about-manifesto .about-content p:not(:last-child)::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.08);
}

/* =====================
   CONTACT 
===================== */
.decision-gateway {
  padding: 160px 0;
}

/* -----------------
   Header
------------------ */
.gateway-header {
  max-width: 720px;
  margin-bottom: 90px;
}

.gateway-header h2 {
  margin-bottom: 12px;
}

.gateway-header p {
  font-size: 18px;
  line-height: 1.7;
  color: #9fd3c4;
}

/* -----------------
   Single Option Layout
------------------ */
.gateway-options.single {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

/* -----------------
   Primary Gateway Card
------------------ */
.gateway-card {
  padding: 56px 60px;
  border-radius: 28px;
  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(34, 197, 94, 0.14),
      rgba(255, 255, 255, 0.03)
    );

  border: 1px solid rgba(34, 197, 94, 0.6);

  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gateway-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 55px 100px rgba(0, 0, 0, 0.6);
}

/* Card text */
.gateway-card h3 {
  margin-bottom: 12px;
  color: #eafff7;
}

.gateway-card p {
  color: #9fd3c4;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* CTA alignment */
.gateway-card .btn {
  margin-left: auto;
  margin-right: auto;
}

/* Alternate link */
.alt-link {
  margin-top: 18px;
}

.alt-link a {
  color: #22c55e;
  text-decoration: none;
}

/* -----------------
   Mobile
------------------ */
@media (max-width: 900px) {
  .gateway-card {
    padding: 44px 36px;
  }
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 80px 0 30px;
  margin-top: 120px;

  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

/* Brand */
.footer-brand {
  max-width: 360px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
}

.footer-quote {
  font-size: 15px;
  line-height: 1.6;
  color: #9ca3af;
}

/* Columns */
.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  text-decoration: none;
  font-size: 14px;
  color: #9ca3af;
}

.footer-column a:hover {
  color: #ffffff;
}

/* Divider */
.footer-divider {
  max-width: 1200px;
  margin: 60px auto 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* =====================
   PROCESS CARD ANIMATION
===================== */

.process .card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.process .card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keep step number crisp */
.process .step {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #22c55e;
  margin-bottom: 10px;
}

.context-link {
  margin-top: 30px;
  padding: 18px 22px;
  max-width: 640px;
  border-left: 3px solid #22c55e;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.context-link p {
  font-size: 15px;
  color: var(--text-muted);
}

.context-link a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 500;
}

.context-link a:hover {
  text-decoration: underline;
}