/* ============================================
   TECHFLOK DESIGN TOKENS
============================================ */
:root {
  --color-void:        #14161C;
  --color-void-2:      #1C1F28;
  --color-void-3:      #252933;
  --color-fog:         #F5F6F8;
  --color-ink:         #3A3F4B;
  --color-ink-muted:   #6B7280;
  --color-border:      rgba(255,255,255,0.08);
  --color-border-light:rgba(58,63,75,0.12);
  --color-signal:      #FF9F45;
  --color-depth:       #1F7A8C;
  --hub-meta-quest:    #2D5DE0;
  --hub-ar-apps:       #FF9F45;
  --hub-pc-vr:         #7A5CFA;
  --hub-platforms:     #1F7A8C;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --tracking-headline: 0.04em;
  --tracking-label:    0.08em;
  --tracking-caps:     0.12em;
  --container: 1240px;
  --section-y: 5rem;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-void);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================
   HEX-GRID TEXTURE (SVG background motif)
============================================ */
.hex-texture {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath d='M30 0L60 17.3V52L30 69.3 0 52V17.3Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M30 52L60 69.3V104L30 121.3 0 104V69.3Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}
.hex-texture-light {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath d='M30 0L60 17.3V52L30 69.3 0 52V17.3Z' fill='none' stroke='rgba(58,63,75,0.07)' stroke-width='1'/%3E%3Cpath d='M30 52L60 69.3V104L30 121.3 0 104V69.3Z' fill='none' stroke='rgba(58,63,75,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ============================================
   UTILITIES
============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.hub-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); padding: 3px 7px;
  border-radius: 4px; text-transform: uppercase;
}
.label-mono {
  font-family: var(--font-mono); font-size: 0.68rem;
  font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase;
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  padding: 0.65rem 1.4rem; border: 1.5px solid currentColor;
  border-radius: 4px; transition: background .2s, color .2s, transform .15s; cursor: pointer;
}
.btn-outline:hover { background: currentColor; transform: translateY(-1px); }
.btn-outline:hover span { color: var(--color-void); }

.btn-filled {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  padding: 0.75rem 1.6rem; border-radius: 4px;
  background: var(--color-signal); color: var(--color-void);
  border: none; transition: filter .2s, transform .15s; cursor: pointer;
}
.btn-filled:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Badges */
.badge-meta { background: rgba(45,93,224,0.14); color: var(--hub-meta-quest); }
.badge-ar   { background: rgba(255,159,69,0.14); color: var(--hub-ar-apps); }
.badge-pc   { background: rgba(122,92,250,0.14); color: var(--hub-pc-vr); }
.badge-plat { background: rgba(31,122,140,0.14); color: var(--hub-platforms); }

/* Section labels */
.section-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-ink-muted); margin-bottom: 0.75rem;
}
.section-label::before { content:''; display:block; width:24px; height:1.5px; background:currentColor; }
.section-title-dark {
  font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.25rem);
  font-weight: 700; color: var(--color-void);
  letter-spacing: var(--tracking-headline); margin-bottom: 2.5rem;
}

/* ============================================
   SCROLL PROGRESS BAR
============================================ */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 1001; width: 0%;
  background: linear-gradient(90deg, var(--hub-meta-quest), var(--hub-pc-vr), var(--color-signal));
  transition: width .1s linear;
}

