:root {
  color-scheme: light;
  background: #ffffff;
  color: #111111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0;
  background: #ffffff;
  color: #111111;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 35%);
  pointer-events: none;
}

.site-header {
  position: relative;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  animation: fadeInDown 0.8s ease-out both;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 72px;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4b5563;
}

.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  animation: fadeIn 0.9s ease-out both 0.2s;
}

.site-nav a {
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: #111111;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #111111;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 12px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 32px;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.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;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(248, 250, 252, 0.98);
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.mobile-nav a {
  color: #111111;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  flex: 1 1 auto;
  min-height: calc(100vh - 210px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-copy {
  width: min(860px, 100%);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  opacity: 0;
  animation: fadeInUp 0.9s ease-out both 0.3s;
}

.hero-pretitle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7280;
}

.hero h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: #111111;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4b5563;
}

.site-footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  color: #6b7280;
  text-align: right;
  animation: fadeIn 0.8s ease-out both 0.4s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.75rem 1.5rem;
  }

  /* show full nav on narrower screens and hide hamburger */
  .site-nav { display: flex; gap: 1rem; justify-content: center; }
  .menu-toggle { display: none; }
}

@media (max-width: 640px) {
  .site-header {
    gap: 1rem;
    text-align: center;
  }

  .brand-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .site-footer {
    text-align: center;
    padding: 1.5rem 1.5rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav,
  .hero-copy,
  .site-footer {
    animation: none !important;
    transition: none !important;
  }
}

/* Bento grid for Truth dependencies */
.bento {
  width: 100%;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.bento-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 110px;
  gap: 1rem;
}

.bento-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: white;
  text-decoration: none;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  transition: transform 260ms cubic-bezier(.2,.9,.28,1), box-shadow 260ms ease;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

.bento-label {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.bento-content { display:flex; gap:0.8rem; align-items:center; }
.bento-icon { width:44px; height:44px; flex:0 0 44px; opacity:0.95; transition: transform 260ms ease; }
.bento-meta { display:flex; flex-direction:column; align-items:flex-start; }
.bento-desc { font-size:0.85rem; opacity:0.95; margin-top:0.2rem; font-weight:600; color: rgba(255,255,255,0.95); }

.bento-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0)); pointer-events: none; }

.bento-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 48px rgba(2,6,23,0.12); }
.bento-item:hover .bento-icon { transform: rotate(8deg) scale(1.05); }

/* Slight floating animation for interest */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
.bento-item { animation: floatY 6s ease-in-out infinite; }
.bento-item:nth-child(even) { animation-delay: 0.6s; }
.bento-item:nth-child(3n) { animation-delay: 1.1s; }

/* give variety by spanning some items */
.bento-ads { background: linear-gradient(135deg,#ff7a7a,#ff4a4a); grid-column: 1 / span 2; grid-row: 1 / span 2; }
.bento-labs { background: linear-gradient(135deg,#7bd389,#35c07b); grid-column: 3 / span 1; grid-row: 1 / span 1; }
.bento-media { background: linear-gradient(135deg,#6ea8ff,#3b82f6); grid-column: 4 / span 1; grid-row: 1 / span 2; }
.bento-analytics { background: linear-gradient(135deg,#ffd36e,#ffb44d); grid-column: 1 / span 1; grid-row: 3 / span 1; }
.bento-studio { background: linear-gradient(135deg,#c78bff,#8b5cf6); grid-column: 2 / span 1; grid-row: 3 / span 1; }
.bento-ventures { background: linear-gradient(135deg,#4fd1c5,#0ea5a2); grid-column: 3 / span 2; grid-row: 2 / span 2; }
.bento-commerce { background: linear-gradient(135deg,#f498c2,#f66aa3); grid-column: 1 / span 1; grid-row: 4 / span 1; }
.bento-support { background: linear-gradient(135deg,#94a3b8,#64748b); grid-column: 2 / span 2; grid-row: 4 / span 1; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 100px; }
  .bento-ads { grid-column: 1 / span 2; grid-row: 1 / span 1; }
  .bento-media { grid-column: 3 / span 1; grid-row: 1 / span 2; }
  .bento-ventures { grid-column: 1 / span 3; grid-row: auto; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 90px; }
  .bento-ads, .bento-media, .bento-ventures { grid-column: auto; grid-row: auto; }
}

/* Header redesign overrides and UI touches */
.site-header {
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));
  backdrop-filter: blur(6px);
  border-bottom: none;
  padding: 1.25rem 2rem;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.logo { width: 56px; height: auto; display: block; }
.brand-text { text-align: left; }
.brand-text .eyebrow { margin: 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #111827; }
.brand-text .tagline { margin: 0; font-size: 0.85rem; color: #6b7280; }

.site-nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
.site-nav a { color: #374151; text-decoration: none; font-weight: 600; padding: 0.25rem 0; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: transparent; transition: background 160ms ease, transform 160ms ease; transform: scaleX(0); transform-origin: left; }
.site-nav a:hover::after { background: linear-gradient(90deg,#3b82f6,#06b6d4); transform: scaleX(1); }

.header-cta { margin-left: 1rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: linear-gradient(90deg,#6366f1,#06b6d4); color: #fff; box-shadow: 0 8px 30px rgba(99,102,241,0.14); }
.btn-ghost { background: transparent; color: #374151; border: 1px solid rgba(55,65,81,0.06); }

.hero { position: relative; overflow: visible; }
.hero-copy { position: relative; background: linear-gradient(180deg, #ffffff, #fbfdff); }
.hero::after { content: ''; position: absolute; right: -120px; top: -60px; width: 240px; height: 240px; background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.12), transparent 30%), radial-gradient(circle at 70% 70%, rgba(6,182,212,0.08), transparent 30%); border-radius: 50%; pointer-events: none; filter: blur(12px); }
.hero-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; justify-content: center; }

/* small decorative accent on page */
.accent-dot { width: 10px; height: 10px; border-radius: 50%; background: #06b6d4; display: inline-block; box-shadow: 0 6px 16px rgba(6,182,212,0.18); }

@media (max-width: 900px) {
  .site-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
  .header-cta { display: block; margin-top: 0.75rem; width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .site-header .header-inner { flex-direction: column; align-items: center; gap: 0.5rem; }
  .brand-text { text-align: center; }
  .logo { width: 48px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
