/* ─────────────────────────────────────────────────────────────
   The IFA Internet · iTOE · CENProject
   toe.cenproject.org
───────────────────────────────────────────────────────────── */

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

:root {
  /* Core palette */
  --bg:        #06080e;
  --surface:   #0b0f1a;
  --surface-2: #111827;
  --surface-3: #1a2338;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.13);

  /* Brand */
  --gold:    #f5c518;
  --gold-2:  #e0a800;
  --gold-glow: rgba(245,197,24,0.18);
  --primary: #0036f7;
  --primary-2: #0054ff;

  /* Category accents */
  --cat-math:       #f5c518;
  --cat-science:    #4361ee;
  --cat-tech:       #2d9e6b;
  --cat-network:    #0099ff;
  --cat-language:   #7c4dff;
  --cat-tools:      #e9498a;
  --cat-philosophy: #daa520;
  --cat-education:  #e63946;

  /* Text */
  --text:   #e8ecf5;
  --text-2: #8b92a8;
  --text-3: #464e63;

  /* Layout */
  --header-h: 70px;
  --max-w:    1200px;
  --r:        10px;
  --r-sm:     6px;
  --r-lg:     18px;
  --r-xl:     28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.65);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

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

/* ──────────────────────────────────────────────
   HEADER / NAV
─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(6,8,14,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.header__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header__logo-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.header__logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link--cta {
  background: var(--gold);
  color: #000 !important;
  font-weight: 700;
  padding: 7px 16px;
}

.nav-link--cta:hover {
  background: var(--gold-2);
}

/* ──────────────────────────────────────────────
   HERO
─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Network grid pattern */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Radial glow */
.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(0,54,247,0.18) 0%,
    rgba(245,197,24,0.07) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero__glow-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(124,77,255,0.12) 0%,
    transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(245,197,24,0.3);
  background: rgba(245,197,24,0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__title span {
  background: linear-gradient(135deg, var(--gold) 0%, #ffaa00 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.7;
}

.hero__tagline strong {
  color: var(--text);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--gold);
  color: #000;
}

.btn--primary:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.35);
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn--secondary:hover {
  background: var(--surface-3);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Hero orb nodes (decorative network visualization) */
.hero__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__node {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.3;
  animation: float linear infinite;
}

@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

/* ──────────────────────────────────────────────
   STATS BAR
─────────────────────────────────────────────── */
.stats {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}

.stat {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat:last-child { border-right: none; }

.stat__value {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.stat__sub {
  font-size: 0.75rem;
  color: var(--text-2);
}

/* ──────────────────────────────────────────────
   SECTIONS (shared)
─────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--surface);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ──────────────────────────────────────────────
   MISSION PILLARS
─────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.pillar:hover {
  border-color: rgba(245,197,24,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar__symbol {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--gold);
  display: block;
}

.pillar__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

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

/* ──────────────────────────────────────────────
   FEATURED APPS
─────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.featured-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.featured-card::after {
  content: '→';
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
}

.featured-card:hover {
  border-color: var(--card-accent, rgba(245,197,24,0.3));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.featured-card:hover::after {
  color: var(--card-accent, var(--gold));
  transform: translateX(4px);
}

.featured-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.featured-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
  background: var(--card-accent, var(--gold));
}

.featured-card__names {
  flex: 1;
  min-width: 0;
}

.featured-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.featured-card__subtitle {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
}

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

.badge-local {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ──────────────────────────────────────────────
   PLATFORMS CATALOG
─────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
  user-select: none;
}

.filter-tab:hover {
  border-color: var(--border-2);
  color: var(--text);
}

.filter-tab--active {
  color: #000 !important;
  border-color: transparent !important;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.platform-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 22px 48px;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.platform-card:hover {
  border-color: var(--card-accent, rgba(255,255,255,0.15));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.platform-card__cat-bar {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: var(--card-accent, var(--gold));
  width: 32px;
  transition: width 0.2s;
}

.platform-card:hover .platform-card__cat-bar {
  width: 100%;
}

.platform-card__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.platform-card__subtitle {
  font-size: 0.75rem;
  color: var(--card-accent, var(--text-2));
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.platform-card__desc {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.6;
}

.platform-card__arrow {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.18s, transform 0.18s;
}

.platform-card:hover .platform-card__arrow {
  color: var(--card-accent, var(--gold));
  transform: translateX(3px);
}

.platform-card__local-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

.platforms-count {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ──────────────────────────────────────────────
   IFA NETWORKING
─────────────────────────────────────────────── */
.networking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}

/* Center visual */
.networking-center {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.networking-hub {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at center,
    rgba(245,197,24,0.12) 0%,
    transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 0 40px rgba(245,197,24,0.12);
  position: relative;
}

.networking-hub::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(245,197,24,0.2);
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.networking-hub__symbol {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.networking-hub__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
}
.networking-hub__label-top {
  color: var(--gold);
}
.networking-hub__label-sub {
  color: #0099ff;
}

.networking-node {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.networking-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--node-accent, var(--gold));
}

.networking-node:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.networking-node__subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--node-accent, var(--gold));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.networking-node__desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* IfaNetworks subsection */
.ifa-networks {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.ifa-networks__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.ifa-networks__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 24px;
}
.ifa-networks__list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ifa-network-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 32px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-top: 3px solid var(--cat-network);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ifa-network-card:hover {
  background: var(--surface-2);
  border-color: var(--cat-network);
  transform: translateY(-2px);
}
.ifa-network-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.ifa-network-card__url {
  font-size: 0.8rem;
  color: var(--cat-network);
}

/* ──────────────────────────────────────────────
   IFABIT SECTION
─────────────────────────────────────────────── */
.ifabit-section {
  padding: 80px 0;
  text-align: center;
}

.ifabit-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.ifabit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ifabit-symbol {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  position: relative;
}

.ifabit-symbol--ogbe {
  border-color: var(--gold);
  background: rgba(245,197,24,0.08);
  box-shadow: 0 0 24px rgba(245,197,24,0.2);
}

/* Oyeku — bare vertical line, no enclosing circle */
.ifabit-symbol--oyeku-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.ifabit-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.ifabit-label strong { color: var(--text); }

.ifabit-total {
  margin-top: 32px;
  text-align: center;
  padding: 20px 0 4px;
  border-top: 1px solid var(--border);
}
.ifabit-total__number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.ifabit-total__sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 4px;
}
.ifabit-total__note {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 4px;
}

