/* =========================================================
   1inventory.io — static site styles
   Brand: deep green + orange, rounded geometric sans
   ========================================================= */

:root {
  --green-950: #062e14;
  --green-900: #0b3d1e;
  --green-800: #0e4d22;
  --green-700: #136b30;
  --green-600: #178038;
  --green-500: #1f9a46;

  --orange: #ffa100;
  --orange-600: #e89100;

  --ink: #0d1b12;
  --body: #37453d;
  --muted: #6b7a70;

  --line: #e4ece7;
  --card: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f3f8f4;
  --bg-mint: #e9f3ec;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 2px 8px rgba(9, 46, 24, .06);
  --shadow-md: 0 18px 40px -18px rgba(9, 46, 24, .28);
  --shadow-lg: 0 40px 80px -30px rgba(9, 46, 24, .35);

  --container: 1160px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }

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

.accent { color: var(--green-600); }
.orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: rgba(14,77,34,.22); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-play .play-ico {
  width: 34px; height: 34px; margin-left: -8px;
  border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; flex: 0 0 auto;
}
.btn-play .play-ico::after {
  content: ""; width: 0; height: 0; margin-left: 2px;
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font-weight: 700; }
.brand span { color: var(--green-600); }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--green-700); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 85% -10%, #dcefe1 0%, rgba(220,239,225,0) 60%),
    linear-gradient(180deg, #eef6f0 0%, #f7fbf8 100%);
  overflow: hidden;
}
.hero .container { padding-block: 72px 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero-lead {
  font-size: 1.18rem; color: var(--body); max-width: 46ch; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: min(330px, 78%); filter: drop-shadow(0 40px 60px rgba(9,46,24,.28)); }
.hero-blob {
  position: absolute; inset: auto; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,128,56,.16), rgba(23,128,56,0) 70%);
  z-index: 0;
}

/* ---------- Feature strip (4 up) ---------- */
.feature-strip { position: relative; z-index: 2; margin-top: 10px; }
.feature-strip .container { padding-bottom: 64px; }
.feat-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.feat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-num {
  font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  color: var(--orange); margin-bottom: 14px;
}
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: var(--bg-mint); display: grid; place-items: center; color: var(--green-800);
}
.feat-icon svg { width: 26px; height: 26px; }
.feat-card p { font-size: .98rem; color: var(--body); margin: 0; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding-block: 88px; }
.section.soft { background: var(--bg-soft); }
.section.mint { background: var(--bg-mint); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: 14px;
}
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* two-column media rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { display: flex; justify-content: center; position: relative; }
.split-media img { border-radius: var(--r-lg); }
.split-media.phone img { width: min(320px, 80%); filter: drop-shadow(var(--shadow-lg)); border-radius: 0; }
.split-media.glow::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,128,56,.18), transparent 70%); z-index: 0;
}

/* generic card grid */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px;
  background: var(--bg-mint); display: grid; place-items: center; color: var(--green-800);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .98rem; color: var(--body); }

/* numbered steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step .step-num {
  font-size: 2.6rem; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: 12px;
  letter-spacing: -.02em;
}

/* ---------- Dark section (You own your data) ---------- */
.section.dark {
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(31,154,70,.35), transparent 55%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #cfe4d6;
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #7fd79a; }
.section.dark .section-head p { color: #b6cdbe; }
.section.dark .card {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12);
  box-shadow: none; backdrop-filter: blur(4px);
}
.section.dark .card p { color: #bcd3c3; }
.section.dark .card .icon { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Mobile / download ---------- */
.download { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.download a { display: inline-block; transition: transform .15s ease; }
.download a:hover { transform: translateY(-2px); }
.download img { height: 52px; width: auto; }

/* ---------- Templates CTA ---------- */
.templates {
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% 120%, rgba(255,161,0,.14), transparent 60%),
    var(--bg-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950); color: #a9c3b2; padding-block: 56px 34px;
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; font-size: 1.15rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: #bcd3c3; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; color: #86a292;
}

/* ---------- Legal pages ---------- */
.legal { padding-block: 64px 40px; }
.legal .container { max-width: 820px; }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h1 { margin-bottom: .2em; }
.legal p, .legal li { color: var(--body); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal address {
  font-style: normal; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 24px; margin-top: 12px;
}
.legal a[href^="mailto"] { color: var(--green-700); font-weight: 600; }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Content is fully visible by default; only hidden/animated when JS is
   active (html.js), so no-JS users always see everything. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1, .hero-lead { max-width: none; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .feat-cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .split-media { order: -1; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
    padding: 8px; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-links { display: flex; flex-direction: column; gap: 0; }
  .nav-menu .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-menu .nav-cta { padding-top: 14px; }
  .nav-menu .btn { width: 100%; justify-content: center; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding-block: 60px; }
}
@media (max-width: 560px) {
  .feat-cards { grid-template-columns: 1fr; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
