/* ==========================================================================
   Cobalative Studios — Core Design System & Spatial Stylesheet
   Crafted with Apple HIG, Liquid Glassmorphism & GPU Accelerated Interactions
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Color System — Dark First Luxury Palette */
  --bg-primary: #090a0f;
  --bg-surface: rgba(18, 20, 30, 0.72);
  --bg-surface-elevated: rgba(28, 32, 48, 0.78);
  --bg-pill: rgba(255, 255, 255, 0.08);
  --bg-pill-hover: rgba(255, 255, 255, 0.14);

  --text-primary: #f5f6fa;
  --text-secondary: #9aa1b4;
  --text-tertiary: #636b83;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --border-active: rgba(255, 255, 255, 0.32);

  --accent-blue: #0071e3;
  --accent-purple: #9b51e0;
  --accent-glow: rgba(34, 114, 255, 0.22);
  --ambient-x: 50%;
  --ambient-y: 20%;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 50px var(--accent-glow);

  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Adaptability */
[data-theme="light"] {
  --bg-primary: #f6f7fb;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-pill: rgba(0, 0, 0, 0.05);
  --bg-pill-hover: rgba(0, 0, 0, 0.09);

  --text-primary: #121520;
  --text-secondary: #5a6275;
  --text-tertiary: #8b93a7;

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-highlight: rgba(0, 0, 0, 0.14);
  --border-active: rgba(0, 0, 0, 0.26);
  --shadow-deep: 0 20px 50px rgba(25, 30, 50, 0.08);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  background-color: var(--bg-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Liquid Glow (Follows active card / cursor) */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle 650px at var(--ambient-x) var(--ambient-y),
    var(--accent-glow) 0%,
    transparent 70%
  );
  opacity: 0.75;
  transition: background 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Subtle Film Grain Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Container */
.container {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   The Dynamic Island Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 18px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.dynamic-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 14px 7px 18px;
  background: var(--bg-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dynamic-island:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
}

.island-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.island-link {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.island-link:hover, .island-link.active {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.island-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

.island-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill-hover);
  transform: scale(1.05);
}

.lang-btn {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-highlight);
}

.spotlight-pill-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.spotlight-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: var(--bg-pill-hover);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 10px #30d158;
  animation: pulseDot 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: var(--text-primary);
  overflow: visible;
}

.gradient-shimmer {
  background: linear-gradient(120deg, #ffffff 10%, #a2b7ff 45%, #ff8db3 75%, #ffb86c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.22;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  padding-inline: 0.05em;
  overflow: visible;
}

.hero-lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #0b0d14;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

.btn-glass {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(16px);
}

.btn-glass:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

/* Floating 3D App Constellation (Hero Art) */
.hero-constellation {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 820px;
  margin-inline: auto;
}

.constellation-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
  animation: floatOrb 6s ease-in-out infinite alternate;
}

.constellation-icon:hover {
  transform: translateY(-8px) scale(1.15) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

@keyframes floatOrb {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   Filter & Showcase Header
   ========================================================================== */
.showcase-section {
  padding: 60px 0 100px;
}

.showcase-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 44px;
  text-align: center;
}

.section-label {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.filter-pill.active {
  color: #0b0d14;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .filter-pill.active {
  color: #ffffff;
  background: #111420;
}

.filter-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.1);
}

.filter-pill.active .filter-count {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Uniform Showcase Grid (Balanced 3-Column Luxury Layout)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1200px;
}

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

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

.app-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: transform;
}

/* Specular Glare / Dynamic Shine Follows Cursor */
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 280px at var(--mouse-x, -50%) var(--mouse-y, -50%),
    rgba(255, 255, 255, 0.14) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.app-card:hover::after {
  opacity: 1;
}

.app-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--card-glow, transparent);
}


/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.app-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.app-card:hover .app-icon-wrap {
  transform: scale(1.05);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.platform-pills {
  display: flex;
  gap: 4px;
}

.platform-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
}

/* Card Body */
.card-body {
  margin-bottom: 28px;
}

.app-title-group {
  margin-bottom: 12px;
}

