/* ==========================================================================
   Roamix — design system & site styles
   Fonts: Geist (400/500), JetBrains Mono (500)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand / accent */
  --accent-dk: #6B8C7A;
  --accent: #9CB5A4;
  --accent-lt: #BCD4C2;
  --accent-vlt: #CFE0D5;

  /* Ink / text & dark UI */
  --ink-2: #1C2424;
  --ink: #2A3434;
  --ink-muted: #6B7F75;

  /* Surface / backgrounds */
  --surface: #FFFFFF;
  --bg: #F4F5F3;
  --surface-2: #ECEEEB;

  /* Semantic */
  --danger: #C44545;
  --danger-bg: #FBEFEF;
  --success: #6B8C7A;
  --success-bg: #EEF5F1;

  /* Typography */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 64px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(28, 36, 36, 0.04), 0 1px 3px rgba(28, 36, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 36, 36, 0.06), 0 2px 4px rgba(28, 36, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(28, 36, 36, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography scale ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

.h1 { font-size: 52px; line-height: 55px; letter-spacing: -0.02em; }
.h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.h3 { font-size: 22px; line-height: 26px; }
.h4 { font-size: 17px; line-height: 22px; }

.body-lg { font-size: 17px; line-height: 26px; }
.body { font-size: 15px; line-height: 24px; }
.body-sm { font-size: 13px; line-height: 20px; }
.caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); }

.muted { color: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dk);
}

.mono { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }

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

.section { padding-block: 96px; }
.section--bg-2 { background: var(--surface-2); }
.section--ink { background: var(--ink-2); color: #fff; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head h2 { margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 15px; height: 15px; }

/* Primary */
.btn--primary { background: var(--ink-2); color: #fff; }
.btn--primary:hover { background: #121818; }
.btn--primary:active { background: #0c1010; }
.btn--primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-lt); }

/* Secondary */
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--surface-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: #fafbfa; }
.btn--secondary:active { background: var(--surface-2); }
.btn--secondary:focus-visible { outline: none; border-color: var(--accent-dk); box-shadow: 0 0 0 3px var(--accent-vlt); }

/* Ghost */
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface); }
.btn--ghost:active { background: var(--surface-2); }

/* Danger */
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #a83a3a; }

/* On dark bg */
.btn--on-ink { background: var(--surface); color: var(--ink); }
.btn--on-ink:hover { background: #f0f1ef; }

/* Sizes */
.btn--sm { padding: 10px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.input,
.textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-muted); opacity: .7; }
.input:focus,
.textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent-dk);
  box-shadow: 0 0 0 3px var(--accent-vlt);
}
.textarea { resize: vertical; min-height: 120px; }

.input.is-error,
.textarea.is-error { border-color: var(--danger); background: var(--danger-bg); }
.field-error { display: none; margin-top: 8px; font-size: 13px; color: var(--danger); }
.field.has-error .field-error { display: block; }
.field.has-error .input,
.field.has-error .textarea { border-color: var(--danger); background: var(--danger-bg); }

/* Notices */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid transparent;
}
.notice--error { background: var(--danger-bg); border-color: rgba(196,69,69,.25); color: #8f3535; }
.notice--success { background: var(--success-bg); border-color: rgba(107,140,122,.3); color: #3e5b4c; }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 20px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-md);
  max-width: max-content;
  margin-inline: auto;
}
.nav__logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  padding-right: 8px;
}
.nav__sep { width: 1px; height: 20px; background: var(--surface-2); margin-inline: 8px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 14px;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--bg); }
.nav__cta { margin-left: 4px; }
.nav__burger {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  color: var(--ink);
}
.nav__burger svg { width: 22px; height: 22px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink-2);
  color: #fff;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__logo { font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.mobile-menu__close { background: transparent; border: none; color: #fff; padding: 8px; }