.ifabit-connector {
  font-size: 2rem;
  color: var(--text-3);
  font-weight: 300;
}

/* ──────────────────────────────────────────────
   TOEBIT SECTION
─────────────────────────────────────────────── */
.toebit-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0 40px;
}

.toebit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--toebit-accent);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Primary visual: circle (Ogbe) or line (Oyeku) */
.toebit-primary-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0 8px;
}

.toebit-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--toebit-bg);
  box-shadow: 0 0 28px rgba(245,197,24,0.18);
}

.toebit-line {
  width: 4px;
  height: 72px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(0,54,247,0.45);
}

.toebit-primary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--toebit-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.toebit-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--toebit-accent);
  margin: 0;
}

.toebit-kind {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}

.toebit-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* Representations list */
.toebit-reps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.toebit-reps__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.toebit-rep {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.toebit-rep__sym {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--toebit-accent);
  min-width: 40px;
  width: 40px;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.toebit-sym-crop {
  flex-shrink: 0;
}

.toebit-sym-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
}

.toebit-rep__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.toebit-rep__note {
  font-size: 0.76rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* Closing axiom */
.toebit-axiom {
  text-align: center;
  font-style: italic;
  color: var(--text-3);
  font-size: 0.88rem;
  line-height: 1.75;
  padding: 20px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

/* ──────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────── */

/* 900px — tablet landscape */
@media (max-width: 900px) {
  .header__nav .nav-link:not(.nav-link--cta) { display: none; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--border); }

  .networking-layout { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px 20px; }
}

/* 760px — tablet portrait */
@media (max-width: 760px) {
  .toebit-pair { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section__header { margin-bottom: 48px; }
}

/* 600px — large mobile */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  .section { padding: 56px 0; }
  .section__header { margin-bottom: 36px; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); }

  .pillars { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }

  /* Scrollable filter tabs — prevent wrapping on small screens */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 28px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; }

  .platforms-grid { grid-template-columns: 1fr; }

  .toebit-pair { grid-template-columns: 1fr; }
  .toebit-card { padding: 24px 18px; }
  .toebit-axiom { padding: 16px 18px; }

  .ifabit-display { gap: 20px; margin: 28px 0; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* 480px — small mobile */
@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .header__logo-sub { display: none; }

  .section { padding: 48px 0; }
  .section__header { margin-bottom: 28px; }
  .section__desc { font-size: 0.95rem; }

  .stat { padding: 22px 10px; }
  .stat__value { font-size: 2rem; }
  .stat__label { font-size: 0.8rem; }

  .ifabit-display { gap: 14px; }
  .ifabit-symbol,
  .ifabit-symbol--oyeku-line { width: 64px; height: 64px; }
  .ifabit-symbol { font-size: 1.5rem; }
  .ifabit-symbol--oyeku-line { font-size: 2.8rem; }
  .ifabit-connector { font-size: 1.5rem; }

  .ifa-networks__list { flex-direction: column; align-items: center; }
  .ifa-network-card { width: 100%; max-width: 300px; padding: 16px 24px; }

  .networking-hub { width: 110px; height: 110px; }
  .networking-hub__symbol { font-size: 1.4rem; }
  .networking-hub__label { font-size: 0.62rem; }

  .toebit-rep { gap: 10px; padding: 8px 10px; }
  .toebit-rep__sym { min-width: 32px; width: 32px; font-size: 1.2rem; }
  .toebit-sym-img { width: 36px; height: 36px; }

  .footer { padding: 40px 0 28px; }
  .footer__inner { gap: 24px; }
}

/* ──────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
}

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

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s;
}

.footer__link:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer__axiom {
  font-size: 0.8rem;
  color: var(--text-3);
  font-style: italic;
}

