/* ==========================================================================
   LamaStudio — Unified & Aligned Stylesheet v2.3 (Optimized Edition)
   ========================================================================== */

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --brand: #6366f1;
  --brand-2: #22d3ee;

  --c-security: #34d399;
  --c-weather: #fbbf24;
  --c-productivity: #60a5fa;
  --c-education: #a78bfa;
  --c-tools: #f472b6;
  --c-tech: #22d3ee;
  --c-business: #38bdf8;
  --c-sports: #f87171;
  --c-travel: #fb923c;
  --c-news: #c084fc;
  --c-fashion: #f472b6;
  --c-health: #4ade80;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 64px;

  --space-section: clamp(3rem, 5vw, 5rem);
}

html[data-theme="dark"] {
  --background: #0f172a;
  --bg: #07090d;
  --bg-elevated: #0e131b;
  --bg-panel: #10161f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #576378;
  --overlay: rgba(5, 7, 11, 0.75);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 36px -20px rgba(0, 0, 0, 0.65);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  --background: #f8fafc;
  --bg: #eef0f5;
  --bg-elevated: #ffffff;
  --bg-panel: #ffffff;
  --surface: rgba(15, 23, 42, 0.035);
  --surface-strong: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #8791a5;
  --overlay: rgba(15, 18, 28, 0.4);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 30px -22px rgba(15, 23, 42, 0.22);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 30px 50px -30px rgba(15, 23, 42, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout Wrappers & Content Bounds
   -------------------------------------------------------------------------- */
.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 4rem 1rem;
}

.category-strip,
.section,
.dashboard,
.ad-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Fixed 3D Background Canvas Layer */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
}

/* Header & Mobile Optimization */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.util-row {
  height: var(--header-h);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: var(--surface-strong);
  border-color: var(--brand-2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand > div {
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--text-muted);
}


/* LAMA Studio official icon + responsive studio identity.
   Uses the approved blue L mark instead of a full-width image in the nav. */
.studio-brand{min-width:0;max-width:calc(100% - 132px);gap:.55rem;text-decoration:none;color:var(--text)}
.studio-brand-icon{width:50px;height:50px;display:block;object-fit:contain;flex-shrink:0;border-radius:12px}
.studio-brand-copy{min-width:0;max-width:100%;display:flex;flex-direction:column;justify-content:center;gap:3px;line-height:1.1;overflow:hidden}
.studio-brand-copy strong{font-family:var(--font-display);font-size:clamp(.93rem,1.6vw,1.16rem);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.025em}
.studio-brand-copy small{font-family:var(--font-body);font-size:clamp(.55rem,.95vw,.69rem);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.025em;color:var(--text-muted)}
@media(max-width:640px){
 .studio-brand{max-width:calc(100% - 125px);gap:.4rem}
 .studio-brand-icon{width:42px;height:42px;border-radius:11px}
 .studio-brand-copy strong{font-size:.95rem}
 .studio-brand-copy small{font-size:.57rem}
}
@media(max-width:365px){
 .studio-brand{max-width:calc(100% - 119px)}
 .studio-brand-icon{width:38px;height:38px}
 .studio-brand-copy strong{font-size:.86rem}
 .studio-brand-copy small{font-size:.53rem}
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Sidebar Drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-overlay.is-open .sidebar-drawer {
  transform: translateX(0);
}

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

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.sidebar-quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
}

.sidebar-quick-btn {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  text-align: center;
  transition: background 0.2s;
}

.sidebar-quick-btn:hover {
  background: var(--surface-strong);
}

.sidebar-nav-group {
  padding: 0.85rem 1rem;
}

.sidebar-nav-group h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.sidebar-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-nav-group a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sidebar-nav-group a:hover {
  background: var(--surface);
  color: var(--text);
}

.sidebar-nav-group + .sidebar-nav-group {
  border-top: 1px solid var(--border);
}

/* Centered Category Strip */
.category-strip {
  padding: 1.2rem 0;
  overflow: hidden;
  width: 100%;
}

.category-track {
  display: flex;
  justify-content: center; /* Aligns categories to center */
  flex-wrap: wrap;         /* Allows wrapping on smaller mobile screens */
  gap: 0.6rem;
  padding: 0 0.5rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: color 0.2s, border-color 0.2s;
}

.cat-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc, var(--brand-2));
}

.cat-pill:hover {
  color: var(--text);
  border-color: var(--pc, var(--brand-2));
}

/* Dashboard Hero & Sidebar Grid */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
  margin: 1rem auto 2.5rem auto;
  perspective: 1200px;
}

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

