/* ─────────────────────────────────────────────────────────────────────────────
   IfaDiagram — Ifa Diagram · DiagroE
   The IFA Internet · CENProject
   ifainternet.org/ifagram-ifa-diagram-diagroe/
───────────────────────────────────────────────────────────────────────────── */

/* ── Reset & Root ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Gold */
  --gold:        #f5c518;
  --gold-lt:     #ffd740;
  --gold-dk:     #c49b00;

  /* Violet */
  --violet:      #a855f7;
  --violet-lt:   #c084fc;

  /* Red */
  --red:         #e03050;
  --red-lt:      #ff6080;

  /* Electric / Jade */
  --electric:    #14b8d4;
  --jade:        #00c87c;

  /* Backgrounds */
  --bg:          #04070f;
  --bg-2:        #060a14;
  --bg-3:        #080e1c;
  --bg-card:     rgba(6, 10, 20, 0.82);
  --bg-glass:    rgba(8, 14, 28, 0.60);

  /* Text */
  --text-1:      #eef3ff;
  --text-2:      #6a8db4;
  --text-3:      #2a4060;

  /* Borders */
  --border:      rgba(245, 197, 24, 0.10);
  --border-2:    rgba(245, 197, 24, 0.24);
  --border-v:    rgba(168, 85, 247, 0.18);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
strong { color: var(--text-1); font-weight: 600; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  border: none;
}
.btn:hover { transform: translateY(-2px); opacity: 0.93; }

.btn--primary {
  background: var(--gold);
  color: #04070f;
  box-shadow: 0 4px 22px rgba(245, 197, 24, 0.28);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(245, 197, 24, 0.42);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(245, 197, 24, 0.38);
}
.btn--ghost:hover {
  background: rgba(245, 197, 24, 0.06);
  border-color: var(--gold);
}

/* ── Section Base ─────────────────────────────────────────────────────────── */
.section          { padding: 100px 0; }
.section--alt     { background: var(--bg-2); }
.section--dark    { background: var(--bg-3); }

.section__header  { margin-bottom: 56px; }
.section__header--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
}

.section__eyebrow--gold {
  color: var(--gold-lt);
  border: 1px solid rgba(245, 197, 24, 0.26);
  background: rgba(245, 197, 24, 0.06);
}
.section__eyebrow--gold::before { background: var(--gold-lt); }

.section__eyebrow--violet {
  color: var(--violet-lt);
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(168, 85, 247, 0.06);
}
.section__eyebrow--violet::before { background: var(--violet-lt); }

.section__eyebrow--jade {
  color: var(--jade);
  border: 1px solid rgba(0, 200, 124, 0.26);
  background: rgba(0, 200, 124, 0.06);
}
.section__eyebrow--jade::before { background: var(--jade); }

.section__eyebrow--electric {
  color: var(--electric);
  border: 1px solid rgba(20, 184, 212, 0.26);
  background: rgba(20, 184, 212, 0.06);
}
.section__eyebrow--electric::before { background: var(--electric); }

.section__eyebrow--red {
  color: var(--red-lt);
  border: 1px solid rgba(224, 48, 80, 0.26);
  background: rgba(224, 48, 80, 0.06);
}
.section__eyebrow--red::before { background: var(--red-lt); }

.section__title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1.18;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 620px;
}
.section__header--center .section__subtitle { margin-left: auto; margin-right: auto; }

