/* ============================================================
   Soihtu DTx — Variant B: Living garden / product-forward
   ============================================================ */

:root {
  --bg: #F7F6F1;
  --bg-alt: #EEF0E8;
  --ink: #1E241F;
  --muted: #5E665B;
  --border: #D9DCCF;
  --accent: #2F5D43;
  --accent-deep: #264E39;
  --bloom: #C9D6B9;
  --bloom-soft: #E7EFDD;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -28px rgba(38, 78, 57, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.section-title em,
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
}
.lede em { font-style: italic; color: var(--accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 241, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  color: var(--accent);
  width: 34px;
  height: 34px;
}
.mark-svg { width: 100%; height: 100%; }
.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brand-dtx {
  margin-left: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  vertical-align: middle;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}

/* ---------- Techstars pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, transform .18s ease;
}
.pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 93, 67, 0.14);
}
.pill-tech-logo {
  display: inline-flex;
  height: 13px;
}
.pill-tech-logo img,
.footer-tech-logo img,
.featured-logo img {
  height: 100%;
  width: auto;
  /* recolor dark wordmark -> deep forest accent */
  filter: brightness(0) saturate(100%) invert(24%) sepia(18%) saturate(1100%) hue-rotate(96deg) brightness(94%) contrast(90%);
}
.pill-tech-logo img { height: 13px; }
.pill-year { color: var(--muted); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 9vw, 100px);
  background:
    radial-gradient(120% 90% at 78% 8%, var(--bloom-soft) 0%, rgba(231,239,221,0) 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(201,214,185,0.42) 0%, rgba(201,214,185,0) 60%),
    var(--bg);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40% 40% at 50% 0%, rgba(47,93,67,0.06), transparent 70%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 20px 0 22px;
}
.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  max-width: 50ch;
  margin: 0 0 30px;
}
.hero-lede em { font-style: italic; color: var(--accent); }

.pill-hero { margin-bottom: 6px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-deep); }
.link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--bloom);
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

.hero-meta {
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Hero botanical visual ---------- */
.hero-visual { display: flex; justify-content: center; }
.bloom-stage {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(38, 78, 57, 0.18));
}
.bloom-svg { width: 100%; height: 100%; }
.bloom { transform-box: fill-box; transform-origin: center; }
.bloom-1 { animation: sway 7s ease-in-out infinite; }
.bloom-2 { animation: sway 8s ease-in-out infinite 0.6s; }
.bloom-3 { animation: sway 9s ease-in-out infinite 1.2s; }
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
}
/* note: SVG transforms on groups already position blooms; sway adds gentle tilt */
.bloom-1 { transform-origin: 160px 128px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 16px;
}
.pillar {
  padding: 30px 26px 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.35);
  transition: background .25s ease;
}
.pillar:hover { background: rgba(255,255,255,0.75); }
.pillar-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 14px 0 10px;
}
.pillar p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Meliora ---------- */
.meliora-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.meliora-copy p { color: var(--muted); }
.meliora-copy .lede { margin-bottom: 18px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg-alt);
}

/* ---------- Device mockup ---------- */
.meliora-visual { display: flex; justify-content: center; }
.device {
  width: min(300px, 80%);
  aspect-ratio: 9 / 17.5;
  background: linear-gradient(160deg, #2c2f29, #1a1d18);
  border-radius: 38px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.device-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 7px;
  background: rgba(0,0,0,0.5);
  border-radius: 99px;
  z-index: 3;
}
.device-screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, #3D7355, #24432f 70%),
    var(--accent-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 22px;
}
.screen-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 140%; height: 60%;
  background: radial-gradient(circle, rgba(201,214,185,0.4), transparent 65%);
  pointer-events: none;
}
.screen-mark { width: 66px; height: 66px; position: relative; }
.screen-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  position: relative;
}
.screen-bars span {
  display: block;
  height: 8px;
  width: var(--w);
  border-radius: 99px;
  background: rgba(255,255,255,0.85);
}
.screen-bars span:nth-child(even) { background: rgba(201,214,185,0.75); }
.screen-label {
  position: relative;
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  text-align: center;
}

/* ---------- Science / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bloom-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 18px 0 10px;
}
.step p { margin: 0; color: var(--muted); }

.pull-quote {
  margin: clamp(44px, 7vw, 72px) auto 0;
  max-width: 760px;
  text-align: center;
  border: 0;
  padding: 0;
}
.pull-quote p {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.3;
  margin: 0;
}
.pull-quote em { color: var(--accent); }
.credibility {
  text-align: center;
  max-width: 60ch;
  margin: 26px auto 0;
  color: var(--muted);
}

/* ---------- Investors ---------- */
.investors-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  margin-top: 16px;
  align-items: stretch;
}
.investor-featured {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.investor-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 100% 0%, var(--bloom-soft), transparent 60%);
  pointer-events: none;
}
.featured-logo { position: relative; margin-bottom: 22px; }
.featured-logo img { height: 30px; width: auto; }
.featured-tag {
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 14px;
}
.featured-blurb {
  position: relative;
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}
.backers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}
.backers-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.backers-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.backers-list li {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.backers-list li:last-child { border-bottom: 0; }

/* ---------- Team ---------- */
.team-lede { margin-bottom: 36px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.member {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 22px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: linear-gradient(160deg, var(--bloom-soft), var(--bloom));
  color: var(--accent-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.member h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.member p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(80% 100% at 50% 0%, var(--bloom-soft), transparent 60%),
    var(--bg);
  text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--accent);
  text-decoration: none;
  margin: 26px 0 8px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.contact-email:hover { border-color: var(--accent); }
.contact-meta { color: var(--muted); margin: 8px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 52px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand-mark { color: var(--accent); }
.footer-backed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-tech-logo { display: inline-flex; height: 14px; }
.footer-tech-logo img { height: 14px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.reg-note { font-style: italic; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .bloom-stage { width: min(320px, 70%); }
  .meliora-grid { grid-template-columns: 1fr; }
  .meliora-visual { margin-top: 8px; }
  .investors-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .pill-tech { display: none; }
  .header-right { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { gap: 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bloom-1, .bloom-2, .bloom-3 { animation: none; }
}