/* ============================================
   HEADER
============================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
#site-header.scrolled {
  background: rgba(20,22,28,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 2rem;
}
.site-logo { flex-shrink:0; display:flex; align-items:center; gap:.6rem; }
.site-logo img { height: 36px; width: auto; }
.site-logo .logo-fallback {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -.01em; color: #fff; display: none;
}

.main-nav {
  display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center;
}
.main-nav a {
  font-family: var(--font-display); font-size: .78rem; font-weight: 500;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: rgba(255,255,255,.75); padding: .4rem .75rem;
  border-radius: 4px; transition: color .2s;
}
.main-nav a:hover { color: #fff; }
.nav-hub-link { display: flex; align-items: center; gap: .4rem; }
.nav-hub-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  background: var(--color-void-2); border: 1px solid var(--color-border);
  border-radius: 8px; min-width: 220px; padding: .5rem;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
/* Invisible hover bridge connecting nav-item to dropdown so hover is never lost */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: .55rem .9rem; border-radius: 5px;
  font-size: .8rem; letter-spacing: 0; text-transform: none;
  color: rgba(255,255,255,.7);
}
.nav-dropdown a:hover { background: var(--color-void-3); color: #fff; }

.header-actions { display:flex; align-items:center; gap:.75rem; flex-shrink:0; }
.search-btn {
  background: none; border: none; color: rgba(255,255,255,.7);
  cursor: pointer; padding: .4rem; border-radius: 4px; transition: color .2s;
}
.search-btn:hover { color: #fff; }
.mobile-toggle {
  display: none; background: none; border: none;
  color: #fff; cursor: pointer; padding: .4rem;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--color-void); flex-direction: column;
  padding: 5rem 1.5rem 2rem; gap: .5rem; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  padding: .85rem 0; border-bottom: 1px solid var(--color-border);
  color: rgba(255,255,255,.8);
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav a.mobile-sub-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 0 0.65rem 1.25rem;
  color: rgba(255,255,255,.68);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mobile-nav a.mobile-sub-link::before {
  content: '↳';
  color: var(--hub-pc-vr, #7A5CFA);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.mobile-nav a.mobile-sub-link:hover { color: #fff; }
.mobile-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: #fff; cursor: pointer; font-size: 1.5rem;
}

/* ============================================
   PERMANENT INLINE HEADER SEARCH
============================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Search Form - Always visible with animated neon glow border */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: 
    linear-gradient(#141722, #141722) padding-box,
    linear-gradient(90deg, #7A5CFA, #38BDF8, #F59E0B, #7A5CFA) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: searchNeonBorderMove 4s linear infinite;
  box-shadow: 0 0 12px rgba(122, 92, 250, 0.2), 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 0 0.5rem 0 0.7rem;
  height: 38px;
  width: 220px;
  box-sizing: border-box;
  transition: width 0.2s ease, box-shadow 0.25s ease;
  outline: none !important;
}

@keyframes searchNeonBorderMove {
  0% {
    background-position: 0% 0%, 0% 50%;
  }
  50% {
    background-position: 0% 0%, 100% 50%;
  }
  100% {
    background-position: 0% 0%, 0% 50%;
  }
}

/* Interactive Focus Glow State */
.header-search-form:focus-within {
  box-shadow: 0 0 16px rgba(122, 92, 250, 0.35), 0 0 8px rgba(56, 189, 248, 0.25), 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Accessibility: Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .header-search-form {
    animation: none;
    background-position: 0% 0%, 0% 50%;
  }
}

.search-input-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.45rem;
  flex-shrink: 0;
}

/* Clean Search Input - Zero browser artifacts, zero red/orange outlines */
.header-search-input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #fff !important;
  padding: 0.3rem 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.header-search-input:focus,
.header-search-input:focus-visible,
.header-search-input:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button,
.header-search-input::-webkit-search-results-button,
.header-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

/* Clear button (inside input) */
.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  outline: none !important;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 0.15s;
}
.search-clear-btn:hover {
  color: #fff;
}
.search-clear-btn.visible {
  display: flex;
}

/* Dropdown Results Panel below header - Only shown when query entered and matches exist */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 2rem);
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(122, 92, 250, 0.18);
  padding: 0.6rem;
  z-index: 1050;
  display: none;
  animation: searchDropdownFade 0.18s ease-out;
}
.header-search-dropdown.open {
  display: block;
}

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

.header-search-dropdown .search-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.5rem;
  text-align: center;
  margin: 0;
}

/* Search results list */
.header-search-dropdown #search-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
  margin-top: 0;
}

