/* ============================================
   FROBROS THEME — AI For Kids, By Kids
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Space+Mono:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ============ DESIGN TOKENS ============ */
:root {
  --orange: #FF6B1A;
  --orange-bright: #FF8C42;
  --orange-dim: #C44A00;
  --orange-glow: rgba(255, 107, 26, 0.15);
  --bg: #0A0A0B;
  --bg-card: #111114;
  --bg-card2: #18181C;
  --border: rgba(255, 107, 26, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #F0EDE8;
  --text-muted: #BBBBBB;
  --text-dim: #777770;
  --white: #FFFFFF;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 0.25s ease;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }

p { line-height: 1.75; }

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

.section { padding: 100px 0; }

.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============ NAV ============ */
.gh-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.gh-head-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gh-head-brand { display: flex; align-items: center; gap: 12px; }

.gh-head-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-head-logo img {
  height: 80px !important;
  width: auto !important;
  padding: 10px 0;
}


.gh-head-logo .logo-accent { color: var(--orange); }

.logo-svg { width: 36px; height: 36px; flex-shrink: 0; }

.gh-head-menu { display: flex; align-items: center; flex: 1; justify-content: center; }

.gh-head-menu .nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-head-menu .nav li { display: flex; align-items: center; }

.nav-item,
.gh-head-menu .nav li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav-item:hover,
.gh-head-menu .nav li a:hover { color: var(--text); background: var(--bg-card); }
.nav-item.active,
.gh-head-menu .nav .nav-current a { color: var(--white); }

.gh-head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-subscribe {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--orange);
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  transition: background var(--transition), transform 0.1s;
}

.btn-subscribe:hover { background: var(--orange-bright); transform: translateY(-1px); }

.btn-signin {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.btn-signin:hover { color: var(--text); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 130px 40px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 26, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.badge-pulse {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  animation: fadeUp 0.6s 0.1s ease both;
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--orange); }
.hero-title .dim { color: var(--text-muted); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-sub strong { color: var(--text); font-weight: 500; }

/* Email subscribe form */
.hero-subscribe {
  animation: fadeUp 0.6s 0.3s ease both;
}

.subscribe-form {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  max-width: 460px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}

.subscribe-form input::placeholder { color: var(--text-dim); }

.subscribe-form button {
  background: var(--orange);
  border: none;
  padding: 15px 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}

.subscribe-form button:hover { background: var(--orange-bright); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
  animation: fadeUp 0.6s 0.4s ease both;
}

/* Hero visual panel */
.hero-visual {
  animation: fadeUp 0.6s 0.15s ease both;
  position: relative;
  height: 500px;
}

.hero-neural-card {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #0D1520 0%, #0A0A0B 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-float-card {
  position: absolute;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.float-game {
  bottom: 40px;
  left: -20px;
  width: 190px;
  animation: floatY 4s ease-in-out infinite;
}

.float-stat {
  top: 200px;
  right: -16px;
  width: 150px;
  text-align: center;
  background: rgba(255, 107, 26, 0.08);
  border-color: rgba(255, 107, 26, 0.3);
  animation: floatY 5s 1s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.float-game-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 3px;
}

.float-game-by { font-size: 11px; color: var(--orange); }

.float-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 3px;
}

.float-stat-label { font-size: 11px; color: var(--text-muted); }

/* ============ SECTION HEADERS ============ */
.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
}

.section-title { margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

/* ============ GAMES SECTION ============ */
.games-section { padding: 80px 0; background: var(--bg); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 26, 0.08);
}

.game-card.featured { grid-column: span 2; }

.game-thumb {
  height: 160px;
  background: linear-gradient(135deg, #1A1200, #0A0800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  position: relative;
  overflow: hidden;
}

.game-card.featured .game-thumb { height: 200px; }

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg-card));
}

