/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0d0d0e;
  --bg-card: #161618;
  --bg-input: #212124;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Accent colors */
  --accent-goblin: #ef4444; /* FuckAI Red */
  --accent-codicks: #3b82f6; /* Blue */
  --accent-asslas: #eab308; /* Yellow */
  --accent-whora: #ec4899; /* Pink */
  --accent-chain: #a855f7; /* Purple */
  --accent-api: #f97316; /* Orange */
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Rules --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* --- Ambient Particle Background --- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

/* --- Announcement Banner --- */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
  height: 36px;
  background: linear-gradient(90deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.announce-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announce-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: #d4d4d4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.announce-link:hover {
  color: #ffffff;
}

.announce-arrow {
  font-size: 14px;
  transition: transform 0.15s ease;
}

.announce-link:hover .announce-arrow {
  transform: translateX(2px);
}

.announce-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.announce-close:hover {
  color: #ffffff;
}

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: 54px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

body.announce-dismissed .navbar {
  top: 0;
}

.nav-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-icon {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
  margin-left: 28px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #b4b4b4;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  padding: 6px 0;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.nav-search-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  color: #b4b4b4;
  transition: var(--transition-smooth);
}

.nav-search-trigger:hover .nav-search-icon {
  color: #ffffff;
}

.chevron {
  font-size: 10px;
  opacity: 0.6;
}

/* --- Dropdown Menu --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 280px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Hover bridge to keep dropdown open during mouse travel */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(168, 85, 247, 0.5);
  padding-left: 16px;
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #d4d4d4;
  transition: color 0.15s ease;
}

.dropdown-item:hover .item-title {
  color: #ffffff;
}

.item-desc {
  font-size: 11px;
  color: #666;
  margin-top: 3px;
  transition: color 0.15s ease;
}

.dropdown-item:hover .item-desc {
  color: #888;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background-color: #e5e5e5;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

.mobile-overlay {
  position: fixed;
  top: 90px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 90px);
  background-color: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: none;
  padding: 40px 32px;
  overflow-y: auto;
  animation: mobileSlideIn 0.3s ease forwards;
}

@keyframes mobileSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-section-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 1.5px;
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  color: #b4b4b4;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.mobile-link:hover {
  color: #ffffff;
}

/* --- Main Views Container --- */
#app-content {
  margin-top: 108px;
  min-height: calc(100vh - 108px - 280px);
}

body.announce-dismissed #app-content {
  margin-top: 72px;
  min-height: calc(100vh - 72px - 280px);
}

/* View transitions */
.fade-in-view {
  animation: viewEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll-Reveal Animation System --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger delays for child elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Navbar scrolled state */
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* --- Page Layouts --- */

/* Home / Portal Page */
.hero-section {
  min-height: calc(85vh - 60px);
  padding: 60px 32px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(168, 85, 247, 0.06) 0%,
    rgba(59, 130, 246, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Route transition */
#app-content {
  transition: opacity 0.25s ease;
}
#app-content.route-exit {
  opacity: 0;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-chain);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title span {
  color: #ffffff;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.5;
  color: #b4b4b4;
  max-width: 600px;
  margin-bottom: 40px;
  letter-spacing: -0.015em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Intro Section Banner */
.intro-section {
  background-color: #000000;
  border-top: none;
  border-bottom: none;
  padding: 120px 32px;
  text-align: center;
  width: 100%;
  position: relative;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-subtitle {
  font-family: var(--font-sans);
  color: var(--accent-chain);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
}

.intro-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #878787;
  margin-top: 28px;
  max-width: 640px;
  font-weight: 400;
}

/* Showcase Grid */
.grid-section {
  max-width: 1200px;
  margin: 0 auto 120px auto;
  padding: 0 32px;
}

.grid-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, var(--card-glow, rgba(255,255,255,0.03)) 0%, transparent 60%);
  pointer-events: none;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover, var(--border-focus));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
}

.card-icon {
  font-size: 24px;
  font-family: var(--font-mono);
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 14px;
}

.card-link {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.showcase-card:hover .card-link {
  color: #fff;
}

/* Ecosystem ASCII Banner */
.ecosystem-section {
  background-color: #000000;
  border-top: none;
  border-bottom: none;
  padding: 100px 32px;
  text-align: center;
  position: relative;
}

.ecosystem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
}

