/* =========================================================
   JMA Technologies — Design System
   Premium healthtech aesthetic. Custom CSS, no framework.
   ========================================================= */

:root {
  /* Palette */
  --bg:           #FAF8F4;
  --bg-alt:       #F2EDE3;
  --bg-deep:      #ECE5D6;
  --surface:      #FFFFFF;
  --ink:          #0E1B2C;
  --ink-soft:     #4A5868;
  --ink-muted:    #7B8794;
  --primary:      #102A43;
  --primary-2:    #1F4068;
  --primary-3:    #2D6CDF;
  --teal:         #2EB6A8;
  --teal-soft:    #C8EAE5;
  --coral:        #F26A4F;
  --gold:         #D4A85A;
  --sage:         #B5D6C8;
  --line:         #E5DED1;
  --line-strong:  #C9C0AE;

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Sizing */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(14,27,44,.06), 0 1px 3px rgba(14,27,44,.04);
  --shadow:    0 8px 24px rgba(14,27,44,.08), 0 2px 6px rgba(14,27,44,.04);
  --shadow-lg: 0 28px 60px rgba(14,27,44,.14), 0 8px 18px rgba(14,27,44,.06);

  --container: 1200px;
  --gutter: clamp(1.25rem, 3vw, 2.25rem);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--ink); color: var(--bg); }

/* =========================================================
   Typography
   ========================================================= */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); line-height: 1.15; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }

em.s {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--coral);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-2);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary-2);
  display: inline-block;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--primary); color: #EFE7D6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #FFFCF4; }
.section--ink p { color: rgba(255,252,244,.78); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250,248,244,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250,248,244,.92);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; width: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.nav__links {
  display: flex; gap: 2rem; align-items: center;
  font-size: 0.94rem; color: var(--ink-soft);
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--coral); border-radius: 2px;
}
.nav__cta { display: flex; gap: 12px; align-items: center; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.menu-btn span {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
  transition: transform .25s var(--ease);
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-btn span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 76px 0 0 0;
  background: var(--bg);
  padding: 2rem var(--gutter);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 801px) {
  .mobile-nav { display: none; }
}
body.menu-open .mobile-nav { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1.5rem; align-self: flex-start; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 16px rgba(14,27,44,.18);
}
.btn--primary:hover { background: var(--primary-2); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn--coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242,106,79,.32);
}
.btn--coral:hover { background: #E55C42; transform: translateY(-1px); }

.btn--light {
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
}
.btn--light:hover { background: rgba(255,255,255,.22); }

.btn--sm { padding: 10px 16px; font-size: 0.875rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(46,182,168,.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(212,168,90,.14), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(16,42,67,.06), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--coral);
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 30em;
  font-size: clamp(1.05rem, 1.4vw, 1.225rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__ctas { display: flex; gap: 12px; margin-top: 2rem; flex-wrap: wrap; }

.hero__meta {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong {
  font-family: var(--font-display);
  font-size: 1.65rem; font-weight: 400; color: var(--ink);
  letter-spacing: -0.01em;
}
.hero__meta span { font-size: 0.82rem; color: var(--ink-muted); margin-top: 2px; }

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 5/6;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 960px) { .hero__visual { justify-self: center; } }

.hero__card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 12px;
}
.hero__card--main {
  inset: 0 8% 18% 0;
  background:
    linear-gradient(160deg, #14375A 0%, #0E1B2C 70%);
  color: #FFF8E7;
  padding: 1.75rem;
  border: none;
}
.hero__card--main h4 {
  color: #FFF8E7; font-family: var(--font-display); font-weight: 400;
  font-size: 1.4rem; letter-spacing: -0.01em;
}
.hero__card--main p { color: rgba(255,248,231,.7); font-size: 0.9rem; }

.score-ring {
  --p: 78;
  width: 124px; height: 124px;
  border-radius: 50%;
  background:
    conic-gradient(var(--teal) calc(var(--p)*1%), rgba(255,255,255,.1) 0);
  display: grid; place-items: center;
  margin: auto;
}
.score-ring__inner {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #14375A;
  display: grid; place-items: center;
  text-align: center;
}
.score-ring__inner b { font-family: var(--font-display); font-size: 1.85rem; color: #fff; font-weight: 400; }
.score-ring__inner span { font-size: 0.7rem; color: rgba(255,255,255,.6); letter-spacing: 0.08em; text-transform: uppercase; }

.hero__card--mini {
  bottom: 0; right: 0;
  width: 56%;
  background: var(--surface);
}
.hero__card--mini .row { justify-content: space-between; }
.hero__card--mini .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 6px; }
.hero__card--mini h4 { font-size: 0.95rem; }
.hero__card--mini p { font-size: 0.82rem; line-height: 1.45; margin-top: 4px; }

.hero__card--bar {
  top: 6%; left: -6%;
  width: 56%;
  background: var(--surface);
}
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--ink-soft); }
.bar { flex: 1; height: 6px; background: var(--bg-deep); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #4FD1C5); border-radius: inherit; }
.bar-row b { color: var(--ink); font-weight: 600; min-width: 30px; text-align: right; }

/* decorative */
.hero__blob {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--teal-soft), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.hero__blob--1 { top: -20px; right: -40px; }
.hero__blob--2 { bottom: -40px; left: -30px; background: radial-gradient(circle at 30% 30%, rgba(242,106,79,.25), transparent 70%); }

/* =========================================================
   Trust strip
   ========================================================= */
.trust {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.trust__lbl {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); text-align: center; margin-bottom: 1.5rem;
}
.trust__row {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
  font-family: var(--font-display); color: var(--ink-muted);
  font-size: 1.1rem; letter-spacing: -0.01em;
}
.trust__row span { display: inline-flex; align-items: center; gap: 8px; }
.trust__row .iso {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.78rem; color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* =========================================================
   Stats / numbers
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 2rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.stat__num em { font-style: italic; color: var(--coral); font-variation-settings: "SOFT" 100, "WONK" 1; }
.stat__num span.unit { font-size: 0.45em; color: var(--ink-soft); }
.stat__lbl { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   Section header
   ========================================================= */
.sec-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.sec-head--left { margin-left: 0; text-align: left; }
.sec-head h2 { margin-top: 1rem; }
.sec-head p { margin-top: 1rem; }

/* =========================================================
   Solution / feature cards
   ========================================================= */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feat__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-alt); color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.feat__icon svg { width: 22px; height: 22px; }
.feat h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
}
.feat p { margin-top: 8px; font-size: 0.95rem; }

.feat--accent { background: var(--primary); border-color: transparent; color: #EFE7D6; }
.feat--accent h3 { color: #fff; }
.feat--accent p { color: rgba(255,255,255,.7); }
.feat--accent .feat__icon { background: rgba(255,255,255,.08); color: var(--teal); }

/* =========================================================
   How it works (timeline)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: stepc;
}
.step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: stepc;
  content: counter(stepc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--coral);
  letter-spacing: 0.08em;
  position: absolute; top: 1.25rem; right: 1.25rem;
}
.step h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem; font-weight: 600;
  margin-top: 1rem;
}
.step p { margin-top: 8px; font-size: 0.95rem; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--primary);
}

/* =========================================================
   Two-column showcase
   ========================================================= */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.showcase--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .showcase--reverse > :first-child { order: 0; } }

.showcase__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 4/3;
}
.showcase__media--clean {
  background: linear-gradient(150deg, #FBF7EE 0%, #F0E5D2 100%);
  display: grid; place-items: center;
  padding: 2rem;
}
.showcase__media svg { width: 100%; max-width: 420px; height: auto; }
.showcase ul.checks { margin-top: 1.5rem; display: grid; gap: 12px; }
.showcase ul.checks li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink); font-size: 0.98rem;
}
.showcase ul.checks li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

/* =========================================================
   Testimonials
   ========================================================= */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.quote p::before { content: "“"; color: var(--coral); margin-right: 4px; }
.quote p::after { content: "”"; color: var(--coral); }
.quote__by {
  display: flex; gap: 12px; align-items: center; margin-top: auto;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--primary-2));
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 0.95rem;
}
.quote__by b { font-weight: 600; font-size: 0.95rem; color: var(--ink); display: block; }
.quote__by span { font-size: 0.85rem; color: var(--ink-muted); display: block; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq {
  max-width: 820px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq__q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq__item.open .faq__q .plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq__a > div {
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.98rem; line-height: 1.6;
  max-width: 56ch;
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #14375A 0%, #0E1B2C 65%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  color: #FFF8E7;
}
.cta-band::before {
  content: "";
  position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(46,182,168,.4), transparent 60%);
  filter: blur(40px);
}
.cta-band::after {
  content: "";
  position: absolute; bottom: -30%; left: -10%; width: 40%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(242,106,79,.3), transparent 60%);
  filter: blur(40px);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #FFFCF4; max-width: 16ch; }
.cta-band p { color: rgba(255,252,244,.78); margin-top: 1rem; max-width: 50ch; }
.cta-band .row { margin-top: 2rem; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--primary);
  color: rgba(255,252,244,.75);
  padding: 4rem 0 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}