.accent--gold {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent--red {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header__logo { height: 28px; width: auto; display: block; }

.header__site {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header__name {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
  line-height: 1.2;
}

.header__name--main {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 5px;
  transition: color 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text-1);
  background: rgba(245, 197, 24, 0.06);
}

.nav-link--cta {
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(245, 197, 24, 0.32);
  border-radius: 5px;
  margin-left: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-link--cta:hover {
  background: rgba(245, 197, 24, 0.10);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.18);
}

/* ── Mobile Bar ───────────────────────────────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(4, 7, 15, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(245, 197, 24, 0.10);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bar__row {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-bar__row::-webkit-scrollbar { display: none; }

.mobile-bar__item {
  flex: 1;
  flex-shrink: 0;
  min-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 3px 8px;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.mobile-bar__item:hover,
.mobile-bar__item:focus { color: var(--gold); }

.mobile-bar__sym {
  font-size: 1.2rem;
  line-height: 1;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__orb--a {
  position: absolute;
  top: -10%;
  right: 2%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__orb--b {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.05) 0%, transparent 65%);
  filter: blur(48px);
  pointer-events: none;
}

.hero__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,197,24,0.18) 30%, rgba(245,197,24,0.42) 50%, rgba(245,197,24,0.18) 70%, transparent 100%);
  animation: scanline 8s linear infinite;
  pointer-events: none;
}
@keyframes scanline {
  0%   { top: -2%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 102%; opacity: 0; }
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero__left  { min-width: 0; }
.hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  border: 1px solid rgba(245,197,24,0.28);
  background: rgba(245,197,24,0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.7); }
}

.hero__title {
  margin-bottom: 20px;
  line-height: 1.08;
}

.hero__title-main {
  display: block;
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold-lt) 45%, #fff8e0 80%, var(--text-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.0;
  margin-bottom: 6px;
}

.hero__title-alt {
  display: block;
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  opacity: 0.82;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.hero__title-sub {
  display: block;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.02em;
  font-style: normal;
}

.hero__tagline {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

/* Gbàgede Iṣẹ́ Ọnà subtitle */
.hero__subtitle {
  display: block;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--gold) 0%, var(--violet) 100%) 1;
  background: linear-gradient(90deg, rgba(245,197,24,0.05) 0%, rgba(168,85,247,0.04) 100%);
  border-radius: 0 6px 6px 0;
  line-height: 1.55;
}

.hero__subtitle-yor {
  display: block;
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--gold) 0%, var(--violet-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3px;
}

/* Desktop: play + sep + arts flow as one italic line */
.hero__subtitle-play,
.hero__subtitle-sep,
.hero__subtitle-arts {
  display: inline;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  font-style: italic;
}

.hero__desc {
  font-size: 1.0rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 24px;
}

.hero__aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero__alias {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid;
  border-color: color-mix(in srgb, var(--alias-color) 40%, transparent);
  background: color-mix(in srgb, var(--alias-color) 8%, transparent);
  color: var(--alias-color);
}

.hero__ctas {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-lemniscate {
  display: block;
  border-radius: 12px;
  max-width: 100%;
}

.hero__diagram-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-top: 10px;
  text-shadow: 0 0 12px rgba(245,197,24,0.5);
}

/* ── Definition Section ───────────────────────────────────────────────────── */
.def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.def-text  { min-width: 0; }

.def-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.def-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.def-block {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.def-block:hover {
  border-color: rgba(245,197,24,0.22);
  box-shadow: 0 4px 24px rgba(245,197,24,0.07);
}

.def-block__icon {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
  margin-top: 2px;
}

.def-block__content { min-width: 0; }

.def-block__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.def-block__body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Subsection ── */
.subsection {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(180,140,60,0.18);
}

.subsection__title {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.subsection__body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.70;
  margin: 0 0 10px;
}

.subsection__body:last-child { margin-bottom: 0; }

.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245,197,24,0.45);
  transition: text-decoration-color 0.15s ease;
}

.text-link:hover { text-decoration-color: var(--gold); }

.ifa-equation {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92em;
  color: var(--gold);
  background: rgba(245,197,24,0.07);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

.def-visual__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-top: 16px;
  letter-spacing: 0.04em;
}

.def-visual__sub {
  font-size: 0.72rem;
  color: var(--text-2);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Key Ifagrams Section ─────────────────────────────────────────────────── */
.ifagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ifagram-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--ig-color, var(--gold)) 22%, transparent);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.ifagram-card:hover {
  border-color: color-mix(in srgb, var(--ig-color, var(--gold)) 50%, transparent);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--ig-color, var(--gold)) 14%, transparent);
  transform: translateY(-3px);
}

.ifagram-card--wide {
  grid-column: 1 / -1;
}

.ifagram-card__canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 8, 0.70);
  border-radius: 8px 8px 0 0;
  padding: 20px 0;
  min-height: 200px;
  overflow: hidden;
}

.ifagram-canvas {
  display: block;
  max-width: 100%;
}

.ifagram-svg {
  display: block;
  margin: auto;
  width: 100%;
  max-width: 220px;
  height: auto;
}

.ifagram-card__info {
  padding: 20px 20px 24px;
}

.ifagram-card__formula {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--ig-color, var(--gold));
  margin-bottom: 6px;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.ifagram-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.ifagram-card__sub {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.ifagram-card__desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.ifagram-card__glow {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ig-color, var(--gold)) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Squaket Display ──────────────────────────────────────────────────────── */
.squaket-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.squaket-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Features Grid ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--fc-color, var(--gold)) 20%, transparent);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--fc-color, var(--gold)) 40%, transparent);
  box-shadow: 0 6px 32px color-mix(in srgb, var(--fc-color, var(--gold)) 10%, transparent);
}