.thumb-basketball { background: linear-gradient(135deg, #2A1500, #1A0800); }
.thumb-food { background: linear-gradient(135deg, #1A2A00, #0A1200); }
.thumb-health { background: linear-gradient(135deg, #001A1A, #000A0A); }

.game-info { padding: 20px 22px 22px; }

.game-creator {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.game-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.game-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-icon {
  width: 22px; height: 22px;
  background: rgba(255, 107, 26, 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  transition: background var(--transition), transform var(--transition);
}

.game-card:hover .play-icon {
  background: var(--orange);
  color: var(--bg);
  transform: scale(1.15);
}

/* ============ F1 SECTION ============ */
.f1-section { padding: 100px 0; }

.f1-banner {
  background: linear-gradient(135deg, #0D1520 0%, #06090E 50%, #1A0800 100%);
  border: 1px solid rgba(255, 107, 26, 0.2);
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.f1-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--orange-bright), transparent);
}

.f1-banner::after {
  content: '';
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(255, 107, 26, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.f1-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.f1-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-radius: 4px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.f1-title { margin-bottom: 16px; }
.f1-title span { color: var(--orange); }

.f1-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 32px;
}

.f1-form {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 26, 0.25);
  max-width: 400px;
}

.f1-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  outline: none;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}

.f1-form input::placeholder { color: var(--text-dim); }

.f1-form button {
  background: var(--orange);
  border: none;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition);
  white-space: nowrap;
}

.f1-form button:hover { background: var(--orange-bright); }

.f1-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.f1-emoji {
  font-size: 80px;
  filter: drop-shadow(0 0 30px rgba(255, 107, 26, 0.35));
  animation: f1drive 3s ease-in-out infinite;
}

@keyframes f1drive {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.f1-stats {
  display: flex;
  gap: 16px;
}

.f1-stat {
  text-align: center;
  background: rgba(255, 107, 26, 0.07);
  border: 1px solid rgba(255, 107, 26, 0.15);
  border-radius: 10px;
  padding: 12px 18px;
}

.f1-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--orange);
}

.f1-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============ LEARN / BLOG SECTION ============ */
.learn-section { padding: 80px 0; background: #111114; }

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

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.post-card.featured { grid-column: span 2; flex-direction: row; }

.post-image {
  height: 180px;
  background: var(--bg-card2);
  overflow: hidden;
  flex-shrink: 0;
}

.post-card.featured .post-image { width: 45%; height: auto; }

.post-image img { width: 100%; height: 100%; object-fit: cover; }

.post-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #1A1A2E, #0A0A0B);
}

.post-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card.featured .post-title { font-size: 22px; }

.post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.post-author-img {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ============ SAI SECTION ============ */
.sai-section { padding: 100px 0; }

.sai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sai-card::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.sai-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-dim), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 54px;
  border: 3px solid rgba(255, 107, 26, 0.3);
  flex-shrink: 0;
  box-shadow: 0 0 50px rgba(255, 107, 26, 0.18);
}

.sai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.sai-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sai-role { font-size: 15px; color: var(--orange); margin-bottom: 16px; }

.sai-bio { font-size: 16px; color: var(--text-muted); line-height: 1.75; max-width: 520px; }

/* ============ SINGLE POST / BLOG ============ */
.post-header {
  padding: 140px 40px 60px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.post-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 26, 0.1);
  border: 1px solid rgba(255, 107, 26, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.post-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
}

.post-header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.post-header-meta .dot { color: var(--text-dim); }

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

/* Ghost content styles */
.gh-content > * + * { margin-top: 1.5em; }

.gh-content p { font-size: 17px; color: var(--text-muted); line-height: 1.8; }

.gh-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.gh-content h3 {
  font-size: 22px;
  color: var(--white);
  margin-top: 1.75em;
  margin-bottom: 0.4em;
}

.gh-content strong { color: var(--white); font-weight: 600; }
.gh-content em { font-style: italic; }

.gh-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

.gh-content ul, .gh-content ol {
  padding-left: 1.5em;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }

.gh-content li + li { margin-top: 0.5em; }

.gh-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 16px 24px;
  background: rgba(255, 107, 26, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  color: var(--text);
  font-style: italic;
}

.gh-content code {
  font-family: var(--font-mono);
  background: var(--bg-card2);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--orange-bright);
}

.gh-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
}

.gh-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}

.gh-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.gh-content hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 3em 0;
}

/* Custom callout box for kids */
.kid-callout {
  background: rgba(255, 107, 26, 0.08);
  border: 1px solid rgba(255, 107, 26, 0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 2em 0;
}

.kid-callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--orange);
  margin-bottom: 8px;
}

/* CLEAR formula cards */
.clear-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 2em 0;
}

.clear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.clear-card:hover { border-color: var(--border); transform: translateY(-3px); }

.clear-letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.clear-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 6px;
}

