/* ==========================================================================
   Afrirely Limited — Design tokens
   Edit these values to re-skin the whole site.
   ========================================================================== */

:root {
  /* Palette: 1 brand + neutrals + 1 accent */
  --brand: #0b6b3a;          /* Afrirely green */
  --brand-deep: #06381f;     /* darkest green, used for hero + footer */
  --brand-soft: #e8f2ec;     /* tinted surface */
  --accent: #d98523;         /* clay/gold accent */

  --ink: #10201a;            /* primary text */
  --ink-muted: #55665f;      /* secondary text */
  --surface: #ffffff;
  --canvas: #f7f9f8;
  --line: #dde5e1;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(6, 56, 31, 0.05), 0 12px 32px -20px rgba(6, 56, 31, 0.35);

  --maxw: 1140px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; text-wrap: pretty; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: 5rem;
}

.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.section__head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: 1.075rem;
  color: var(--ink-muted);
  max-width: 44rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #095a30; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--on-dark {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.18); }

.btn .ico { width: 1.05em; height: 1.05em; flex: none; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__suffix { color: var(--ink-muted); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--brand); text-decoration: none; }

/* the CTA inside the nav is a button, not a muted link */
.nav a.btn--primary { color: #fff; }
.nav a.btn--primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.85rem; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep);
  color: #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 20%, transparent 72%);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  padding-block: clamp(4rem, 10vw, 7rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 940px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__lede {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero .eyebrow { color: var(--accent); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__meta div { min-width: 8rem; }
.hero__meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hero__meta dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

/* Hero side panel: live index of ventures */
.hero__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.hero__panel h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }

.panel-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.925rem;
  transition: background 0.15s ease;
}
.panel-list a:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.panel-list .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex: none;
  background: var(--accent);
}
.panel-list .dot--live { background: #43c47f; }
.panel-list .dot--soon { background: rgba(255, 255, 255, 0.3); }
.panel-list .panel-list__host {
  margin-left: auto;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Venture cards
   ========================================================================== */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.venture {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.venture:hover { transform: translateY(-3px); border-color: var(--brand); }
.venture--soon { box-shadow: none; background: transparent; border-style: dashed; }
.venture--soon:hover { transform: none; border-color: var(--line); }

.venture__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.venture__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.venture__icon svg { width: 1.4rem; height: 1.4rem; }
.venture--soon .venture__icon { background: var(--canvas); color: var(--ink-muted); }

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
}
.tag--soon { background: var(--canvas); color: var(--ink-muted); border: 1px solid var(--line); }
.tag--beta { background: #fdf1e0; color: #97570d; }

.venture h3 { margin-bottom: 0.4rem; }

.venture__sector {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.7rem;
}

.venture p { color: var(--ink-muted); font-size: 0.95rem; }

.venture__features {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.venture__features li { display: flex; gap: 0.55rem; align-items: flex-start; }
.venture__features li::before {
  content: "";
  margin-top: 0.5rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}

.venture__foot { margin-top: auto; display: flex; align-items: center; gap: 0.75rem; }

.venture__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.venture__link svg { width: 1em; height: 1em; }
.venture__host {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Capability / step lists
   ========================================================================== */

.feature-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature {
  padding-top: 1.25rem;
  border-top: 2px solid var(--brand);
}
.feature h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.feature p { font-size: 0.925rem; color: var(--ink-muted); margin: 0; }

/* ==========================================================================
   Steps (tech hub — real ordered sequence)
   ========================================================================== */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 1rem;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.25rem;
}

.steps p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); }

/* ==========================================================================
   Notice callout (tech hub — webhook domain explainer)
   ========================================================================== */

.notice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .notice { grid-template-columns: 2.75rem 1fr; gap: 1.5rem; }
}

.notice__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fdf1e0;
  color: #97570d;
  flex: none;
}
.notice__icon svg { width: 1.4rem; height: 1.4rem; }

.notice h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 0.6rem; }
.notice p { color: var(--ink-muted); max-width: 52rem; }
.notice p:last-child { margin-bottom: 0; }
.notice__foot { font-size: 0.95rem; }
.notice strong { color: var(--ink); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

.muted { color: var(--ink-muted); font-size: 0.9em; }

/* Bot handles keep their real casing even inside uppercased labels */
.handle { text-transform: none; letter-spacing: 0; }

/* Non-linked rows inside the hero index panel */
.panel-list__static {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.925rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-list dd { margin: 0.2rem 0 0; font-size: 1.02rem; }

.form-row { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; }

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.form-row textarea { min-height: 7.5rem; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.form-note { font-size: 0.85rem; color: var(--ink-muted); }

.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.form-status[hidden] { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 3rem 2rem;
  font-size: 0.925rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }

.site-footer .brand { color: #fff; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.9rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

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