/* ============================================================
   The Tron Forge Limited — shared design system
   Display: Space Grotesk (geometric, technical)
   Body: Inter (neutral, highly legible)
   ============================================================ */

:root {
  --ink: #12141c;
  --ink-soft: #5c6270;
  --ink-faint: #8a8f9c;
  --line: #e2e4ea;
  --surface: #ffffff;
  --surface-alt: #f5f6fa;
  --surface-deep: #0f1117;
  --brand: #3355ff;
  --brand-dark: #2542cc;
  --brand-2: #00b89c;
  --warn: #c97a00;
  --warn-bg: #fff3e0;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(18,20,28,0.04), 0 8px 24px rgba(18,20,28,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}
p { margin: 0 0 16px; color: var(--ink-soft); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  flex-shrink: 0;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: #fff;
  opacity: 0.9;
}
.primary-nav { display: flex; }
.primary-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.primary-nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; width: 18px; }
.menu-toggle span::after { position: absolute; top: 6px; width: 18px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 0 0;
}
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb li[aria-current="page"] { color: var(--ink-faint); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 13.5px;
  margin: 0 0 14px;
}
.hero h1, .page-title h1 {
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 16ch;
}
.page-title h1 { font-size: 38px; max-width: 22ch; }
.hero p.lede, .page-title p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 32px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-filled { background: var(--brand); color: #fff; }
.btn-filled:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--surface-alt); text-decoration: none; }
.btn-small { padding: 8px 16px; font-size: 13.5px; }

/* Network graphic — represents the ecosystem, used in hero */
.network {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 20px;
}
.network svg { width: 100%; height: 100%; }

.page-title { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }

/* ---------- Section shells ---------- */
section { padding: 68px 0; }
.section-alt { background: var(--surface-alt); }
section h2 { font-size: 30px; margin: 0 0 12px; max-width: 24ch; }
.section-lede { color: var(--ink-soft); font-size: 16.5px; max-width: 62ch; margin: 0 0 40px; line-height: 1.6; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------- Cards / tiles ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--surface); padding: 30px 26px; }
.tile-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 16px; display: block; }
.tile h3 { font-size: 16.5px; margin: 0 0 10px; }
.tile p { font-size: 14.5px; margin: 0; }
.tile a.tile-link { font-size: 13.5px; font-weight: 600; display: inline-block; margin-top: 12px; }

.status-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.status-live { background: #e4f7ef; color: #0a7a51; }
.status-planned { background: var(--warn-bg); color: var(--warn); }

/* Venture / ecosystem cards */
.venture-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.venture-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}
.venture-logo img { object-fit: contain; width: 100%; height: 100%; }
.venture-card h3 { font-size: 22px; margin-bottom: 6px; }
.venture-card p { font-size: 15.5px; }
.venture-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Module grid (MAX AI ecosystem sub-products) */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}
.module-card img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 14px; }
.module-card h4 { font-size: 15px; margin: 0 0 6px; }
.module-card p { font-size: 13px; margin: 0; }

/* ---------- Founder ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.founder-card h3 { font-size: 24px; margin: 0 0 4px; }
.founder-alias { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.founder-card p { font-size: 15.5px; max-width: 64ch; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chip { border: 1px solid var(--line); padding: 8px 16px; border-radius: 16px; font-size: 13.5px; color: var(--ink); background: #fff; }
.chip:hover { background: var(--surface-alt); text-decoration: none; }

.note-box {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  border-radius: 4px;
  color: #6b4d00;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-item { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-item h3 { font-size: 15px; margin: 0 0 6px; }
.contact-item .role { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.contact-item a { font-size: 16px; font-weight: 600; }

/* ---------- Gallery ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--surface-alt), var(--line));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}
.gallery-caption { padding: 14px 16px; }
.gallery-caption h4 { font-size: 14px; margin: 0 0 4px; }
.gallery-caption span { font-size: 12.5px; color: var(--ink-faint); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,17,23,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  background: #fff;
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  padding: 28px;
}
.lightbox-close {
  float: right;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink-soft);
}

/* ---------- Media / press ---------- */
.press-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.press-item:first-child { padding-top: 0; }
.press-date { font-size: 13px; color: var(--ink-faint); margin-bottom: 6px; }
.press-item h3 { font-size: 18px; margin-bottom: 8px; }

.social-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.social-pill {
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.social-pill:hover { background: var(--surface-alt); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #b7bccb; margin: 0; max-width: 46ch; }
.cta-band .btn-filled { background: #fff; color: var(--ink); }
.cta-band .btn-filled:hover { background: #eceffb; }

/* ---------- Legal ---------- */
.legal-content h2 { font-size: 20px; margin: 32px 0 12px; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.legal-updated { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--surface-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 { font-size: 13px; text-transform: none; color: var(--ink); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-tagline { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; max-width: 28ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .primary-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: #fff; display: none; flex-direction: column; padding: 24px; overflow-y: auto; z-index: 99; }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .primary-nav ul li { width: 100%; }
  .primary-nav a { display: block; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); width: 100%; }
  .menu-toggle { display: flex; }
  .nav-cta.desktop-only { display: none; }

  .hero-split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .venture-card { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; }
  .avatar { width: 110px; height: 110px; font-size: 38px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