.header-search-dropdown #search-results::-webkit-scrollbar {
  width: 5px;
}
.header-search-dropdown #search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Result item with thumbnail, badge, title, excerpt */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.search-result-item:hover,
.search-result-item:focus {
  background: rgba(122, 92, 250, 0.14);
  border-color: rgba(122, 92, 250, 0.35);
  transform: translateX(2px);
  outline: none !important;
}

/* Thumbnail */
.search-result-thumb {
  width: 50px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: #252933;
  flex-shrink: 0;
}

/* Result content */
.search-result-content {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  flex: 1;
}

.search-result-hub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}

.search-result-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-excerpt {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-more-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: 0.45rem 0 0.2rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 0.5rem;
  }
  .site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .site-logo img {
    height: 32px;
    width: auto;
    max-width: 120px;
  }
  .main-nav { display: none; }
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }
  /* Centered compact search bar (~50% width of previous 260-280px bar) */
  .header-search-wrap {
    flex: 0 1 auto;
    width: clamp(105px, 30vw, 135px);
    max-width: 135px;
    min-width: 95px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .header-search-form {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 0.4rem 0 0.5rem;
  }
  .header-search-input {
    font-size: 0.76rem;
    padding: 0.15rem 0;
  }
  .header-search-input::placeholder {
    font-size: 0.74rem;
  }
  .search-input-icon {
    margin-right: 0.35rem;
  }
  .search-input-icon svg {
    width: 13px;
    height: 13px;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  .header-search-dropdown {
    position: fixed;
    top: 68px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: none;
    max-height: 70vh;
    z-index: 1050;
  }
}
@media (max-width: 480px) {
  .header-inner { gap: 0.35rem; }
  .site-logo img { height: 28px; max-width: 110px; }
  .header-actions { gap: 0.35rem; }
  .header-search-wrap { width: clamp(95px, 28vw, 125px); max-width: 125px; min-width: 90px; margin: 0 auto; }
  .mobile-toggle { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
}
@media (max-width: 350px) {
  .site-logo img { height: 26px; max-width: 95px; }
  .header-search-wrap { width: 95px; max-width: 95px; min-width: 85px; }
  .mobile-toggle { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
}

/* ============================================
   HERO
============================================ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--color-void); overflow: hidden;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(45,93,224,.18) 0%, rgba(122,92,250,.1) 40%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute; bottom: -10%; right: -5%; width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,159,69,.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 9rem 0 4rem; }

.hero-hud-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-signal); margin-bottom: 1.5rem;
}
.hero-hud-label::before { content:''; display:block; width:28px; height:1.5px; background:var(--color-signal); }

.hero-headline {
  font-family: var(--font-display); font-size: clamp(2.5rem,6vw,4.5rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: var(--tracking-headline); color: #fff;
  max-width: 800px; margin-bottom: 1.4rem;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--hub-meta-quest), var(--hub-pc-vr));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.6);
  max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-outline { color: rgba(255,255,255,.85); }

/* Hero diagonal bottom */
.hero-diagonal {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: var(--color-fog); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ============================================
   HUB SELECTOR CARDS
============================================ */
.hub-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 4rem;
}
.hub-card {
  position: relative; background: var(--color-void-2);
  border: 1px solid var(--color-border); border-radius: 12px;
  padding: 1.75rem 1.5rem; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: block; text-decoration: none;
}
.hub-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background: var(--hc); transform: scaleX(0); transform-origin:left; transition:transform .3s;
}
.hub-card::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at top left, var(--hg) 0%, transparent 60%);
  opacity:0; transition:opacity .3s;
}
.hub-card:hover { transform:translateY(-4px); border-color:var(--hc); box-shadow:0 12px 40px rgba(0,0,0,.3),0 0 0 1px var(--hc); }
.hub-card:hover::before { transform:scaleX(1); }
.hub-card:hover::after  { opacity:1; }

.hub-card--meta { --hc:var(--hub-meta-quest); --hg:rgba(45,93,224,.14); --hd:rgba(45,93,224,.12); }
.hub-card--ar   { --hc:var(--hub-ar-apps);   --hg:rgba(255,159,69,.14); --hd:rgba(255,159,69,.12); }
.hub-card--pc   { --hc:var(--hub-pc-vr);     --hg:rgba(122,92,250,.14); --hd:rgba(122,92,250,.12); }
.hub-card--plat { --hc:var(--hub-platforms); --hg:rgba(31,122,140,.14); --hd:rgba(31,122,140,.12); }

