/* =====================================================================
   InSci Food Solution — Design System
   CI: green #72BF44 + deep blue #2C3691 (sampled from logo)
   Type: Anuphan (display, TH/EN) + IBM Plex Sans Thai (body)
   ===================================================================== */

:root {
  /* --- Brand (from logo) --- */
  --green-500: #72BF44;   /* primary leaf green */
  --green-600: #5AA630;
  --green-700: #4A8A26;
  --green-300: #A8D97E;
  --green-100: #E8F4DC;
  --green-50:  #F3F9EC;

  --blue-700:  #2C3691;   /* deep royal blue */
  --blue-800:  #232B73;
  --blue-900:  #1A2057;
  --blue-500:  #4751B8;
  --blue-300:  #9AA1E0;
  --blue-100:  #E4E6F5;
  --blue-50:   #F0F1FA;

  /* --- Neutrals (warm-cool clean) --- */
  --ink-900: #14172B;     /* near-black, blue-biased */
  --ink-700: #3A3F58;
  --ink-500: #676C82;
  --ink-400: #8B90A4;
  --ink-300: #B7BBC9;
  --line:    #E6E8EF;
  --line-soft:#EFF1F6;

  --bg:        #FBFCF9;   /* off-white, faint green */
  --bg-sunken: #F4F6F0;
  --surface:   #FFFFFF;
  --surface-blue: #F0F1FA;

  /* --- Semantic --- */
  --brand: var(--green-600);
  --brand-ink: var(--blue-700);
  --accent: var(--green-500);

  /* --- Type --- */
  --font-display: 'Plus Jakarta Sans', 'Anuphan', system-ui, sans-serif;
  --font-body: 'Anuphan', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* --- Radius (rounded, friendly — echoes logo) --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* --- Shadow (soft) --- */
  --sh-sm: 0 1px 2px rgba(20,23,43,.05), 0 2px 6px rgba(20,23,43,.04);
  --sh-md: 0 8px 24px -10px rgba(20,23,43,.14);
  --sh-lg: 0 24px 60px -22px rgba(20,23,43,.22);
  --sh-green: 0 14px 34px -14px rgba(90,166,48,.55);
  --sh-blue: 0 14px 34px -14px rgba(44,54,145,.45);

  /* --- Layout --- */
  --container: 1200px;
  --gutter: 28px;
  --header-h: 76px;
  --ease: cubic-bezier(.32,.72,0,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-900);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.028em; line-height: 1.1; color: var(--ink-900); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--green-300); }
.eyebrow.on-dark::before { background: var(--green-300); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .2s var(--ease); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--sh-green); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); opacity:.9; }
.btn-blue { background: var(--blue-700); color:#fff; box-shadow: var(--sh-blue); }
.btn-blue:hover { background: var(--blue-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-700); color: var(--blue-700); background:#fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

.link-arrow {
  display:inline-flex; align-items:center; gap:8px; font-weight:600;
  color: var(--blue-700); font-size: 15px;
}
.link-arrow svg { width:17px; height:17px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------- Section rhythm ---------------- */
.section { padding-block: clamp(72px, 9vw, 132px); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 16px; }
.section-head p { color: var(--ink-500); font-size: 18px; margin-top: 18px; }

/* divider hairline */
.rule { width:40px; height:2px; background: var(--green-500); border-radius:2px; }