.app-name {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.app-tagline {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.app-description {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-pill {
  font-size: 11.5px;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Card Footer Actions */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.card-link-subdomain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-primary);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link-subdomain:hover {
  color: var(--accent-blue);
  gap: 9px;
}

.card-btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 650;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-btn-appstore:hover {
  background: #ffffff;
  color: #0c0e17;
  transform: translateY(-1px);
}

/* ==========================================================================
   Live Interactive Micro-Simulators Inside Cards
   ========================================================================== */

/* 1. HoldIt Simulator */
/* Simulator Box — Compact & Harmonious */
.simulator-box {
  margin: 14px 0 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holdit-simulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.holdit-btn {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a855f7, #6b21a8);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.45);
  cursor: pointer;
  user-select: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  touch-action: none;
}

.holdit-btn:active, .holdit-btn.holding {
  transform: scale(0.92);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.6);
}

.holdit-ring {
  position: absolute;
  inset: -8px;
  pointer-events: none;
}

.holdit-ring circle {
  fill: none;
  stroke: #c084fc;
  stroke-width: 3;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.05s linear;
}

.holdit-timer {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #f3e8ff;
}

.holdit-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* 2. Pinnel MacBook Notch Simulator (Compact & Sleek) */
.pinnel-simulator {
  width: 100%;
}

.macbook-screen {
  position: relative;
  width: 100%;
  height: 90px;
  background: linear-gradient(180deg, #181926 0%, #10111a 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.05);
}

.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: #000000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.macbook-notch:hover, .macbook-notch.expanded {
  width: 220px;
  height: 64px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.notch-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
  border: 1px solid #333;
}

.notch-tools {
  opacity: 0;
  pointer-events: none;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: opacity 0.2s ease;
}

.macbook-notch.expanded .notch-tools,
.macbook-notch:hover .notch-tools {
  opacity: 1;
  pointer-events: auto;
}

.notch-tool-pill {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
}

.notch-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-tertiary);
  pointer-events: none;
  white-space: nowrap;
}

/* 3. DiceLab Simulator */
.dicelab-simulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dice-cube {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff3d71, #d6004b);
  box-shadow: 0 10px 24px rgba(255, 61, 113, 0.4);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dice-cube:hover {
  transform: rotate(8deg) scale(1.08);
}

.dice-cube.rolling {
  animation: rollDice 0.5s ease-in-out;
}

@keyframes rollDice {
  0% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(180deg) scale(1.2); }
  70% { transform: rotate(320deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

/* 4. MateCrown Chess Simulator */
.matecrown-simulator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.watch-bezel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #15161c;
  border: 4px solid #333644;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.digital-crown {
  position: absolute;
  right: -10px;
  top: 36px;
  width: 8px;
  height: 22px;
  background: #ffbe3b;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

.mini-chess-board {
  display: grid;
  grid-template-columns: repeat(3, 26px);
  grid-template-rows: repeat(3, 26px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #444;
}

.chess-cell {
  display: grid;
  place-items: center;
  font-size: 16px;
}

.cell-light { background: #e2d6b5; color: #222; }
.cell-dark { background: #8b6846; color: #fff; }

/* 5. Cutune Audio Waveform Simulator */
.cutune-waveform {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.wave-bar {
  flex: 1;
  background: #ff2e7e;
  border-radius: 2px;
  height: 20%;
  transition: height 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.cutune-waveform:hover .wave-bar {
  opacity: 1;
}

/* ==========================================================================
   Manifesto & Principles Section
   ========================================================================== */
.manifesto-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.manifesto-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.manifesto-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.manifesto-lead {
  font-size: 18px;
  color: var(--text-secondary);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.principle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 750;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  display: block;
}

.principle-heading {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

/* ==========================================================================
   FAQ Section (GEO & Search Engine Optimization)
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.faq-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.faq-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.faq-lead {
  font-size: 17px;
  color: var(--text-secondary);
}

.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item:hover, .faq-item.active {
  border-color: var(--border-highlight);
  background: var(--bg-surface-elevated);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-tertiary);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-content {
  max-height: 240px;
  padding: 0 26px 24px;
}

.faq-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==========================================================================
   Spotlight (⌘K) Modal
   ========================================================================== */
.spotlight-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.spotlight-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.spotlight-box {
  width: min(100%, 620px);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-modal.active .spotlight-box {
  transform: scale(1);
}

.spotlight-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 18px;
  font-family: inherit;
}

.spotlight-input::placeholder {
  color: var(--text-tertiary);
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  list-style: none;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s ease;
  cursor: pointer;
}

.spotlight-item:hover, .spotlight-item.selected {
  background: var(--bg-pill-hover);
}

.spotlight-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
}

.spotlight-item-meta {
  flex: 1;
}

.spotlight-item-name {
  font-size: 15px;
  font-weight: 700;
}

.spotlight-item-sub {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.spotlight-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 750;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .dynamic-island {
    width: 100%;
    justify-content: space-between;
    padding: 6px 12px;
  }
  .island-nav {
    display: none;
  }
  .spotlight-pill-btn span:not(.kbd-badge) {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .app-card {
    padding: 24px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
