/* ============================================================
   WTHEORY.COM — SHARED DESIGN SYSTEM
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F5F7;
  --color-text: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-tertiary: #86868B;
  --color-accent: #0071E3;
  --color-accent-hover: #0077ED;
  --color-accent-light: #E8F1FC;
  --color-accent-gradient: linear-gradient(135deg, #0071E3 0%, #2997FF 100%);
  --color-dark: #1D1D1F;
  --color-dark-surface: #161617;
  --color-dark-surface-alt: #2C2C2E;
  --color-border: #D2D2D7;
  --color-border-light: #E8E8ED;
  --color-success: #30D158;
  --color-warm: #FF9F0A;
  --color-purple: #BF5AF2;
  --color-pink: #FF375F;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 4px 20px rgba(0,0,0,0.06);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }

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

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
.heading-hero {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.heading-xl {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-lg {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.heading-sm {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-lg {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.text-base {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-sm {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-tertiary);
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn--secondary:hover {
  background: var(--color-accent-light);
}

.btn--dark {
  background: var(--color-dark);
  color: #fff;
}
.btn--dark:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  padding: 10px 16px;
}
.btn--ghost:hover { color: var(--color-accent); }

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* ── NAVIGATION (Floating Pill) ── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(210, 210, 215, 0.45);
  border-radius: 980px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-base);
}

.nav__inner {
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-right: 12px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__links > li {
  position: relative;
}

.nav__links a,
.nav__links .nav__dropdown-trigger {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 980px;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
}

.nav__links a:hover,
.nav__links a.active,
.nav__links .nav__dropdown-trigger:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

/* Dropdown arrow */
.nav__dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
}

/* Dropdown panel */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(210, 210, 215, 0.45);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  list-style: none;
}

.nav__links > li:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav__dropdown a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--color-text);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  padding: 8px;
  color: var(--color-text);
}

/* Mobile nav overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
}

.nav__mobile-menu a:hover {
  color: var(--color-accent);
}

.nav__mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav {
    left: 16px;
    right: 16px;
    transform: none;
  }
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }
}

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 140px 0 64px; }
  .pipeline { padding: 80px 0; }
  .btn--lg { padding: 14px 28px; font-size: 16px; }
  .placeholder-hero { padding: 140px 0 80px; }
  .gi-hero { padding: 120px 0 60px; }
  .legal { padding: 100px 0 60px; }
  .faq-page { padding: 100px 0 60px; }
}

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

.section--dark {
  background: var(--color-dark);
  color: #fff;
}

.section--dark .heading-xl,
.section--dark .heading-lg,
.section--dark .heading-md,
.section--dark .heading-sm {
  color: #fff;
}

.section--dark .text-lg,
.section--dark .text-base {
  color: rgba(255,255,255,0.7);
}

.section--dark .label {
  color: #64D2FF;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section__header .label {
  margin-bottom: 16px;
  display: block;
}

.section__header .heading-xl {
  margin-bottom: 16px;
}

/* ── HERO (Corporate) ── */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.hero__title {
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero__title-accent {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  max-width: 680px;
  margin: 0 auto 48px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-bar__number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.stats-bar__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── STORY BLOCK (Text + Media side-by-side) ── */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story--reverse {
  direction: rtl;
}

.story--reverse > * {
  direction: ltr;
}

.story__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story__content .label {
  display: block;
}

.story__content .heading-lg {
  margin: 0;
}

.story__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.story__stat-number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  line-height: 1;
}

.story__stat-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.story__media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 4 / 3;
}

.story__media img,
.story__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-tertiary);
  border: 2px dashed var(--color-border-light);
  border-radius: var(--radius-2xl);
  min-height: 300px;
}

@media (max-width: 768px) {
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story--reverse {
    direction: ltr;
  }
}

/* ── QUOTE BLOCK ── */
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-block__text {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--color-text);
  font-style: italic;
}

