/* ==========================================================================
   RayaILabs — site stylesheet (plain CSS, no preprocessor)
   Palette derived from the RayaILabs landing project file.
   ========================================================================== */
:root {
  --ink:   #14201e;
  --muted: #66716d;
  --paper: #f6f5ef;
  --surface:#fffefa;
  --line:  #dfe3d9;
  --lime:  #c7ef70;
  --teal:  #0b665b;
  --orange:#f07f52;
  --max:   1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px 9px 9px 3px;
  background: var(--teal);
  transform: rotate(-8deg);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  left: 9px;
  top: 8px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.site-nav a { color: #54615c; font-size: .92rem; font-weight: 600; }
.site-nav a:hover { color: var(--teal); }
.site-nav li.active a { color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 3px; }

/* ---------- Generic page layout ---------- */
.page {
  padding: 72px 0 96px;
}
.page-head {
  border-top: 4px solid var(--ink);
  padding-top: 28px;
  margin-bottom: 48px;
}
.eyebrow {
  display: inline-block;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .71rem;
  font-weight: 700;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
  max-width: 800px;
}
.page-head p.lede { max-width: 560px; color: var(--muted); font-size: 1.08rem; margin: 0; }

h2 { font-size: 1.6rem; letter-spacing: -0.03em; marigin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px 22px 22px 22px;
  padding: 26px 24px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.stack { margin-top: 34px; }

/* ---------- Home ---------- */
.hero {
  padding: 84px 0 96px;
}
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.96; letter-spacing: -0.07em; }
.hero h1 span { color: var(--teal); }
.hero p { max-width: 520px; color: var(--muted); font-size: 1.1rem; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  min-height: 46px;
  line-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.button:hover { background: var(--teal); color: #fff; }
.button.secondary {
  background: transparent;
  color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.button.secondary:hover { background: var(--teal); }

/* ---------- Strip ----------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  color: #87908a;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.strip-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Principles / lists ---------- */
.num { font-size: .78rem; color: var(--orange); font-weight: 700; letter-spacing: .04em; }
.principle p, .card p, .service p { color: var(--muted); font-size: .95rem; margin: 0; }

.about-text { max-width: 720px; }
.about-text p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Manifesto band ----------- */
.manifesto {
  background: var(--teal);
  color: #edf5e9;
  padding: 88px 0;
}
.manifesto .wrap { max-width: 800px; }
.manifesto h2 { color: var(--lime); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; }
.manifesto p { color: #c6ddca; font-size: 1.1rem; margin: 22px 0 0; }

/* ---------- Contact form ---------- */
.form-card { max-width: 640px; }
label { display: block; font-size: .8rem; font-weight: 700; margin: 0 0 6px; }
input, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  margin-bottom: 22px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.form-success {
  border: 1px solid var(--teal);
  background: #e7f4d8;
  color: var(--teal);
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 22px;
}
.form-error {
  border: 1px solid #c0392b;
  background: #fbeae7;
  color: #a53224;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: .82rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .site-nav ul { gap: 16px; }
  .page { padding: 48px 0 72px; }
  .hero { padding: 56px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