.eco-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-api);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eco-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.eco-desc {
  color: #878787;
  max-width: 580px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.arch-grid {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-node {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
  min-width: 160px;
}

.arch-node:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.arch-node-core {
  border-color: rgba(16, 185, 129, 0.2);
}

.arch-node-infra {
  border-color: rgba(255, 255, 255, 0.06);
}

.arch-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: arch-pulse 2s ease-in-out infinite;
}

@keyframes arch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.arch-node-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.arch-node-role {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #555;
  margin-left: auto;
}

.arch-connector-row {
  display: flex;
  gap: 80px;
  justify-content: center;
  padding: 0;
}

.arch-line {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.arch-line-single {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.arch-agents-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- Gaykor Chat View --- */
.app-container-full {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  gap: 32px;
}

.chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-sidebar-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
}

.chat-panel {
  flex-grow: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 650px;
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  contain: content;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  align-self: center !important;
}

.chat-msg.user {
  align-self: center !important;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.goblin .msg-avatar {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-goblin);
}

.chat-msg.user .msg-avatar {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.msg-content {
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #ececec;
  flex-grow: 1;
}

.chat-msg.goblin .msg-content {
  background-color: transparent !important;
  border: none !important;
}

.chat-msg.user .msg-content {
  background-color: transparent !important;
  color: #ffffff !important;
}

.chat-input-area {
  padding: 16px 20px 24px 20px;
  border-top: none;
  background-color: transparent;
  display: flex;
  justify-content: center;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 780px;
  background-color: #212124;
  border-radius: 26px;
  padding: 6px 12px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.chat-form:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-input {
  flex-grow: 1;
  background-color: transparent !important;
  border: none !important;
  padding: 8px 0;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chat-send-btn:hover {
  background-color: #e5e5e5;
}

.chat-send-btn:disabled {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- CODICKS IDE Visualizer --- */
.ide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 600px;
  background-color: #0b0b0d;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.ide-sidebar {
  background-color: #0f0f12;
  border-right: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ide-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.file-tree {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
}

.file-item.active {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.ide-main {
  display: grid;
  grid-template-rows: 1fr 180px;
}

.code-editor {
  background-color: #08080a;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #d4d4d8;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Syntax Highlighting */
.code-keyword { color: #f472b6; font-weight: 500; }
.code-string { color: #34d399; }
.code-comment { color: #71717a; font-style: italic; }
.code-number { color: #fb923c; }
.code-builtin { color: #60a5fa; }
.code-diff-del { background-color: rgba(239, 68, 68, 0.15); color: #f87171; display: block; padding-left: 4px; border-left: 2px solid #ef4444; }
.code-diff-add { background-color: rgba(16, 185, 129, 0.15); color: #34d399; display: block; padding-left: 4px; border-left: 2px solid #10b981; }

/* VS Code Tab styles */
.ide-tabs {
  display: flex;
  background-color: #0c0c0e;
  border-bottom: 1px solid var(--border-light);
  height: 35px;
}
.ide-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  background-color: #0e0e11;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}
.ide-tab.active {
  background-color: #08080a;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-codicks);
}

.ide-terminal {
  background-color: #030304;
  border-top: 1px solid var(--border-light);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
  overflow-y: auto;
}

.ide-btn-run {
  background-color: var(--accent-codicks);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* --- ASSLAS Browser Agent Simulator --- */
.browser-simulator {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.browser-bar {
  background-color: #121215;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
}

.browser-address {
  flex-grow: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.browser-view {
  height: 400px;
  background-color: #fff;
  color: #333;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.agent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.agent-log-card {
  background-color: #1c1917;
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cursor-mock {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-asslas);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-asslas);
  transition: all 0.8s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

/* --- WHORA Neural Video Generator --- */
.whora-simulator {
  display: grid;
  grid-template-columns: 320px 1fr;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.whora-controls {
  padding: 24px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whora-display {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 480px;
}

.canvas-container {
  width: 100%;
  height: 100%;
}

.whora-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- LEGS Developer Playground --- */
.api-playground {
  display: grid;
  grid-template-columns: 280px 1fr;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
}

.playground-nav {
  background-color: rgba(0, 0, 0, 0.15);
  border-right: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playground-nav-btn {
  padding: 10px 14px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.playground-nav-btn.active {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--accent-api);
}

.playground-main {
  padding: 32px;
}

.key-card {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 12px;
  margin-top: 16px;
}

.key-display {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.key-input {
  flex-grow: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}

/* Code Snippet Box */
.snippet-box {
  background-color: #0b0b0d;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e4e4e7;
  overflow-x: auto;
  position: relative;
  margin-top: 16px;
}

/* --- Global Footer Styles --- */
.footer {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 32px 0 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 48px;
}

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

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col a {
  color: #878787;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 32px;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer-logo-link:hover {
  opacity: 0.7;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copyright {
  font-size: 13px;
  color: #555;
  font-weight: 400;
}

.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-socials a {
  color: #878787;
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: #ffffff;
}

/* --- Responsive Adaptations --- */
@media(max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .app-container-full {
    flex-direction: column;
  }
  .chat-sidebar {
    width: 100%;
  }
  .whora-simulator, .api-playground {
    grid-template-columns: 1fr;
  }
  .whora-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .playground-nav {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    overflow-x: auto;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media(max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

/* --- Image Icon Hue Filters --- */
.item-icon-img {
  transition: var(--transition-smooth);
}
.codicks-icon-filter { filter: hue-rotate(140deg); }
.asslas-icon-filter { filter: hue-rotate(240deg) saturate(1.5); }
.whora-icon-filter { filter: hue-rotate(300deg); }
.api-icon-filter { filter: hue-rotate(30deg) saturate(1.2); }
.chain-icon-filter { filter: hue-rotate(100deg); }

/* --- Gaykor Chat History & Cost Metrics --- */
.chat-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
}
.chat-history-item {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-history-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-focus);
}
.chat-history-item.active {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--accent-goblin);
  border-color: var(--accent-goblin);
}

.metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 6px;
}
.metric-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.metric-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* === FuckAI / Gaykor Chat MAX Polish === */
.status-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  color: #aaa;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.status-badge.live {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
}

.mini-btn {
  background: rgba(255,255,255,0.04);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 9px;
  font-size: 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s ease;
}
.mini-btn:hover { background: rgba(255,255,255,0.08); color:#fff; }
.mini-btn.danger {
  border-color: #ef4444;
  color: #ef4444;
}
.mini-btn.danger:hover { background: rgba(239,68,68,0.15); }

.chip {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c8c8c8;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.1s ease;
}
.chip:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: #fff;
}

/* === Message Bubbles — MAX VISUAL POLISH === */
.chat-msg {
  gap: 14px;
  max-width: 820px;
}
.chat-msg.user {
  justify-content: flex-end;
}

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

.chat-msg.goblin .msg-avatar {
  box-shadow: 0 0 0 1px rgba(239,68,68,0.25);
}

.chat-msg.user .msg-avatar {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.msg-content {
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #f1f1f3;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  max-width: 640px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.chat-msg.user .msg-content {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: #fff;
}

.chat-msg.goblin .msg-content {
  background: #121214;
  border-color: rgba(239,68,68,0.15);
  border-left: 2px solid #ef4444;
}

.msg-meta {
  font-size: 9px;
  color: #555;
  margin-top: 4px;
  margin-left: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.msg-actions {
  display: none;
  gap: 4px;
  margin-top: 5px;
  margin-left: 2px;
}
.chat-msg:hover .msg-actions { display: flex; }

.msg-action {
  font-size: 9px;
  padding: 1px 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #888;
  border-radius: 3px;
  cursor: pointer;
  transition: all .1s ease;
  font-family: var(--font-mono);
}
.msg-action:hover { color:#fff; border-color:#444; background:rgba(255,255,255,0.06); }
.msg-action.danger { border-color: rgba(239,68,68,0.3); color:#ef4444; }
.msg-action.danger:hover { background: rgba(239,68,68,0.15); }

/* Streaming cursor */
.stream-cursor {
  display: inline-block;
  margin-left: 1px;
  color: #ef4444;
  animation: streamBlink 0.75s step-end infinite;
  font-weight: 400;
}
@keyframes streamBlink {
  50% { opacity: 0; }
}

/* === END Chat Polish === */

/* --- Asslas Web Storefront & Checkout (Inside white browser) --- */
.store-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fcfbf9;
  color: #1c1917;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}
.store-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e0;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.store-header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}
.store-cart-btn {
  background: #f5f5f4;
  border: 1px solid #e5e5e0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  transition: var(--transition-smooth);
}
.store-cart-btn:hover {
  background: #eae9e5;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
}
.store-card {
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
.store-card:hover {
  border-color: var(--accent-asslas);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.08);
}
.store-card-title {
  font-weight: 700;
  font-size: 13px;
  color: #111;
  margin-bottom: 2px;
}
.store-card-desc {
  font-size: 11px;
  color: #78716c;
  margin-bottom: 10px;
  line-height: 1.4;
}
.store-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.store-card-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #111;
}
.store-buy-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.store-buy-btn:hover {
  background: #333;
}
.store-buy-btn:active {
  transform: scale(0.95);
}

/* Checkout Page Overlay */
.checkout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.checkout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border-bottom: 1px solid #e5e5e0;
  padding-bottom: 10px;
  margin-bottom: 16px;
  color: #111;
}
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 20px;
}
.checkout-form-group {
  margin-bottom: 12px;
}
.checkout-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #78716c;
  margin-bottom: 4px;
}
.checkout-input {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #1c1917;
  outline: none;
  background: #fff;
}
.checkout-input:focus {
  border-color: var(--accent-asslas);
}
.checkout-summary-card {
  background: #f5f5f4;
  border: 1px solid #e5e5e0;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e5e5e0;
  padding-top: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
}
.checkout-submit-btn {
  background: #eab308;
  color: #000;
  border: none;
  border-radius: 6px;
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-smooth);
}
.checkout-submit-btn:hover {
  background: #ca8a04;
}

/* --- Whora Volumetric Receipt Modal --- */
.receipt-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.receipt-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.receipt-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 500px;
  max-width: 90%;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.1);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.receipt-modal-overlay.active .receipt-modal {
  transform: translateY(0);
}
.receipt-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.receipt-close:hover {
  color: var(--text-primary);
}
.receipt-header {
  text-align: center;
  margin-bottom: 24px;
}
.receipt-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-whora);
  margin-top: 8px;
}
.receipt-body {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #09090b;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  color: #a1a1aa;
  line-height: 1.6;
}
.receipt-divider {
  border: none;
  border-top: 1px dashed var(--border-light);
  margin: 12px 0;
}
.receipt-hash {
  color: var(--text-primary);
  word-break: break-all;
  font-weight: bold;
}

/* --- xTruth & Based Defense Red-Teaming Styles --- */
.lege-icon-filter {
  filter: hue-rotate(75deg) saturate(1.5);
}

.lege-display {
  background-color: #030304;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lege-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.lege-progress-bar {
  width: 100%;
  background-color: var(--bg-input);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 16px;
  display: none;
}

.lege-progress-fill {
  background: linear-gradient(to right, var(--accent-goblin), var(--accent-codicks));
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

/* Safety Red Teaming Simulator */
.redteam-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  margin-top: 48px;
  width: 100%;
}

.redteam-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin-top: 24px;
}

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

.redteam-attacks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redteam-attack-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.redteam-attack-card:hover {
  border-color: var(--accent-whora);
  background-color: rgba(255, 255, 255, 0.04);
}

.redteam-attack-card.active {
  border-color: var(--accent-whora);
  background-color: rgba(236, 72, 153, 0.08);
}

.redteam-attack-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.redteam-attack-prompt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.redteam-console-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.redteam-console {
  background-color: #050507;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a1a1aa;
  height: 240px;
  overflow-y: auto;
  line-height: 1.6;
}

.redteam-label-alert {
  color: var(--accent-whora);
  font-weight: bold;
}

.redteam-label-success {
  color: var(--accent-goblin);
  font-weight: bold;
}

/* --- OpenAI-Style Homepage Stacked Features (Phase 4) --- */
.feature-section {
  max-width: 1200px;
  margin: 0 auto 120px auto;
  padding: 0 32px;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 96px 0;
  position: relative;
}

.feature-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.feature-block:last-child::after {
  display: none;
}

.feature-block:nth-child(even) {
  flex-direction: row-reverse;
}

@media(max-width: 900px) {
  .feature-block, .feature-block:nth-child(even) {
    flex-direction: column;
    gap: 32px;
    padding: 64px 0;
  }
  .feature-content, .feature-visual {
    width: 100% !important;
  }
}

.feature-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.feature-tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-chain);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.feature-desc {
  font-size: 15px;
  color: #b4b4b4;
  line-height: 1.5;
  margin-bottom: 32px;
}

.feature-visual {
  width: 50%;
  height: 350px;
  background-color: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.feature-block:hover .feature-visual {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Home Mini-Simulators */
.home-mini-chat {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  overflow: hidden;
}

.home-mini-chat-bubble {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  line-height: 1.4;
}

.home-mini-chat-bubble.goblin {
  background-color: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--text-primary);
  align-self: flex-start;
}

.home-mini-chat-bubble.user {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  align-self: flex-end;
}

.home-mini-header {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.2);
}

.home-mini-terminal {
  flex-grow: 1;
  background-color: #050507;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
  line-height: 1.5;
  overflow: hidden;
}

.home-mini-browser {
  flex-grow: 1;
  background-color: #fff;
  color: #333;
  padding: 16px;
  position: relative;
  font-family: var(--font-sans);
  overflow: hidden;
}

/* Latest Updates Grid (OpenAI Style) */
.news-section {
  max-width: 1200px;
  margin: 0 auto 120px auto;
  padding: 0 32px;
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.news-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.news-section-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: all 0.15s ease;
}

.news-section-link:hover {
  color: #878787;
  border-color: #878787;
}

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

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

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

.news-card {
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card:hover .news-card-image {
  border-color: rgba(255, 255, 255, 0.15);
}

.news-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  color: #555;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.news-card:hover .news-tag {
  color: #878787;
}

.news-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.news-card:hover .news-title {
  color: #878787;
}

/* Fine-Tuning Simulator Styles */
.tuning-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  margin-top: 20px;
}

@media(max-width: 1024px) {
  .tuning-layout {
    grid-template-columns: 1fr;
  }
}

.tuning-form {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tuning-console {
  background-color: #050507;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a1a1aa;
  height: 380px;
  overflow-y: auto;
  line-height: 1.6;
}

.tuning-progress-bar {
  width: 100%;
  background-color: var(--bg-input);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
  display: none;
}

.tuning-progress-fill {
  background: linear-gradient(to right, var(--accent-chain), var(--accent-api));
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.tuning-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Whora Parody Gallery --- */
.whora-gallery-section {
  width: 100%;
  margin-top: 40px;
}
.whora-gallery-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  color: var(--text-primary);
}
.whora-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.whora-gallery-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
.whora-gallery-card:hover {
  border-color: var(--accent-whora);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.08);
  transform: translateY(-2px);
}
.whora-gallery-card-top {
  margin-bottom: 16px;
}
.whora-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-whora);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.whora-card-prompt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.whora-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.whora-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* --- LegsChassisBench Benchmark Dashboard --- */
.benchmark-container {
  width: 100%;
  margin-top: 40px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
}
.benchmark-header {
  margin-bottom: 24px;
}
.benchmark-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.benchmark-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}
.benchmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.benchmark-card {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.benchmark-metric-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.benchmark-metric-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: normal;
}
.benchmark-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benchmark-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 16px;
}
.benchmark-model-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.benchmark-model-name.highlight {
  color: var(--accent-goblin);
  font-weight: 600;
}
.benchmark-bar-wrapper {
  background-color: var(--bg-input);
  height: 16px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.benchmark-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--text-muted);
}
.benchmark-bar-fill.goblin {
  background: linear-gradient(to right, var(--accent-goblin), #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}
.benchmark-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--text-secondary);
}
.benchmark-value.highlight {
  color: var(--accent-goblin);
}

@media (max-width: 768px) {
  .whora-gallery-grid {
    grid-template-columns: 1fr;
  }
  .benchmark-row {
    grid-template-columns: 120px 1fr 50px;
    gap: 8px;
  }
}

/* --- OpenAI 1-to-1 Homepage Search Overrides --- */
.nav-login-link {
  color: #b4b4b4;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.nav-login-link:hover {
  color: #ffffff;
}
.nav-chat-btn {
  background: #ffffff;
  border: none;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}
.nav-chat-btn:hover {
  background: #e5e5e5;
}

.home-search-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.home-search-container {
  opacity: 0;
  animation: heroTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  width: 100%;
  max-width: 720px;
  background-color: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 16px 16px 12px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.home-search-container:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              0 0 40px rgba(255, 255, 255, 0.03);
}

.home-search-textarea {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  height: 60px;
  resize: none;
  outline: none;
}

.home-search-textarea::placeholder {
  color: #666;
  transition: color 0.2s ease;
}

.home-search-textarea:focus::placeholder {
  color: #555;
}

.home-search-bottom-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.home-search-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-search-send-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.08);
}

.home-search-send-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.home-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 800px;
  margin-top: 8px;
}

.home-suggestion-pill {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 450;
  color: #b4b4b4;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  animation: pillFadeIn 0.5s ease forwards;
}

.home-suggestion-pill:nth-child(1) { animation-delay: 0.3s; }
.home-suggestion-pill:nth-child(2) { animation-delay: 0.4s; }
.home-suggestion-pill:nth-child(3) { animation-delay: 0.5s; }
.home-suggestion-pill:nth-child(4) { animation-delay: 0.6s; }
.home-suggestion-pill:nth-child(5) { animation-delay: 0.7s; }

@keyframes pillFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-suggestion-pill:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.xai-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.xai-h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 560; letter-spacing: -0.045em; line-height: 1.05; margin: 0 0 16px; }
.xai-lead { color: var(--text-secondary); font-size: 17px; line-height: 1.55; max-width: 640px; margin-bottom: 28px; }
.xai-page { max-width: 980px; margin: 0 auto; padding: 72px 24px 96px; }
.xai-grid3, .xai-grid4 { display: grid; gap: 18px; margin-top: 36px; }
.xai-grid3 { grid-template-columns: repeat(3, 1fr); }
.xai-grid4 { grid-template-columns: repeat(2, 1fr); }
.xai-page article, .xai-grid3 a, .xai-grid4 article {
  display: block; padding: 20px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--bg-secondary); color: inherit;
}
.xai-page h3 { font-size: 18px; margin-bottom: 8px; }
.xai-page p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.xai-news { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.xai-news a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--border-light); }
.xai-news b { font-size: 18px; }
.xai-news span { color: var(--text-muted); font-size: 13px; }
.xai-h2 { font-size: 28px; letter-spacing: -0.035em; margin: 48px 0 12px; }
.xai-core, .xai-offices { display: grid; gap: 16px; margin: 24px 0 8px; }
.xai-core { grid-template-columns: repeat(3, 1fr); }
.xai-offices { grid-template-columns: repeat(4, 1fr); }
.xai-core article, .xai-offices article {
  padding: 20px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--bg-secondary);
}
.xai-offices img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}
.xai-core span { display: block; font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; margin-bottom: 10px; }
.xai-timeline { list-style: none; padding: 0; margin: 20px 0 28px; border-left: 1px solid var(--border-light); }
.xai-timeline li { padding: 12px 0 12px 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.xai-timeline b { color: var(--text-primary); margin-right: 10px; }
.xai-start { max-width: 980px; margin: 0 auto 80px; padding: 0 24px; }
.xai-start h2 { font-size: 36px; letter-spacing: -0.04em; margin-bottom: 22px; }
.xai-start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.xai-start-grid article {
  padding: 24px; border: 1px solid var(--border-light); border-radius: 14px; background: var(--bg-secondary);
}
.xai-start-grid h3 { font-size: 20px; margin-bottom: 8px; }
.xai-start-grid p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.xai-start-grid ul { margin: 0 0 18px 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.xai-api-band { max-width: 980px; margin: 0 auto 72px; padding: 0 24px; }
.xai-api-band h2 { font-size: 36px; letter-spacing: -0.04em; margin-bottom: 10px; }
.xai-api-band > p { color: var(--text-secondary); margin-bottom: 28px; max-width: 560px; }
.xai-metrics { display: flex; gap: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.xai-metrics b { display: block; font-size: 28px; letter-spacing: -0.03em; }
.xai-metrics span { color: var(--text-muted); font-size: 12px; }
.xai-code { background: #0a0a0a; border: 1px solid var(--border-light); border-radius: 12px; padding: 18px 20px; overflow: auto; font: 13px/1.55 var(--font-mono); color: #d4d4d4; }
.footer-xai { padding: 48px 32px 28px; }
.footer-xai-top, .footer-xai-bottom {
  max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-xai-links, .footer-xai-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-xai-links a, .footer-xai-legal a { color: #878787; font-size: 14px; text-decoration: none; }
.footer-xai-links a:hover, .footer-xai-legal a:hover { color: #fff; }
.footer-xai-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 800px) {
  .xai-grid3, .xai-grid4, .xai-core, .xai-offices, .xai-start-grid { grid-template-columns: 1fr; }
  .footer-xai-top, .footer-xai-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   x.ai 2026 SpaceXAI chrome — append/override (FuckAI / Gaykor)
   ========================================================================== */

html, body {
  overflow-x: clip;
  max-width: 100%;
}

.announce-bar {
  display: none !important;
}

.navbar {
  top: 0;
  height: 56px;
  padding-top: env(safe-area-inset-top);
  height: calc(56px + env(safe-area-inset-top));
  background-color: rgba(0, 0, 0, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.announce-dismissed .navbar {
  top: 0;
}

#app-content,
body.announce-dismissed #app-content {
  margin-top: calc(56px + env(safe-area-inset-top));
  min-height: calc(100vh - 56px - env(safe-area-inset-top) - 280px);
}

.nav-container {
  max-width: 1280px;
  padding: 0 28px;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

.nav-logo {
  gap: 8px;
  font-size: 18px;
  letter-spacing: -0.045em;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: block;
}

.nav-menu.xai-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 36px;
  margin-right: auto;
}

@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.nav-link {
  font-size: 14px;
  color: #c8c8c8;
  padding: 10px 12px;
  min-height: 44px;
}

button.nav-link,
.nav-dd-trigger {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: #c8c8c8;
}

.nav-contact-sales {
  color: #c8c8c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-contact-sales:hover,
.nav-link:hover,
.nav-dd-trigger:hover {
  color: #fff;
}

.nav-try-free {
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 560;
  padding: 8px 18px;
  min-height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-try-free:hover {
  background: #e8e8e8;
}

.nav-login-link,
.nav-chat-btn {
  display: none !important;
}

.has-dropdown .dropdown-menu {
  left: 0;
  transform: translateX(0) translateY(8px);
  width: 280px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(4px);
}

.dropdown-item {
  min-height: 44px;
}

/* Circular hamburger — desktop hidden */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn .hm-bars,
.mobile-menu-btn span.hm-bars {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 18px !important;
  height: 14px !important;
  background: transparent !important;
  padding: 0;
}

.mobile-menu-btn .hm-bars span {
  display: block !important;
  width: 16px !important;
  height: 1.5px !important;
  background: #fff !important;
  border-radius: 1px;
  margin: 0;
}

.mobile-menu-btn .hm-x {
  display: none;
}

.mobile-menu-btn.active .hm-bars {
  display: none;
}

.mobile-menu-btn.active .hm-x {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .navbar {
  background: #000;
  border-bottom-color: transparent;
  z-index: 120;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000;
  z-index: 110;
  display: none;
  flex-direction: column;
  padding: calc(56px + env(safe-area-inset-top) + 8px) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-overlay.is-open {
  display: flex;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
}

.drawer-acc-btn,
.drawer-plain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -0.03em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.drawer-plain {
  justify-content: flex-start;
}

.drawer-chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid #888;
  border-bottom: 1.5px solid #888;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 6px;
}

.drawer-acc.open .drawer-chevron {
  transform: rotate(-135deg);
}

.drawer-acc-panel {
  display: none;
  flex-direction: column;
  padding: 4px 0 12px;
}

.drawer-acc.open .drawer-acc-panel {
  display: flex;
}

.mobile-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 17px;
  padding: 10px 8px;
  color: #b4b4b4;
}

.drawer-bottom {
  margin-top: auto;
  padding-top: 16px;
  flex-shrink: 0;
  background: #000;
}

.drawer-try {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.drawer-tiny {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  padding-bottom: 8px;
}

.drawer-tiny a {
  color: #6b6b6b;
  font-size: 12px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.drawer-tiny a:hover {
  color: #fff;
}

/* Home — left-aligned frontier hero */
.xai-home-hero {
  padding: 72px 28px 36px;
  position: relative;
  text-align: left;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.88) 70%, #000 100%), url("assets/web/19-hero-void-cluster.png");
  background-size: cover;
  background-position: center top;
}

.xai-home-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.xai-new-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4d4d4;
  margin-bottom: 22px;
}

.xai-frontier-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.8vw, 80px);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.04;
  color: #fff;
  max-width: min(11.5em, 100%);
  margin: 0 0 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#hero-rotate-word {
  background: linear-gradient(90deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xai-frontier-sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 0 28px;
}

.xai-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.xai-pill-cta {
  min-height: 44px;
  padding: 10px 22px;
}

.xai-hero-prompt {
  max-width: 640px;
  margin: 0;
}

.xai-hero-prompt .home-search-textarea {
  height: 48px;
}

/* Stacked product cards */
.xai-product-stack {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xai-prod-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--bg-secondary);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  overflow: hidden;
}

.xai-prod-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.xai-prod-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.xai-prod-copy p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.xai-prod-go {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.xai-prod-stage {
  min-width: 0;
  min-height: 220px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.xai-imagine-stage {
  justify-content: center;
  align-items: center;
}

#home-static-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.xai-imagine-badge {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  text-align: center;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.xai-imagine-badge small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-secondary);
}

.xai-voice-stage {
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.xai-voice-wave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
}

.xai-voice-wave i {
  display: block;
  width: 6px;
  border-radius: 3px;
  background: #fff;
  animation: xaiVoice 1.1s ease-in-out infinite;
}

.xai-voice-wave i:nth-child(1) { height: 18px; animation-delay: 0s; }
.xai-voice-wave i:nth-child(2) { height: 36px; animation-delay: 0.08s; }
.xai-voice-wave i:nth-child(3) { height: 54px; animation-delay: 0.16s; }
.xai-voice-wave i:nth-child(4) { height: 28px; animation-delay: 0.24s; }
.xai-voice-wave i:nth-child(5) { height: 64px; animation-delay: 0.32s; }
.xai-voice-wave i:nth-child(6) { height: 40px; animation-delay: 0.4s; }
.xai-voice-wave i:nth-child(7) { height: 22px; animation-delay: 0.48s; }
.xai-voice-wave i:nth-child(8) { height: 50px; animation-delay: 0.56s; }
.xai-voice-wave i:nth-child(9) { height: 32px; animation-delay: 0.64s; }
.xai-voice-wave i:nth-child(10) { height: 20px; animation-delay: 0.72s; }

@keyframes xaiVoice {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.xai-voice-stage span {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.home-mini-chat,
.home-mini-terminal,
.home-mini-browser {
  min-width: 0;
  flex: 1;
}

.xai-code-wrap {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
}

.xai-code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
}

.xai-code-tab {
  min-height: 44px;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
}

.xai-code-tab.active,
.xai-code-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.xai-code-wrap .xai-code {
  border: none;
  border-radius: 0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.xai-grok-blocks {
  display: grid;
  gap: 16px;
  margin: 36px 0 8px;
}

.xai-grok-blocks article {
  padding: 24px;
}

.xai-grok-blocks ul {
  margin: 12px 0 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.xai-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}

.xai-more-grid article {
  padding: 18px;
}

.xai-page .xai-grid3 ul {
  margin: 12px 0 16px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.xai-page code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e5e5e5;
}

/* Footer columns */
.footer-xai {
  padding: 64px max(28px, env(safe-area-inset-right)) 32px max(28px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-xai-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.footer-col a,
.footer-col p {
  color: #878787;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.45;
}

.footer-col a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-col a:hover {
  color: #fff;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.footer-xai-bottom {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  color: #666;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .nav-menu,
  .nav-menu.xai-nav,
  .nav-contact-sales,
  .nav-try-free,
  .nav-actions .btn,
  .nav-login-link,
  .nav-chat-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-direction: row;
  }

  .home-mini-header {
    min-width: 0;
    gap: 8px;
    overflow: hidden;
  }

  .home-mini-header span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-container {
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .xai-prod-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .xai-more-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-xai-grid {
    grid-template-columns: 1fr 1fr;
  }

  .xai-frontier-title {
    max-width: 100%;
    font-size: clamp(30px, 8.4vw, 42px);
  }

  .home-search-container {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .xai-home-hero {
    padding: 36px 16px 20px;
  }

  .xai-product-stack,
  .xai-api-band,
  .xai-start,
  .news-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .xai-frontier-title {
    font-size: clamp(30px, 8.6vw, 38px);
    max-width: 100%;
  }

  .xai-more-grid,
  .footer-xai-grid,
  .xai-start-grid,
  .xai-grid3,
  .xai-grid4 {
    grid-template-columns: 1fr;
  }

  .xai-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .xai-hero-ctas .btn,
  .xai-pill-cta {
    width: 100%;
  }

  .drawer-acc-btn,
  .drawer-plain {
    font-size: 24px;
  }

  .footer-xai-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .xai-metrics {
    gap: 18px;
  }

  .xai-code {
    font-size: 12px;
  }
}

.nav-logo-img.lockup {
  width: auto;
  height: 22px;
  max-width: min(176px, 48vw);
  border-radius: 0;
  object-fit: contain;
}

.footer-logo-link .nav-logo-img.lockup {
  height: 26px;
  max-width: 210px;
}