.feature-card__sym {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
}

.feature-card__title {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.feature-card__body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── App Cards ────────────────────────────────────────────────────────────── */
.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid rgba(245,197,24,0.12);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.app-card:hover {
  border-color: rgba(245,197,24,0.30);
  box-shadow: 0 8px 36px rgba(245,197,24,0.10);
  transform: translateY(-4px);
}

.app-card__sym {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 16px;
}

.app-card__title {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.app-card__body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.app-card__arrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.8;
  letter-spacing: 0.05em;
  transition: opacity 0.15s ease;
}
.app-card:hover .app-card__arrow { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-3);
  border-top: 1px solid rgba(245,197,24,0.08);
}

.footer__energy-line {
  height: 2px;
  background: linear-gradient(90deg,
    var(--gold) 0%,
    var(--violet) 33%,
    var(--electric) 66%,
    var(--gold) 100%);
  background-size: 200% 100%;
  animation: energy-line 5s linear infinite;
}
@keyframes energy-line {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.footer__inner {
  display: flex;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.footer__brand { flex: 1; min-width: 0; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__logo-mark { height: 24px; width: auto; }

.footer__tagline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.footer__tagline--sm {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.footer__links-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.footer__link {
  font-size: 0.86rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__link:hover { color: var(--gold); }

.footer__link-inline {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.footer__link-inline:hover { text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid rgba(245,197,24,0.07);
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer__powered {
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer__powered a {
  color: var(--gold);
  text-decoration: none;
}
.footer__powered a:hover { text-decoration: underline; }

/* ── Orisagram Tags ───────────────────────────────────────────────────────── */
.orisagram-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.orisagram-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--red-lt);
  border: 1px solid rgba(224, 48, 80, 0.32);
  background: rgba(224, 48, 80, 0.07);
}

/* ── Ọpọ́nfá Infinity Image Gallery ─────────────────────────────────────── */
.oponifa-gallery {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(245,197,24,0.12);
}

.oponifa-gallery__eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.70;
  margin-bottom: 10px;
}

.oponifa-gallery__heading {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.oponifa-gallery__heading span {
  color: var(--gold);
}

.oponifa-gallery__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.oponifa-gallery__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Transparent PNG — shown on a deep dark card with gold border glow */
.oponifa-gallery__fig--glow {
  background: #020408;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(245,197,24,0.22);
  box-shadow:
    0 0 0 1px rgba(245,197,24,0.06),
    0 0 32px rgba(245,197,24,0.10),
    0 0 64px rgba(245,197,24,0.05),
    inset 0 0 40px rgba(245,197,24,0.03);
}

/* Solid PNG — dark card with subtle warm border */
.oponifa-gallery__fig--solid {
  background: #000;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(180,120,40,0.18);
  box-shadow:
    0 0 0 1px rgba(180,120,40,0.04),
    0 8px 40px rgba(0,0,0,0.55);
}

.oponifa-gallery__img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.oponifa-gallery__cap-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.oponifa-gallery__cap {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-align: center;
}

.oponifa-gallery__cap-sub {
  font-size: 0.70rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* ── Glass Card Utility ───────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

/* Wide desktop — tighten nav spacing when 8 links are present */
@media (max-width: 1300px) {
  .header__nav { gap: 2px; }
  .nav-link { padding: 8px 10px; }
  .nav-link--cta { padding: 8px 14px; }
}

/* Tablet / large mobile — nav collapses to bottom bar */
@media (max-width: 1060px) {
  .hero__layout {
    grid-template-columns: 1fr;
    padding: 56px 24px 88px;
    text-align: center;
  }
  .hero__right { order: -1; }
  .hero__desc  { margin-left: auto; margin-right: auto; }
  .hero__aliases { justify-content: center; }
  .hero__ctas    { justify-content: center; }
  .hero__badge   { margin-left: auto; margin-right: auto; }

  /* Subtitle: stacked block layout for centred hero */
  .hero__subtitle {
    display: block;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-image: none;
    background: none;
    border-radius: 0;
    padding: 14px 0;
    outline: none;
    text-align: center;
    /* Thin gold top / violet bottom rules echo the Ifa·Orisa duality */
    border-top: 1px solid rgba(245,197,24,0.20);
    border-bottom: 1px solid rgba(168,85,247,0.20);
  }
  .hero__subtitle-yor  { font-size: 1.2rem; letter-spacing: 0.05em; margin-bottom: 6px; }
  .hero__subtitle-sep  { display: none; }
  .hero__subtitle-play {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-1);
    font-style: normal;
    letter-spacing: 0.02em;
  }
  .hero__subtitle-arts {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-2);
    font-style: italic;
    letter-spacing: 0.01em;
    margin-top: 3px;
  }

  .def-grid { grid-template-columns: 1fr; gap: 40px; }
  .def-visual { order: -1; }

  /* Subtitle: full-width in single-column layout */
  .section__subtitle { max-width: 100%; }
  .hero__tagline { font-size: 1.0rem; }

  .header__nav { display: none; }
  .mobile-bar  { display: block; }
  /* Use safe-area-inset so content clears the mobile bar on notched devices */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Small tablet / large phone */
@media (max-width: 900px) {
  .ifagram-grid    { grid-template-columns: repeat(2, 1fr); }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .app-cards       { grid-template-columns: repeat(2, 1fr); }
  .ifagram-card--wide { grid-column: 1 / -1; }
  .footer__inner { flex-direction: column; gap: 32px; }

  /* Prevent large orbs from causing horizontal overflow */
  .hero__orb--a,
  .hero__orb--b { width: 320px; height: 320px; }

  /* Squaket: begin scaling brackets down from 240px */
  .squaket-row svg { height: 200px; width: auto; }

  /* Reduce canvas wrap min-height so short canvases don't leave dead space */
  .ifagram-card__canvas-wrap { min-height: 180px; }
}

/* Mobile — single column */
@media (max-width: 700px) {
  .ifagram-grid  { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .app-cards     { grid-template-columns: 1fr; }

  .section__title { font-size: 1.75rem; }
  .section { padding: 56px 0; }

  .hero { min-height: auto; }
  .hero__layout { padding: 48px 20px 88px; }

  /* Mobile bar with 7 items — shrink labels, bigger tap targets */
  .mobile-bar__item { font-size: 0.50rem; padding: 9px 2px 7px; min-height: 56px; letter-spacing: 0.03em; }
  .mobile-bar__sym  { font-size: 1.15rem; }

  /* Canvas wraps: reduce min-height; canvas fills via container-aware JS */
  .ifagram-card__canvas-wrap { min-height: 160px; padding: 16px 0; }

  /* Squaket: scale brackets + lemniscate proportionally */
  .squaket-row svg { height: 170px; width: auto; }
  .squaket-row .ifagram-canvas { transform: scale(0.85); }

  /* Definition visual: less padding on mobile */
  .def-visual { padding: 20px; }

  /* App + feature cards: tighter padding */
  .feature-card,
  .app-card { padding: 22px; }

  /* Subsection: tighter spacing on mobile */
  .subsection { margin-top: 24px; padding-top: 18px; }

  /* Section subtitle and hero tagline — smaller on mobile */
  .section__subtitle { font-size: 0.96rem; }
  .hero__tagline { font-size: 0.95rem; }
  .hero__desc { font-size: 0.96rem; }

  /* Def blocks: tighter on phones */
  .def-block { padding: 16px; }
  .def-blocks { gap: 16px; }

  /* Gallery: single column on narrow screens */
  .oponifa-gallery { margin-top: 36px; padding-top: 28px; }
  .oponifa-gallery__row { grid-template-columns: 1fr; max-width: 480px; gap: 20px; }
  .oponifa-gallery__heading { font-size: 0.96rem; margin-bottom: 24px; }
  .oponifa-gallery__fig--glow,
  .oponifa-gallery__fig--solid { border-radius: 16px; padding: 12px; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .hero__title-main { font-size: 2.9rem; }
  .hero__title-alt  { font-size: 1.15rem; }
  .hero__title-sub  { font-size: 1rem; }
  .hero__tagline    { font-size: 0.95rem; }
  .hero__badge      { font-size: 0.65rem; padding: 5px 12px 5px 8px; }
  .hero__layout     { padding: 36px 16px 88px; }
  .container        { padding: 0 16px; }

  /* Full-width CTAs */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas .btn { justify-content: center; width: 100%; }

  .def-visual { padding: 12px; }
  .section { padding: 48px 0; }
  .section__title { font-size: 1.6rem; }
  .section__header { margin-bottom: 36px; }
  .section__header--center { margin-bottom: 36px; }

  /* Subsection: smaller font + tighter spacing on small phones */
  .subsection { margin-top: 18px; padding-top: 14px; }
  .subsection__title { font-size: 0.92rem; }
  .subsection__body  { font-size: 0.84rem; line-height: 1.62; margin-bottom: 8px; }

  /* Section subtitle tighter */
  .section__subtitle { font-size: 0.92rem; line-height: 1.6; }
  .section__title    { font-size: 1.6rem; }

  /* Def blocks: compact on small phones */
  .def-block { padding: 14px 16px; gap: 12px; }
  .def-blocks { gap: 14px; }
  .def-block__label { font-size: 0.84rem; }
  .def-block__body  { font-size: 0.82rem; }

  /* Gallery: tighter on small phones */
  .oponifa-gallery { margin-top: 28px; padding-top: 20px; }
  .oponifa-gallery__heading { font-size: 0.90rem; margin-bottom: 18px; }
  .oponifa-gallery__eyebrow { font-size: 0.66rem; }
  .oponifa-gallery__fig--glow,
  .oponifa-gallery__fig--solid { border-radius: 12px; padding: 10px; }
  .oponifa-gallery__cap { font-size: 0.74rem; }
  .oponifa-gallery__cap-sub { font-size: 0.65rem; }

  .footer__bottom { flex-direction: column; text-align: center; }

  /* Reduce canvas wrap min-height so cards aren't too tall */
  .ifagram-card__canvas-wrap { min-height: 140px; padding: 12px 0; }

  /* Squaket: tight spacing + smaller brackets + scaled lemniscate */
  .squaket-row          { gap: 4px; }
  .squaket-row svg      { height: 145px; width: auto; }
  .squaket-row .ifagram-canvas { transform: scale(0.75); }
  .ifagram-card--wide .ifagram-card__canvas-wrap { min-height: 150px; }

  /* Tighter card info padding */
  .ifagram-card__info { padding: 16px 16px 20px; }
  .feature-card,
  .app-card           { padding: 18px; }
}

/* Very small phones (≤380px — iPhone SE, Galaxy A series) */
@media (max-width: 380px) {
  .hero__title-main { font-size: 2.4rem; }
  .hero__title-alt  { font-size: 1.0rem; }
  .hero__subtitle      { padding: 10px 0; }
  .hero__subtitle-yor  { font-size: 1.0rem; }
  .hero__subtitle-play { font-size: 0.82rem; }
  .hero__subtitle-arts { font-size: 0.72rem; }
  .hero__badge      { font-size: 0.6rem; letter-spacing: 0.08em; }
  .section__title   { font-size: 1.45rem; }
  .container        { padding: 0 12px; }

  /* Compact cards */
  .ifagram-card__info { padding: 14px 14px 18px; }
  .feature-card,
  .app-card           { padding: 16px; }

  /* Canvas wrap: minimal vertical space at very small sizes */
  .ifagram-card__canvas-wrap { min-height: 120px; padding: 10px 0; }

  /* Footer tighter */
  .footer__inner { padding: 36px 14px 24px; }

  /* Mobile bar: compact */
  .mobile-bar__item { font-size: 0.44rem; padding: 8px 1px 6px; min-height: 52px; letter-spacing: 0.02em; }

  /* Subsection: minimum viable on very small screens */
  .subsection { margin-top: 14px; padding-top: 12px; }
  .subsection__title { font-size: 0.88rem; }
  .subsection__body  { font-size: 0.82rem; line-height: 1.60; margin-bottom: 7px; }

  /* Section and def blocks: absolute minimum */
  .section__subtitle { font-size: 0.88rem; }
  .def-blocks { gap: 12px; }
  .def-block { padding: 12px 14px; }
  .def-block__label { font-size: 0.82rem; }
  .def-block__body  { font-size: 0.80rem; }

  /* Gallery: minimum viable on very small phones */
  .oponifa-gallery { margin-top: 20px; padding-top: 16px; }
  .oponifa-gallery__heading { font-size: 0.84rem; margin-bottom: 14px; }
  .oponifa-gallery__eyebrow { font-size: 0.62rem; margin-bottom: 6px; }
  .oponifa-gallery__fig--glow,
  .oponifa-gallery__fig--solid { padding: 8px; border-radius: 10px; }
  .oponifa-gallery__cap { font-size: 0.70rem; }
  .oponifa-gallery__cap-sub { font-size: 0.62rem; }

  /* Squaket: minimum viable size for very small phones */
  .squaket-row svg      { height: 120px; width: auto; }
  .squaket-row .ifagram-canvas { transform: scale(0.65); }
  .ifagram-card--wide .ifagram-card__canvas-wrap { min-height: 120px; }
}