.clear-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ============ FOOTER ============ */
.gh-foot {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.gh-foot-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.foot-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.foot-logo span { color: var(--orange); }
.foot-copy { font-size: 13px; color: var(--text-dim); }

.foot-links {
  display: flex;
  gap: 24px;
}

.foot-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.foot-links a:hover { color: var(--text-muted); }

.foot-social {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  transition: color var(--transition);
}
.foot-social:hover { color: var(--orange); }

/* ============ UTILITY CLASSES ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .game-card.featured { grid-column: span 1; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: span 1; flex-direction: column; }
  .post-card.featured .post-image { width: 100%; height: 180px; }
  .f1-inner { grid-template-columns: 1fr; }
  .f1-visual { display: none; }
  .sai-card { grid-template-columns: 1fr; text-align: center; }
  .sai-card { justify-items: center; }
  .clear-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .gh-head-inner { padding: 0 20px; }
  .gh-head-menu { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 100px 20px 60px; }
  .games-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .f1-banner { padding: 40px 28px; }
  .sai-card { padding: 40px 28px; }
  .gh-foot-inner { flex-direction: column; text-align: center; }
  .clear-grid { grid-template-columns: 1fr 1fr; }
  .post-header { padding: 120px 20px 40px; }
  .post-body { padding: 0 20px 60px; }
}

/* ============ GHOST KOENIG CARD WIDTHS (required) ============ */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw) * 0.15;
  max-width: 1100px;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image { max-width: 100%; }

.kg-image-card { margin: 1.5em 0; }
.kg-image-card img { border-radius: 12px; }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.kg-bookmark-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: var(--text); }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 6px; }
.kg-bookmark-description { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card { display: flex; gap: 16px; padding: 20px 24px; background: rgba(255,107,26,0.06); border: 1px solid rgba(255,107,26,0.2); border-radius: 12px; }
.kg-callout-emoji { font-size: 22px; flex-shrink: 0; }
.kg-callout-text { font-size: 16px; color: var(--text); line-height: 1.7; }

.kg-toggle-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.kg-toggle-heading { display: flex; justify-content: space-between; padding: 16px 20px; cursor: pointer; }
.kg-toggle-heading-text { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); }
.kg-toggle-content { padding: 0 20px 16px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

.kg-video-card { border-radius: 12px; overflow: hidden; }
.kg-video-card video { width: 100%; display: block; }

.kg-audio-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px 20px; }

.kg-product-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px; }
.kg-product-card-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--white); margin-bottom: 8px; }
.kg-product-card-description { font-size: 14px; color: var(--text-muted); }
.kg-product-card-button { display: inline-block; margin-top: 16px; background: var(--orange); color: var(--bg); padding: 10px 20px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }

.kg-header-card { padding: 60px 40px; text-align: center; background: var(--bg-card); border-radius: 16px; }
.kg-header-card-header { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); color: var(--white); margin-bottom: 12px; letter-spacing: -0.025em; }
.kg-header-card-subheader { font-size: 17px; color: var(--text-muted); }

.kg-button-card { text-align: center; margin: 1.5em 0; }
.kg-btn { display: inline-block; background: var(--orange); color: var(--bg); padding: 12px 24px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-decoration: none; }

.kg-divider-card { border: none; border-top: 1px solid var(--border-subtle); margin: 2em 0; }

.kg-file-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.kg-file-card-title { font-weight: 600; color: var(--white); font-size: 15px; }
.kg-file-card-caption { font-size: 12px; color: var(--text-muted); }

/* Required page feature classes */
.gh-canvas { max-width: 720px; margin: 0 auto; padding: 0 40px; }
.is-head-left-logo .gh-head-brand { margin-right: auto; }

.game-thumb-emoji { font-size: 16px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,0.4); position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }



/* Jai Section — mirrors Sai section layout */
.jai-section { padding: 80px 0 40px; }
.jai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.jai-card::after {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.jai-avatar {
  width: 120px; height: 120px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}
.jai-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,107,26,0.3);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.jai-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.jai-role {
  font-size: 15px;
  color: var(--orange);
  margin-bottom: 20px;
}
.jai-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
}

@media (max-width: 768px) {
  .jai-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 40px 28px;
  }
}

.sai-avatar img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid var(--orange);
  box-sizing: border-box;
}
.jai-avatar img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 4px solid var(--orange);
  box-sizing: border-box;
}