.footer .brand img { filter: brightness(0) invert(1); opacity: .9; }
.footer .brand__name { color: #fff; }
.footer h4 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer ul li { margin-bottom: 12px; }
.footer ul a { font-size: 0.95rem; color: rgba(255,252,244,.65); transition: color .2s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer p.tagline {
  margin-top: 1.25rem; max-width: 26em;
  font-size: 0.93rem; color: rgba(255,252,244,.6);
}
.footer__bottom {
  margin-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: rgba(255,252,244,.5);
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
  color: rgba(255,252,244,.7);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: #fff; color: var(--primary); border-color: #fff; }
.socials svg { width: 16px; height: 16px; }

/* =========================================================
   Forms
   ========================================================= */
.form {
  display: grid; gap: 1rem;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-muted);
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(14,27,44,.06);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form__success {
  display: none;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--teal-soft); color: #064E45;
  font-size: 0.95rem;
}
.form.is-sent .form__success { display: block; }
.form.is-sent .form__fields { display: none; }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 14ch;
}
.page-hero .lead { margin-top: 1.5rem; max-width: 38em; }

/* =========================================================
   Team
   ========================================================= */
.team {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--teal), var(--primary));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.member h4 { font-size: 1rem; }
.member span { color: var(--ink-muted); font-size: 0.88rem; display: block; margin-top: 4px; }

/* =========================================================
   Misc
   ========================================================= */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 2.5rem 0;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Mobile tweaks
   ========================================================= */
@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__cta .btn:not(.menu-btn) { display: none; }
  .menu-btn { display: inline-flex; }
}
