/* ==========================================================================
   NymbiLabs Design System — "Warm Cloud"
   Cream paper, forest green, amber sun. Fraunces for voice, Inter for work.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --paper:        #FAF6EF;
  --paper-warm:   #F3EBDC;
  --ink:          #24301F;
  --ink-soft:     #5A6350;
  --green-950:    #17281C;
  --green-900:    #1E3626;
  --green:        #2F5D3E;
  --green-tint:   #E6ECDF;
  --sage:         #A9BE9B;
  --amber:        #E8A33D;
  --amber-deep:   #B97B24;
  --amber-tint:   #F8E9CE;
  --terracotta:   #C6683F;
  --line:         #E3DAC7;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Shape & space */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 1px 2px rgba(36, 48, 31, 0.06), 0 8px 24px rgba(36, 48, 31, 0.07);
  --shadow-lg: 0 2px 4px rgba(36, 48, 31, 0.07), 0 18px 44px rgba(36, 48, 31, 0.12);
  --container: 1120px;
}

/* Base ------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

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

/* Typography --------------------------------------------------------------*/
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
em.flourish { font-style: italic; color: var(--green); }
.accent-i { font-style: italic; color: var(--terracotta); }

.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-deep); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }

p + p { margin-top: 1em; }
a { color: var(--green); text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }

/* Buttons ------------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-900); color: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-tint); color: var(--green-900); }
.btn-amber { background: var(--amber); color: var(--green-950); }
.btn-amber:hover { background: #F0B356; transform: translateY(-1px); box-shadow: var(--shadow); }

/* Header -------------------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg, .brand img { height: 40px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-name span { color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav a.active { color: var(--green); font-weight: 600; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.site-nav .btn { padding: 10px 20px; font-size: 0.9rem; }

/* Hero ----------------------------------------------------------------------*/
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-blob {
  position: absolute; right: -180px; top: -140px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, var(--amber-tint), transparent 72%);
  border-radius: 50%; pointer-events: none;
}
.hero-blob-2 {
  position: absolute; left: -220px; bottom: -260px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, var(--green-tint), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.page-hero { padding: 80px 0 56px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 20px; }

/* Sections --------------------------------------------------------------------*/
section { padding: 72px 0; }
.section-warm { background: var(--paper-warm); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

/* Trust bar / stat band ---------------------------------------------------------*/
.stat-band { background: var(--green-900); color: var(--paper); padding: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--amber); line-height: 1.1; }
.stat-label { font-size: 0.9rem; color: #C8D3BE; margin-top: 6px; }

/* Cards ---------------------------------------------------------------------------*/
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.95rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green); font-size: 1.4rem;
}
.card-icon.amber { background: var(--amber-tint); color: var(--amber-deep); }
.card-icon.terra { background: #F4DFD3; color: var(--terracotta); }

/* Pills & badges ---------------------------------------------------------------------*/
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--green-tint); color: var(--green-900); border: 1px solid var(--sage);
}
.pill.amber { background: var(--amber-tint); color: var(--amber-deep); border-color: var(--amber); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Quote --------------------------------------------------------------------------------*/
.quote {
  border-left: 4px solid var(--amber); background: #FFFDF8; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px 36px; box-shadow: var(--shadow); max-width: 760px;
}
.quote p { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.5; color: var(--ink); }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }

/* Feature list --------------------------------------------------------------------------*/
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.feature-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-tint); color: var(--green); font-weight: 700; font-size: 0.85rem;
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list li strong { color: var(--ink); }

/* Timeline ---------------------------------------------------------------------------------*/
.timeline { list-style: none; position: relative; padding-left: 32px; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -32px; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--amber); border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline .year { font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 1.1rem; margin-right: 8px; }

/* Team -----------------------------------------------------------------------------------------*/
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--paper);
}
.avatar.g { background: var(--green); }
.avatar.a { background: var(--amber); color: var(--green-950); }
.avatar.t { background: var(--terracotta); }
.avatar.s { background: #7E9970; }
.team-card .role { color: var(--amber-deep); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }

/* Case studies -----------------------------------------------------------------------------------*/
.case-card { display: grid; gap: 8px; }
.case-meta { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.result-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.result-num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--green); line-height: 1; }
.result-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; max-width: 20ch; }

/* Tables ---------------------------------------------------------------------------------------------*/
table { width: 100%; border-collapse: collapse; background: #FFFDF8; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th { background: var(--green-900); color: var(--paper); text-align: left; padding: 14px 18px; font-size: 0.9rem; letter-spacing: 0.03em; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
tr:last-child td { border-bottom: none; }

/* Forms ------------------------------------------------------------------------------------------------*/
.form-grid { display: grid; gap: 18px; max-width: 560px; }
label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #FFFDF8; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }

/* CTA band ------------------------------------------------------------------------------------------------*/
.cta-band { background: var(--green-900); color: var(--paper); border-radius: var(--radius-lg); padding: 64px 56px; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--paper); max-width: 22ch; margin-bottom: 14px; }
.cta-band p { color: #C8D3BE; max-width: 52ch; margin-bottom: 28px; }
.cta-band .sun { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232,163,61,0.5), transparent 70%); }

/* Footer ----------------------------------------------------------------------------------------------------*/
.site-footer { background: var(--green-950); color: #B9C6AE; padding: 64px 0 40px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: var(--paper); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #B9C6AE; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(185,198,174,0.2); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }

/* Design-system swatches (brand.html) ---------------------------------------------------------------------------*/
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #FFFDF8; box-shadow: var(--shadow); }
.swatch .chip { height: 92px; }
.swatch .meta { padding: 14px 16px; font-size: 0.85rem; }
.swatch .meta strong { display: block; font-size: 0.95rem; color: var(--ink); }
.swatch .meta code { color: var(--ink-soft); font-size: 0.8rem; }
.type-specimen { border-bottom: 1px dashed var(--line); padding: 22px 0; display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.type-specimen .label { flex: none; width: 150px; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* Layout helpers ------------------------------------------------------------------------------------------------------*/
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Responsive ---------------------------------------------------------------------------------------------------------*/
@media (max-width: 860px) {
  .split-2 { grid-template-columns: 1fr; gap: 40px; }
  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .site-nav { flex-wrap: wrap; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .cta-band { padding: 44px 28px; }
}