.hc-badge {
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.65rem; font-weight:700;
  letter-spacing:var(--tracking-caps); text-transform:uppercase;
  width:36px; height:36px; border-radius:8px;
  background:var(--hd); color:var(--hc); border:1px solid var(--hc);
  margin-bottom:1.25rem; position:relative; z-index:1;
}
.hc-name {
  font-family:var(--font-display); font-size:.95rem; font-weight:700;
  letter-spacing:var(--tracking-headline); color:#fff;
  text-transform:uppercase; margin-bottom:.6rem;
  position:relative; z-index:1;
}
.hc-desc {
  font-size:.78rem; color:rgba(255,255,255,.5);
  line-height:1.55; margin-bottom:1.25rem; position:relative; z-index:1;
}
.hc-link {
  display:flex; align-items:center; gap:.4rem;
  font-family:var(--font-mono); font-size:.62rem; font-weight:600;
  letter-spacing:var(--tracking-caps); text-transform:uppercase;
  color:var(--hc); position:relative; z-index:1; transition:gap .2s;
}
.hub-card:hover .hc-link { gap:.7rem; }

/* ============================================
   FEATURED SECTION (light bg)
============================================ */
#featured { background:var(--color-fog); padding:5rem 0; position:relative; overflow:hidden; }

.featured-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:start;
}
.featured-big {
  display:block; background:#fff; border-radius:12px; overflow:hidden;
  box-shadow:0 4px 24px rgba(0,0,0,.08);
  transition:transform .3s,box-shadow .3s; text-decoration:none; grid-row:span 2;
}
.featured-big:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(0,0,0,.14); }
.featured-big .f-img { aspect-ratio:16/9; overflow:hidden; }
.featured-big .f-img img { width:100%;height:100%;object-fit:cover;transition:transform .5s; }
.featured-big:hover .f-img img { transform:scale(1.04); }
.featured-big .f-body { padding:1.75rem; }
.featured-big .f-title {
  font-family:var(--font-display); font-size:1.3rem; font-weight:700;
  color:var(--color-void); line-height:1.3; margin-bottom:.75rem;
  letter-spacing:var(--tracking-headline);
}
.featured-big .f-excerpt {
  font-size:.875rem; color:var(--color-ink-muted); line-height:1.65; margin-bottom:1.25rem;
}
.f-meta { display:flex; align-items:center; gap:.5rem; margin-bottom:.5rem; }
.card-date {
  font-family:var(--font-mono); font-size:.6rem;
  color:var(--color-ink-muted); letter-spacing:var(--tracking-caps);
}

.mini-card {
  display:flex; gap:1rem; background:#fff; border-radius:10px; overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06); transition:transform .25s,box-shadow .25s;
  text-decoration:none;
}
.mini-card:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,.1); }
.mini-card .mc-img { width:110px; flex-shrink:0; overflow:hidden; }
.mini-card .mc-img img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.mini-card:hover .mc-img img { transform:scale(1.06); }
.mini-card .mc-body { padding:1rem 1rem 1rem 0; display:flex; flex-direction:column; justify-content:center; }
.mini-card .mc-title {
  font-family:var(--font-display); font-size:.88rem; font-weight:600;
  color:var(--color-void); line-height:1.35; letter-spacing:.01em;
}

/* ============================================
   HUB SECTIONS (dark + light alternating)
============================================ */
.hub-section { padding:var(--section-y) 0; position:relative; overflow:hidden; }
.hs-dark   { background:var(--color-void); }
.hs-darker { background:var(--color-void-2); }
.hs-light  { background:var(--color-fog); }

