/* ============================================================
   Fresh Strategies — Showcase site styles
   Brand foundation + landing page. Vanilla CSS, no build step.
   ============================================================ */

:root {
  /* Brand */
  --fs-ink: #0E1F18;
  --fs-primary: #16875A;       /* fresh green */
  --fs-primary-deep: #0C5A3B;
  --fs-primary-soft: #E7F3EC;
  --fs-accent: #E0A019;        /* warm gold */
  --fs-accent-soft: #FBF1DC;

  /* Neutrals */
  --fs-bg: #F4F7F5;
  --fs-surface: #FFFFFF;
  --fs-surface-2: #F9FBFA;
  --fs-text: #1C2B25;
  --fs-text-muted: #5C6B64;
  --fs-border: #E2E8E4;
  --fs-border-strong: #CBD5CF;

  /* Sector accents */
  --sector-ag: #16875A;
  --sector-ag-soft: #E7F3EC;
  --sector-elec: #1E4E8C;
  --sector-elec-soft: #E6EEF8;
  --sector-fin: #0E7C7B;
  --sector-fin-soft: #E2F1F1;
  --sector-platform: #6B4FA0;
  --sector-platform-soft: #EFEAF7;

  /* System */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 26, .06), 0 1px 3px rgba(16, 33, 26, .04);
  --shadow-md: 0 4px 16px rgba(16, 33, 26, .08), 0 2px 6px rgba(16, 33, 26, .05);
  --shadow-lg: 0 18px 50px rgba(16, 33, 26, .14);
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { color: var(--fs-ink); line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--fs-primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--fs-text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 650; font-size: .98rem;
  padding: .72rem 1.3rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--fs-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--fs-primary-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--fs-ink); border-color: var(--fs-border-strong); }
.btn-ghost:hover { border-color: var(--fs-primary); color: var(--fs-primary-deep); background: var(--fs-surface); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 245, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--fs-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--fs-ink); font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--fs-text-muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--fs-ink); text-decoration: none; }
.nav-links a.nav-cta { color: #fff; margin-left: .4rem; }
.nav-links a.nav-cta:hover { color: #fff; }
@media (max-width: 820px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, var(--fs-primary-soft), transparent 60%),
    radial-gradient(700px 380px at 8% 12%, var(--fs-accent-soft), transparent 58%);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fs-primary-deep); background: var(--fs-surface);
  border: 1px solid var(--fs-border); border-radius: 999px; padding: .35rem .85rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: var(--fs-text-muted); max-width: 56ch; margin-top: .4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3rem; }
.hero-stat .n { font-size: 2.1rem; font-weight: 800; color: var(--fs-ink); letter-spacing: -.02em; }
.hero-stat .l { font-size: .9rem; color: var(--fs-text-muted); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }
.section-head .eyebrow { margin-bottom: .8rem; }
.section-head p { color: var(--fs-text-muted); font-size: 1.08rem; }

/* ---------- Sector groups ---------- */
.sector { margin-bottom: 3.2rem; }
.sector-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--fs-border); }
.sector-dot { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.sector-head h3 { font-size: 1.35rem; margin: 0; }
.sector-head .count { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--fs-text-muted); background: var(--fs-surface); border: 1px solid var(--fs-border); padding: .25rem .7rem; border-radius: 999px; }

/* ---------- App cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.app-card {
  display: flex; flex-direction: column;
  background: var(--fs-surface); border: 1px solid var(--fs-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--fs-border-strong); }
.app-card__preview {
  height: 168px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft, var(--fs-primary-soft)), #fff);
  border-bottom: 1px solid var(--fs-border);
  display: flex; align-items: center; justify-content: center;
}
.app-card__chip {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  color: var(--accent, var(--fs-primary-deep)); background: rgba(255,255,255,.9);
  border: 1px solid var(--fs-border); padding: .25rem .6rem; border-radius: 999px;
}
.app-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.app-card__body h4 { font-size: 1.18rem; margin: 0 0 .5rem; }
.app-card__ns { margin: 0 0 .9rem; font-size: .92rem; }
.app-card__ns b { color: var(--fs-ink); }
.app-card__need { color: var(--fs-text-muted); }
.app-card__solve { color: var(--fs-text); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 1.1rem; }
.tag { font-size: .73rem; font-weight: 600; color: var(--fs-text-muted); background: var(--fs-surface-2); border: 1px solid var(--fs-border); border-radius: 6px; padding: .18rem .5rem; }
.app-card__foot { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.app-card__foot .btn { padding: .55rem 1.05rem; font-size: .9rem; }
.app-card__foot .nodemo { font-size: .82rem; color: var(--fs-text-muted); font-style: italic; }

/* Mini device mockups inside card previews (pure CSS) */
.mini { width: 78%; max-width: 260px; border-radius: 10px 10px 0 0; box-shadow: var(--shadow-md); overflow: hidden; background: #fff; border: 1px solid var(--fs-border); position: relative; top: 14px; }
.mini__bar { height: 26px; background: var(--accent, var(--fs-primary)); display: flex; align-items: center; padding: 0 10px; gap: 5px; }
.mini__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); display: block; }
.mini__body { padding: 10px; display: grid; gap: 6px; }
.mini__row { height: 9px; border-radius: 4px; background: var(--fs-surface-2); }
.mini__row.s { width: 55%; } .mini__row.m { width: 78%; } .mini__row.l { width: 92%; }
.mini__row.hi { background: var(--accent-soft, var(--fs-primary-soft)); }
.mini__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini__tile { height: 30px; border-radius: 6px; background: var(--fs-surface-2); border: 1px solid var(--fs-border); }
.mini__tile.accent { background: var(--accent-soft, var(--fs-primary-soft)); }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cap {
  background: var(--fs-surface); border: 1px solid var(--fs-border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.cap .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; background: var(--sector-platform-soft); color: var(--sector-platform); }
.cap h4 { font-size: 1.05rem; margin: 0 0 .4rem; }
.cap p { font-size: .9rem; color: var(--fs-text-muted); margin: 0; }

/* ---------- Process strip ---------- */
.process { background: var(--fs-ink); color: #fff; border-radius: 22px; padding: 44px; }
.process h2 { color: #fff; }
.process .muted { color: #aebcb4; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 28px; }
.step .num { font-size: .8rem; font-weight: 700; color: var(--fs-accent); letter-spacing: .08em; }
.step h4 { color: #fff; font-size: 1.05rem; margin: .35rem 0 .35rem; }
.step p { color: #aebcb4; font-size: .9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, var(--fs-primary-soft), var(--fs-accent-soft)); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { margin-bottom: .5rem; }
.contact .lead { color: var(--fs-text-muted); font-size: 1.05rem; }
.contact-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.contact-actions .btn { justify-content: center; }
.contact-card { background: var(--fs-surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 650; color: var(--fs-ink); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--fs-text);
  padding: .65rem .8rem; border: 1.5px solid var(--fs-border-strong); border-radius: var(--radius-sm);
  background: var(--fs-surface-2); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fs-primary); box-shadow: 0 0 0 3px var(--fs-primary-soft); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: .8rem; color: var(--fs-text-muted); margin-top: .4rem; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Footer ---------- */
footer { padding: 40px 0; border-top: 1px solid var(--fs-border); color: var(--fs-text-muted); font-size: .9rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.disclaimer { background: var(--fs-surface); border: 1px solid var(--fs-border); border-left: 3px solid var(--fs-accent); border-radius: 8px; padding: 12px 16px; font-size: .85rem; color: var(--fs-text-muted); margin-top: 18px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
