/* ═══ IMBILA.AI DESIGN TOKENS v3.0 ═══ */
/* brand.imbila.ai — single source of truth */

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

:root {
  /* Font — DM Sans. No exceptions. */
  --font:        'DM Sans', system-ui, -apple-system, sans-serif;

  /* Honey Gold — brand accent */
  --honey:       #EDAF42;
  --honey-light: #F5C96E;
  --honey-dark:  #C8922F;
  --honey-deep:  #A67720;
  --honey-wash:  #FAE0A5;
  --honey-10:    rgba(237,175,66,0.10);
  --honey-15:    rgba(237,175,66,0.15);

  /* Blacks */
  --black:       #0A0A0A;
  --black-rich:  #111111;
  --black-soft:  #1A1A1A;

  /* Neutral Scale */
  --grey-900:    #1F1E1E;
  --grey-800:    #2A2A2A;
  --grey-700:    #3D3D3D;
  --grey-600:    #555555;
  --grey-500:    #777777;
  --grey-400:    #999999;
  --grey-300:    #BBBBBB;
  --grey-200:    #DDDDDD;
  --grey-100:    #EEEEEE;
  --grey-50:     #F5F5F5;
  --white:       #FAFAFA;

  /* Semantic */
  --success:     #3A9E6B;
  --warning:     #E8A838;
  --error:       #D94F4F;
  --info:        #4A90B8;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 100px;

  /* Layout */
  --max-width:   960px;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--grey-300);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--honey); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--honey-light); }

img { max-width: 100%; height: auto; }

code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--honey-light);
}

/* ── Container ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ──────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--grey-800);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--honey);
  font-style: italic;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--grey-400);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--honey);
}

/* ── Hero ─────────────────────────────────────── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--honey-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--white);
}

.lead {
  font-size: 1.1rem;
  color: var(--grey-400);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Buttons ──────────────────────────────────── */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  font-family: var(--font);
}

.btn-primary {
  background: var(--honey);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--honey-light);
  color: var(--black);
}

.btn-outline {
  border: 1px solid var(--grey-800);
  color: var(--grey-300);
}

.btn-outline:hover {
  border-color: var(--honey-dark);
  color: var(--honey);
}

/* ── Section headings ─────────────────────────── */
.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
  color: var(--white);
}

/* ── Cards / Grid ─────────────────────────────── */
.features { padding: 3rem 0 4rem; }

.how-it-reads, .self-doc {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--grey-800);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.15s, border-color 0.15s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--grey-700);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.card p {
  color: var(--grey-400);
  font-size: 0.92rem;
}

.card-number {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-dark);
  margin-bottom: 0.75rem;
}

/* ── Page Content ─────────────────────────────── */
.page {
  padding: 3rem 0 4rem;
  flex: 1;
}

.page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.page-content {
  margin-top: 2rem;
  max-width: 64ch;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.025em;
  color: var(--white);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--honey);
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.35rem;
}

.page-content strong { color: var(--white); }

.page-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--honey-light);
}

.page-content pre {
  background: var(--grey-900);
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.page-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--grey-300);
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--grey-800);
  margin: 2.5rem 0;
}

/* Tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.page-content th {
  text-align: left;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--grey-800);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-content td {
  border-bottom: 1px solid var(--grey-800);
  padding: 0.6rem 1rem;
  color: var(--grey-300);
}

.page-content tr:hover td {
  background: var(--honey-10);
}

/* Blockquotes */
.page-content blockquote {
  border-left: 3px solid var(--honey-dark);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--honey-10);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-content blockquote p {
  color: var(--grey-300);
  font-style: italic;
}

/* ── Embeds ───────────────────────────────────── */
.embed-container {
  margin: 2rem 0;
  border: 1px solid var(--grey-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.embed-container iframe {
  display: block;
  width: 100%;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--grey-800);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--grey-500);
}

.site-footer a { color: var(--grey-400); }
.site-footer a:hover { color: var(--honey); }

.site-footer .muted {
  margin-top: 0.25rem;
  color: var(--grey-600);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 600px) {
  .site-header .container { flex-direction: column; text-align: center; }
  .site-header nav { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
}