/* Diagonal clip-paths */
.diag-down { clip-path:polygon(0 0,100% 0,100% calc(100% - 3.5vw),0 100%); padding-bottom:5vw; }
.diag-up   { clip-path:polygon(0 3.5vw,100% 0,100% 100%,0 100%); padding-top:5vw; margin-top:-2px; }

.hs-header {
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:2.5rem; gap:1rem;
}
.hs-stripe { width:40px; height:3px; border-radius:99px; margin-bottom:.6rem; }
.hs-title {
  font-family:var(--font-display); font-size:clamp(1.3rem,2.5vw,1.8rem);
  font-weight:700; letter-spacing:var(--tracking-headline);
}
.hs-sub { font-size:.82rem; color:rgba(255,255,255,.45); margin-top:.3rem; }
.hs-sub-dark { color:var(--color-ink-muted); }
.hs-link {
  font-family:var(--font-mono); font-size:.65rem; letter-spacing:var(--tracking-caps);
  text-transform:uppercase; border-bottom:1px solid currentColor;
  padding-bottom:2px; transition:opacity .2s; white-space:nowrap;
}
.hs-link:hover { opacity:.7; }

.articles-row { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }

/* Dark article card */
.acard {
  display:block; border-radius:10px; overflow:hidden;
  text-decoration:none; transition:transform .25s, border-color .25s, box-shadow .25s;
}
.acard--dark {
  background:var(--color-void-3); border:1px solid var(--color-border);
}
.acard--dark:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.4); }
.acard--light {
  background:#fff; border:1px solid rgba(0,0,0,.06);
}
.acard--light:hover { transform:translateY(-4px); box-shadow:0 10px 30px rgba(0,0,0,.1); }