.quote-block__source {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-tertiary);
  font-style: normal;
}

/* ── ROUTING GRID (Homepage Cards) ── */
.routing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.routing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: 44px 40px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.routing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.routing-card__label {
  display: block;
  margin-bottom: 20px;
}

.routing-card__problem {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.routing-card__solution {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 28px;
  font-weight: 500;
}

.routing-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.routing-card__cta:hover {
  gap: 10px;
}

.routing-card__cta::after {
  content: '\2192';
}

@media (max-width: 768px) {
  .routing-grid {
    grid-template-columns: 1fr;
  }
  .routing-card {
    padding: 32px 28px;
  }
}

/* ── PIPELINE (Dark CTA Section) ── */
.pipeline {
  padding: 120px 0;
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  border-bottom: 1px solid var(--color-dark-surface-alt);
}

.pipeline .heading-xl {
  color: #fff;
  max-width: 720px;
  margin: 0 auto 20px;
}

.pipeline .text-lg {
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── LEGAL PAGE STYLES ── */
.legal {
  padding: 120px 0 80px;
}

.legal h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal .subtitle {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 30px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 8px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
}

.legal p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 12px 0;
}

.legal ul, .legal ol {
  padding-left: 24px;
  margin: 12px 0;
}

.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.legal a {
  color: var(--color-accent);
}

.legal a:hover {
  text-decoration: underline;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}

.legal th, .legal td {
  border: 1px solid var(--color-border-light);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}

.legal th {
  background: var(--color-surface-alt);
  font-weight: 600;
}

.legal .highlight {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 4px;
}

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

/* ── FAQ PAGE STYLES ── */
.faq-page {
  padding: 120px 0 80px;
}

.faq-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.faq-toc h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.faq-toc ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

.faq-toc li { margin-bottom: 6px; }

.faq-toc a {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
}

.faq-toc a:hover { text-decoration: underline; }

.faq-section-heading {
  font-size: 22px;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:last-child { border-bottom: none; }

.faq-item details { padding: 0; }

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: 400;
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-item details[open] > summary::before {
  content: '\2212';
  background: var(--color-accent);
  color: #fff;
}

.faq-item details[open] > summary {
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 0 18px 32px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 20px; margin: 8px 0; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer strong { color: var(--color-text); }
.faq-answer a { color: var(--color-accent); }
.faq-answer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .faq-toc ul { columns: 1; }
}

/* ── SUPPORT PAGE STYLES ── */
.support-contact {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  padding: 14px 18px;
  margin-bottom: 40px;
  border-radius: 4px;
  font-size: 15px;
}

.support-contact a {
  color: var(--color-accent);
  font-weight: 600;
}

.support-contact a:hover { text-decoration: underline; }

/* ── PLACEHOLDER PAGE (Coming Soon) ── */
.placeholder-hero {
  padding: 180px 0 120px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.placeholder-hero .label {
  display: block;
  margin-bottom: 16px;
}

.placeholder-hero .heading-xl {
  max-width: 720px;
  margin: 0 auto 20px;
}

.placeholder-hero .text-lg {
  max-width: 600px;
  margin: 0 auto 40px;
}

.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}

/* ── GLOBAL INTELLIGENCE PAGE ── */
.gi-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.gi-hero .label {
  display: block;
  margin-bottom: 16px;
}

.gi-category .label {
  display: block;
  margin-bottom: 12px;
}

.gi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gi-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gi-card__preview {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
}

.gi-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gi-card:hover .gi-card__preview img {
  transform: scale(1.05);
}

.gi-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.gi-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  flex: 1;
  margin-bottom: 16px;
}

.gi-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.gi-card__link::after {
  content: ' \2192';
}

.gi-card:hover .gi-card__link {
  color: var(--color-accent-hover);
}

@media (max-width: 900px) {
  .gi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gi-grid {
    grid-template-columns: 1fr;
  }
  .gi-hero {
    padding: 120px 0 60px;
  }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