.mobile-menu__close svg { width: 24px; height: 24px; }
.mobile-menu__links { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__link {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 0;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu__footer { margin-top: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 160px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero__bg::before {
  width: 900px; height: 900px;
  top: -180px; left: 50%; transform: translateX(-42%);
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, rgba(255,255,255,0) 62%);
}
.hero__bg::after {
  width: 620px; height: 620px;
  top: 60px; right: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%);
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; }
.hero h1 { margin-bottom: 24px; }
.hero__sub { max-width: 560px; margin: 0 auto 40px; color: var(--ink-muted); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards / capabilities ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.cap-card { display: flex; flex-direction: column; }
.cap-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cap-card__media {
  border-radius: var(--radius);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-card__media svg { width: 78%; height: auto; }
.cap-card__num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
.cap-card__title { margin-bottom: 10px; }
.cap-card__text { color: var(--ink-muted); }

/* Value cards (Clarity / Craft / Continuity) */
.value-card { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius-lg); padding: 28px; }
.value-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  margin-bottom: 40px;
}
.value-card__icon svg { width: 20px; height: 20px; }
.value-card h3 { margin-bottom: 16px; }
.value-card p { color: var(--ink-muted); margin: 0; }

/* About */
.about__grid { display: grid; grid-template-columns: 460px 1fr; gap: 48px; align-items: start; }
.about__lead p { color: var(--ink-muted); margin: 0 0 20px; }
.about__lead p:first-of-type { margin-top: 24px; }

/* Process steps */
.step-card { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius-lg); padding: 24px; }
.step-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); margin-bottom: 36px;
}
.step-card__icon svg { width: 20px; height: 20px; }
.step-card h4 { margin-bottom: 12px; }
.step-card p { color: var(--ink-muted); margin: 0; font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  color: #fff;
  padding-block: 72px;
}
.cta-band__glow {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 320px;
  background: radial-gradient(ellipse at center, rgba(107,140,122,.35) 0%, rgba(107,140,122,0) 70%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band .eyebrow { display: block; margin-bottom: 20px; color: var(--accent-lt); }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band__text { color: rgba(255,255,255,.7); max-width: 460px; margin: 0; }
.cta-band__right { text-align: right; }
.cta-band__note { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.contact__cards { display: flex; flex-direction: column; gap: 24px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius-lg); padding: 24px; }
.info-card__label { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.info-card__label .eyebrow { color: var(--ink-muted); }
.info-card__label svg { width: 15px; height: 15px; color: var(--ink-muted); }
.info-card__value { font-size: 16px; color: var(--ink); }
.info-card__value.addr { line-height: 24px; }
.info-card__note { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-muted); }

.form-card { background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius-lg); padding: 32px; }
.form-card h3 { margin-bottom: 24px; }
.form-card__disclaimer { margin-top: 16px; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.7); padding-block: 64px 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { font-family: var(--font-mono); font-weight: 500; font-size: 18px; color: #fff; margin-bottom: 20px; }
.footer__about { max-width: 260px; margin: 0; font-size: 15px; }
.footer__col h5 {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
  margin: 0 0 18px;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a { color: rgba(255,255,255,.7); transition: color .15s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__addr { font-style: normal; line-height: 26px; }
.footer__bottom {
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: 14px; color: rgba(255,255,255,.5);
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 96px 24px;
}
.page-404__code { font-family: var(--font-mono); font-size: 96px; font-weight: 500; color: var(--ink-2); line-height: 1; }
.page-404 h1 { margin: 24px 0 12px; }
.page-404 p { color: var(--ink-muted); max-width: 420px; margin: 0 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__right { text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding-block: 64px; }
  .h1 { font-size: 34px; line-height: 38px; }
  .h2 { font-size: 28px; line-height: 32px; }
  .hero { padding-top: 72px; padding-bottom: 96px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .nav { width: 100%; max-width: none; padding: 10px 10px 10px 20px; justify-content: space-between; }
  .nav__links, .nav__sep, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-404__code { font-size: 64px; }
}