.acard-img { aspect-ratio:16/9; overflow:hidden; position:relative; }
.acard-img img { width:100%;height:100%;object-fit:cover;transition:transform .5s; }
.acard:hover .acard-img img { transform:scale(1.05); }
.acard-img-overlay {
  position:absolute; bottom:0;left:0;right:0;height:50%;
  background:linear-gradient(to top,rgba(20,22,28,.9),transparent);
}
.acard-img-overlay-light {
  position:absolute; bottom:0;left:0;right:0;height:50%;
  background:linear-gradient(to top,rgba(255,255,255,.9),transparent);
}
.acard-body { padding:1.1rem 1.25rem; }
.acard-meta { display:flex;align-items:center;gap:.5rem;margin-bottom:.55rem; }
.acard-title-dark {
  font-family:var(--font-display); font-size:.92rem; font-weight:600;
  color:rgba(255,255,255,.9); line-height:1.4; letter-spacing:.01em;
}
.acard-title-light {
  font-family:var(--font-display); font-size:.92rem; font-weight:600;
  color:var(--color-void); line-height:1.4; letter-spacing:.01em;
}
.acard-excerpt {
  font-size:.78rem; line-height:1.55; margin-top:.5rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.acard-excerpt--dark  { color:rgba(255,255,255,.42); }
.acard-excerpt--light { color:var(--color-ink-muted); }
.blog-card-excerpt {
  font-size:.78rem; line-height:1.55; margin-top:.5rem; color:rgba(255,255,255,.42);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ============================================
   CALLOUT BANNER
============================================ */
.callout-section {
  background:linear-gradient(135deg,var(--hub-meta-quest) 0%,var(--hub-pc-vr) 100%);
  padding:4.5rem 0; position:relative; overflow:hidden;
}
.callout-inner {
  position:relative;z-index:1;
  display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;
}
.callout-text {
  font-family:var(--font-display); font-size:clamp(1.2rem,2.5vw,1.7rem);
  font-weight:700; color:#fff; letter-spacing:var(--tracking-headline); max-width:520px;
}
.callout-text span {
  display:block; font-family:var(--font-mono); font-size:.65rem; font-weight:500;
  letter-spacing:var(--tracking-caps); text-transform:uppercase;
  color:rgba(255,255,255,.65); margin-bottom:.5rem;
}
.callout-section .btn-outline { color:#fff; border-color:rgba(255,255,255,.5); }
.callout-section .btn-outline:hover { background:#fff; }
.callout-section .btn-outline:hover span { color:var(--hub-meta-quest) !important; }

/* ============================================
   GUIDES INDEX (light bg)
============================================ */
#guides-index { background:var(--color-fog); padding:var(--section-y) 0; position:relative; overflow:hidden; }
.guides-header { display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:2.5rem;gap:1rem;flex-wrap:wrap; }
.guides-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.gcard {
  display:block; background:#fff; border-radius:10px; overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06); transition:transform .25s,box-shadow .25s; text-decoration:none;
}
.gcard:hover { transform:translateY(-4px); box-shadow:0 10px 32px rgba(0,0,0,.1); }
.gcard-img { aspect-ratio:16/9; overflow:hidden; }
.gcard-img img { width:100%;height:100%;object-fit:cover;transition:transform .4s; }
.gcard:hover .gcard-img img { transform:scale(1.06); }
.gcard-body { padding:1rem 1.1rem; }
.gcard-meta { display:flex;align-items:center;gap:.4rem;margin-bottom:.5rem; }
.gcard-title {
  font-family:var(--font-display); font-size:.85rem; font-weight:600;
  color:var(--color-void); line-height:1.35; letter-spacing:.01em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ============================================
   NEWSLETTER
============================================ */
#newsletter {
  background:var(--color-void-2); padding:2rem 0;
  border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border);
}
.nl-inner { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
.nl-headline {
  font-family:var(--font-display); font-size:clamp(1.3rem,2.5vw,1.7rem);
  font-weight:700; color:#fff; letter-spacing:var(--tracking-headline); margin-bottom:.35rem;
}
.nl-sub { font-size:.875rem; color:rgba(255,255,255,.5); line-height:1.5; }
.nl-form { display:flex; gap:.75rem; }
.nl-form input[type="email"] {
  flex:1; background:var(--color-void-3); border:1px solid var(--color-border);
  border-radius:6px; padding:.7rem 1rem; font-family:var(--font-body);
  font-size:.875rem; color:#fff; outline:none; transition:border-color .2s;
}
.nl-form input::placeholder { color:rgba(255,255,255,.3); }
.nl-form input:focus { border-color:var(--color-signal); }
.nl-disclaimer {
  font-size:.68rem; color:rgba(255,255,255,.3); margin-top:.4rem;
  font-family:var(--font-mono); letter-spacing:var(--tracking-label);
}

/* ============================================
   FOOTER (APPROVED TECHFLOK REFERENCE DESIGN)
============================================ */
#site-footer {
  width: 100%;
  position: relative;
  padding: 80px 0 40px;
  background:
    radial-gradient(ellipse 700px 280px at 50% 0%, rgba(61,127,255,0.35) 0%, transparent 70%),
    #0a0b0e;
  overflow: hidden;
}
#site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpath d='M30 0L60 17.3V52L30 69.3 0 52V17.3Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cpath d='M30 52L60 69.3V104L30 121.3 0 104V69.3Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}
#site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,127,255,0.6) 50%, transparent);
  pointer-events: none;
}
#site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 60px;
  align-items: start;
}

/* Brand block */
.footer-brand { justify-self: start; max-width: 320px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; display: block; }
.footer-brand-name { display: none; }
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #7c8494;
  max-width: 280px;
  margin-bottom: 26px;
}
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; max-width: 300px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #121419;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #a8afbc;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
  flex-shrink: 0;
}
.footer-social a:hover {
  border-color: #3d7fff;
  color: #3d7fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

/* Center mark: AR spatial-anchor visual, no text */
.footer-mark-wrap {
  justify-self: center;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 4px 0;
}
.footer-mark-svg {
  width: 180px;
  height: 100%;
  max-height: 220px;
  display: block;
  filter: drop-shadow(0 0 22px rgba(61,127,255,0.35));
}
.ftr-orbit { transform-origin: 80px 80px; animation: ftrSpin 14s linear infinite; }
.ftr-orbit-rev { transform-origin: 80px 80px; animation: ftrSpinRev 22s linear infinite; }
.ftr-pulse { animation: ftrPulse 2.6s ease-in-out infinite; transform-origin: 80px 80px; }
@keyframes ftrSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ftrSpinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes ftrPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ftr-orbit, .ftr-orbit-rev, .ftr-pulse { animation: none; }
}

