:root {
  --bg: #f5f0e8;
  --bg-alt: #ede8dc;
  --green: #3b5c3a;
  --green-mid: rgba(59, 92, 58, 0.42);
  --green-faint: rgba(59, 92, 58, 0.08);
  --green-border: rgba(59, 92, 58, 0.18);
  --text: #3b5c3a;
  --text-muted: rgba(59, 92, 58, 0.6);
  /* Technical accent */
  --slate: #4a5568;
  --slate-mid: rgba(74, 85, 104, 0.5);
  --slate-faint: rgba(74, 85, 104, 0.07);
  /* Warm gold — sunflower center echo, CTAs */
  --gold: #c9a84c;
  --gold-faint: rgba(201, 168, 76, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3.5rem;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--green-border);
}

.nav-logo {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  line-height: 1;
}

.nav-logo small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  gap: 2.8rem;
  list-style: none;
}

.nav-links a {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10rem 3rem 8rem;
  text-align: center;
  position: relative;
}

.hero-svg {
  width: 220px;
  height: auto;
  margin-bottom: 3.2rem;
}

.hero-eyebrow {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 3.2rem;
}

/* ── BUTTONS ── */
.btn-outline {
  display: inline-block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.9rem 2.6rem;
  text-decoration: none;
  transition: background 0.25s;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn-outline:hover {
  background: var(--green-faint);
}

/* Gold CTA variant */
.btn-gold {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-faint);
}

/* ── SCROLL CUE ── */
.scroll-cue {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--green-mid));
  animation: pulse 2.2s ease-in-out infinite;
}

.scroll-cue-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

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

/* ── SECTION DIVIDER ── */
.divider {
  display: flex;
  justify-content: center;
  padding: 0 3rem;
  opacity: 0.65;
}

.divider svg {
  width: 100%;
  max-width: 680px;
}

/* ── SHARED SECTION LABELS ── */
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  text-align: center;
  margin-bottom: 1.2rem;
  opacity: 0.75;
}

.section-heading {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  line-height: 1.25;
}

/* ── APPS SECTION ── */
/* FDM layer-line texture — horizontal banding at 12 px pitch */
.apps-section {
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 11px,
    rgba(59, 92, 58, 0.026) 11px,
    rgba(59, 92, 58, 0.026) 12px
  );
  padding: 8rem 3rem;
}

.apps-inner {
  max-width: 900px;
  margin: 0 auto;
}

.apps-header {
  text-align: center;
  margin-bottom: 5rem;
}

.app-card {
  border: 1px solid var(--green-border);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: start;
  transition: border-color 0.3s;
}

.app-card:hover {
  border-color: var(--green-mid);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--green-border);
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-name {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.app-version {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.06em;
  opacity: 0.8;
  flex-shrink: 0;
}

.app-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 460px;
}

.app-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-tag {
  border: 1px solid var(--green-border);
  color: var(--text-muted);
  padding: 0.22rem 0.9rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Technical spec readout strip — mono, slate palette */
.app-spec-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.spec-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.59rem;
  font-weight: 300;
  color: var(--slate);
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(74, 85, 104, 0.22);
  background: var(--slate-faint);
}

.app-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-shrink: 0;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--green-border);
  color: var(--green);
  white-space: nowrap;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.app-link:hover {
  background: var(--green-faint);
  border-color: var(--green-mid);
}

.app-link-primary {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}

.app-link-primary:hover {
  background: rgba(59, 92, 58, 0.85);
  border-color: rgba(59, 92, 58, 0.85);
}

/* ── ABOUT SECTION ── */
.about-section {
  padding: 9rem 3rem;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.35;
  margin: 1.4rem auto 2.5rem;
}

.about-inner p {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.values-row {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
  border: 1px solid var(--green-border);
}

.value {
  padding: 1.4rem 2.4rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--green-border);
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.value:last-child {
  border-right: none;
}

/* ── PRINCIPLES SECTION ── */
/* Dot-matrix texture — circuit-board feel */
.principles-section {
  background-color: var(--bg-alt);
  background-image: radial-gradient(
    circle,
    rgba(74, 85, 104, 0.05) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  padding: 8rem 3rem;
}

.principles-inner {
  max-width: 1020px;
  margin: 0 auto;
}

.principles-header {
  text-align: center;
  margin-bottom: 5rem;
}

.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.phil-card {
  border: 1px solid var(--green-border);
  padding: 3rem 2.5rem;
  transition: border-color 0.3s;
  background: rgba(245, 240, 232, 0.55); /* lift card off dot-matrix */
}

.phil-card:hover {
  border-color: var(--green-mid);
}

/* Mono numbering — reads as a system log or version tag */
.phil-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--slate);
  opacity: 0.6;
  margin-bottom: 1.8rem;
  display: block;
}

.phil-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}

.phil-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ── 3D PRINT SECTION ── */
.print-section {
  padding: 8rem 3rem;
  background: var(--bg);
}

.print-inner {
  max-width: 1020px;
  margin: 0 auto;
}

.print-header {
  text-align: center;
  margin-bottom: 5rem;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.print-card {
  border: 1px solid var(--green-border);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s;
}

.print-card:hover {
  border-color: var(--green-mid);
}

.print-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.6rem;
  display: block;
}

.print-card-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.print-card-text {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.print-cta {
  text-align: center;
}

/* ── FOOTER ── */
footer {
  padding: 5.5rem 3rem 3rem;
  border-top: 1px solid var(--green-border);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--green-border);
}

.footer-brand {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.footer-brand-sub {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.footer-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.7;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  max-width: 900px;
  margin: 2.2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  opacity: 0.55;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav {
    padding: 1.2rem 2rem;
  }
  .nav-links {
    gap: 1.8rem;
  }

  .hero {
    padding: 9rem 2.5rem 7rem;
  }
  .hero-svg {
    width: 180px;
  }

  .app-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }
  .app-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .phil-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .values-row {
    border: none;
    flex-direction: column;
  }
  .value {
    border-right: none;
    border-bottom: 1px solid var(--green-border);
    padding: 1.1rem 1.5rem;
  }
  .value:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    gap: 1.4rem;
  }
  .hero {
    padding: 8rem 1.8rem 6rem;
  }
  .hero-svg {
    width: 150px;
  }
  .apps-section {
    padding: 5rem 1.5rem;
  }
  .about-section {
    padding: 6rem 1.5rem;
  }
  .principles-section {
    padding: 5rem 1.5rem;
  }
  .print-section {
    padding: 5rem 1.5rem;
  }
  .print-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 4.5rem 1.5rem 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .app-card {
    padding: 2rem 1.5rem;
  }
  .app-name {
    font-size: 1rem;
  }
  .app-links {
    flex-direction: column;
  }
  .app-link {
    justify-content: center;
  }
  .app-spec-bar {
    display: none; /* clean mobile */
  }
}