.hero-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-panel);
  transform-style: preserve-3d;
  will-change: transform;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateZ(35px);
}

.hero-panel h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0.6rem 0 0.9rem;
  transform: translateZ(25px);
}

.hero-panel h1 em {
  color: var(--brand-2);
  font-style: normal;
}

.hero-panel .lede {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
  max-width: 44ch;
  transform: translateZ(15px);
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  transform: translateZ(30px);
}

/* Side Widgets */
.side-widgets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widget {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  will-change: transform;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #f87171;
}

.live-dot i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin-bottom: 0.8rem;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.btn-youtube {
  color: #ff5c5c;
}

.btn-facebook {
  color: #4f9dff;
}

.btn-social:hover {
  background: var(--surface);
}

/* Standalone Empty Ad Banner Placeholder */
.section-ad-banner {
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Sections & Grids with 3D Perspective */
.section {
  margin: 3rem auto;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.6rem;
  margin-top: 0.2rem;
}

.app-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  perspective: 1200px;
}

.app-card, .blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.app-card:hover, .blog-card:hover {
  border-color: var(--brand-2);
  box-shadow: 0 22px 40px -15px rgba(0, 0, 0, 0.5), 
              0 0 20px 2px color-mix(in srgb, var(--brand-2) 25%, transparent);
}

.app-card .app-icon, .blog-card .blog-thumb {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
  transform: translateZ(35px);
}

.app-card .tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--pc, var(--brand-2));
  background: color-mix(in srgb, var(--pc, var(--brand-2)) 15%, transparent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  width: fit-content;
  transform: translateZ(25px);
}

.app-card h3, .blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  transform: translateZ(25px);
}

.app-card .desc, .blog-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  flex: 1;
  margin-bottom: 1rem;
  transform: translateZ(15px);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  transform: translateZ(30px);
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-header-banner {
  padding: 28px 16px;
  text-align: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transform: translateZ(20px);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  transform: translateZ(20px);
}

.read-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.read-link {
  color: var(--brand-2);
  font-weight: 600;
  font-size: 0.86rem;
  margin-top: auto;
  transform: translateZ(25px);
}

/* Buttons */
.btn-action, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.btn-action:hover {
  opacity: 0.92;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--brand-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 1rem 1.75rem;
  background: var(--bg-elevated);
  width: 100%;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.75rem;
}

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

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

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

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

.footer-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.footer-bottom {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 0.8rem;
}