/* Links */
.footer-nav-area {
  display: flex;
  gap: 64px;
  justify-self: end;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f2f4f7;
  margin: 0 0 18px;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.footer-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: #a8afbc;
  text-decoration: none;
  margin-bottom: 13px;
  transition: color .15s ease;
  width: fit-content;
}
.footer-links a:hover {
  color: #3d7fff;
}

.footer-bottom {
  margin: 64px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #7c8494;
}
.footer-built {
  color: #565d6b;
}

/* ============================================
   AD SLOT PLACEHOLDER
============================================ */
.ad-slot {
  background:rgba(255,255,255,.02); border:1px dashed rgba(255,255,255,.08);
  border-radius:6px; min-height:90px; display:flex; align-items:center;
  justify-content:center; font-family:var(--font-mono); font-size:.6rem;
  color:rgba(255,255,255,.15); letter-spacing:var(--tracking-caps); text-transform:uppercase;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up   { animation:fadeUp .6s ease both; }
.fu-1 { animation-delay:.1s; }
.fu-2 { animation-delay:.2s; }
.fu-3 { animation-delay:.3s; }
.fu-4 { animation-delay:.4s; }

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;}
}

/* ============================================
   STATIC PAGE CONTENT STYLING
============================================ */
.static-page-container {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  color: var(--color-ink);
}
.static-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.75rem;
  line-height: 1.2;
}
.static-page-content {
  line-height: 1.8;
  font-size: 1.05rem;
}
.static-page-content h2 {
  color: #fff;
  margin: 2.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.static-page-content h3 {
  color: #fff;
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.static-page-content p {
  margin-bottom: 1.25rem;
}
.static-page-content ul,
.static-page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--color-ink);
}
.static-page-content li {
  margin-bottom: 0.5rem;
}
.static-page-content a {
  color: var(--color-signal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.static-page-content a:hover {
  color: #fff;
}
.static-page-content strong,
.static-page-content b {
  color: #fff;
  font-weight: 600;
}
.static-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.static-page-content th,
.static-page-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.static-page-content th {
  background: var(--color-void-2);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ============================================
   FOCUS / ACCESSIBILITY
============================================ */
:focus-visible { outline:2px dotted var(--color-signal); outline-offset:3px; }

/* ============================================
   RESPONSIVE
============================================ */
@media(max-width:1100px){
  .hub-grid   { grid-template-columns:repeat(2,1fr); }
  .guides-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:900px){
  .main-nav     { display:none; }
  .mobile-toggle{ display:flex; }
  .featured-grid{ grid-template-columns:1fr; }
  .featured-big { grid-row:auto; }
  .articles-row { grid-template-columns:1fr 1fr; }
  .footer-grid  { grid-template-columns:1fr; gap:44px; text-align:left; }
  .footer-brand { justify-self:start; order:1; }
  .footer-mark-wrap { align-items:flex-start; justify-self:start; order:2; }
  .footer-nav-area { justify-self:start; gap:48px; order:3; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
  .nl-inner     { grid-template-columns:1fr; }
  .nl-form      { flex-direction:column; }
}
@media(max-width:640px){
  .header-actions .btn-outline { display: none; }
  .hub-grid      { grid-template-columns:1fr; }
  .articles-row  { grid-template-columns:1fr; }
  .guides-grid   { grid-template-columns:1fr 1fr; }
  .footer-grid   { grid-template-columns:1fr; gap:40px; }
  .footer-nav-area { gap:40px; }
  .callout-inner { justify-content:center;text-align:center; }
  .footer-bottom { flex-direction:column; align-items:flex-start; gap:10px; }
}
@media(max-width:420px){
  .guides-grid{ grid-template-columns:1fr; }
  .footer-nav-area { flex-direction:column; gap:24px; }
}