/* LamaStudio readability enhancement: October 2026 */
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font-body, 'Inter', Arial, sans-serif); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[data-theme="dark"] { --text-muted: #c3cfdf; --text-faint: #a7b6ca; --border: rgba(226,232,240,.20); }
html[data-theme="light"] { --text-muted: #475569; --text-faint: #56647a; --border: rgba(15,23,42,.18); }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; letter-spacing: -.018em; }
p,li,a,button,input,textarea,select { line-height: 1.55; }
.hero-panel .lede { font-size: clamp(1.02rem,1.6vw,1.18rem); line-height: 1.75; color: var(--text); opacity: .93; }
.eyebrow, .read-time, .tag-pill, .widget-title, .sidebar-nav-group h5 { font-size: max(.78rem, 12.5px); letter-spacing: .025em; font-weight: 700; }
.app-card .desc, .blog-card p, .widget p, .site-footer p, .footer-col a, .sidebar-drawer a { font-size: .96rem; line-height: 1.7; color: var(--text-muted); }
.app-card h3, .blog-card h3 { font-size: clamp(1.12rem,1.5vw,1.3rem); font-weight: 700; }
.cat-pill, .sidebar-quick-btn, .btn-action, .btn-ghost, .btn-social, .read-link { font-size: .94rem; font-weight: 700; }
.brand { font-weight: 800; }
.brand small { font-size: .78rem; letter-spacing: .02em; color: var(--text-muted); }
.site-footer, .sidebar-drawer { color: var(--text); }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 3px solid #22d3ee; outline-offset: 3px; }
@media(max-width: 640px) {
 html { font-size: 16px; }
 .app-card .desc, .blog-card p, .widget p { font-size: .96rem; }
 .hero-panel .lede { font-size: 1.04rem; }
 .eyebrow, .tag-pill { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }


/* LamaStudio commercial homepage enhancement — additive; existing components and links retained */
:root{--radius-lg:20px;--radius-xl:25px}
html[data-theme="dark"]{--bg:#080e19;--bg-elevated:#101b2c;--bg-panel:#132238;--border:rgba(155,188,229,.17);--border-strong:rgba(165,202,240,.28);--text-muted:#bdcbde;--shadow-card:0 14px 36px -21px rgba(0,0,0,.7);--shadow-panel:0 22px 54px -30px rgba(0,0,0,.8)}
html[data-theme="light"]{--bg:#f3f7fc;--bg-elevated:#fff;--bg-panel:#f7faff;--border:rgba(29,65,104,.13)}
.site-header{background:color-mix(in srgb,var(--bg) 94%,transparent);border-bottom:1px solid var(--border-strong)}
.util-row{height:72px}
.brand-mark{width:43px;height:43px;border-radius:13px;background:linear-gradient(145deg,#173b76,#377de2);box-shadow:0 5px 18px #2b70d340}
.brand>div{font-size:1.08rem;font-weight:800}
.icon-btn{width:42px;height:42px;border-radius:12px}
.site-main{padding-bottom:4.5rem}
.category-strip{padding:1.35rem 0 1rem}
.category-track{gap:.65rem}
.cat-pill{padding:.55rem 1rem;border-color:var(--border-strong);font-size:.82rem}
.dashboard{grid-template-columns:minmax(0,1.5fr) minmax(290px,.85fr);gap:1.25rem;margin:1.2rem auto 2rem;perspective:none}
.hero-panel,.widget,.app-card,.blog-card{transform-style:flat;will-change:auto}
.hero-panel{position:relative;overflow:hidden;padding:clamp(2rem,4.4vw,3.4rem);background:linear-gradient(125deg,var(--bg-elevated),var(--bg-panel));border:1px solid var(--border-strong);border-radius:25px}
.hero-panel:before{content:"";position:absolute;right:-85px;top:-120px;width:260px;height:260px;background:radial-gradient(circle,rgba(34,211,238,.13),transparent 70%);pointer-events:none}
.hero-panel h1{font-size:clamp(2rem,3.5vw,3.1rem);line-height:1.12;letter-spacing:-.045em;max-width:16ch}
.hero-panel .lede{max-width:55ch;font-size:1.03rem}
.hero-panel .hero-cta{gap:.8rem}
.btn-action,.btn-ghost{border-radius:12px;padding:.8rem 1.15rem;min-height:44px}
.widget{border-radius:21px;border-color:var(--border-strong);padding:1.25rem}
.section{margin:2.6rem auto 3.5rem}
.section-head{margin-bottom:1.35rem}.section-head h2{font-size:clamp(1.6rem,2.5vw,2.2rem);font-weight:800}
.app-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;perspective:none}
.blog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;perspective:none}
.app-card,.blog-card{min-width:0;padding:1.5rem;border:1px solid var(--border-strong);border-radius:22px;box-shadow:var(--shadow-card);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.app-card:hover,.blog-card:hover{transform:translateY(-4px);box-shadow:0 24px 46px -24px rgba(0,0,0,.5)}
.app-card .app-icon{font-size:2rem;margin-bottom:1rem}
.app-card h3{font-size:1.16rem}
.app-card .desc{font-size:.94rem;line-height:1.65}
.app-card .card-actions{margin-top:auto;padding-top:.5rem}
.app-card .btn-action{width:100%;border-radius:12px}
.section-ad-banner{border-radius:20px}
@media(max-width:960px){.dashboard{grid-template-columns:minmax(0,1fr)}.side-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.app-grid,.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
.site-main{padding:0 16px 3rem}
.util-row{height:64px;padding:0 16px}
.brand-mark{width:38px;height:38px}.brand>div{font-size:1rem}.brand small{font-size:.68rem}
.icon-btn{width:38px;height:38px}
.category-strip{padding:15px 0}.category-track{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px}.category-track::-webkit-scrollbar{display:none}.cat-pill{flex:0 0 auto}
.dashboard{gap:15px;margin:8px 0 24px}
.hero-panel{padding:27px 22px;border-radius:22px}.hero-panel h1{font-size:clamp(1.85rem,8.2vw,2.6rem);max-width:none}.hero-panel .lede{font-size:1rem;line-height:1.65}
.hero-cta>*{flex:1 1 135px;text-align:center}
.side-widgets{grid-template-columns:minmax(0,1fr);gap:13px}.widget{padding:18px}
.section{margin:30px 0 38px}.section-head h2{font-size:1.65rem}
.app-grid,.blog-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.app-card,.blog-card{padding:21px;border-radius:19px}
.app-card .app-icon{font-size:2.15rem}
.app-card .btn-action{min-height:46px}
.section-ad-banner{min-height:60px;margin:20px 0}
#webgl-container{opacity:.2}
}
@media(min-width:641px) and (max-width:800px){.app-grid,.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.app-card:hover,.blog-card:hover{transform:none}}
