/* ==============================
   RESET & VARIABLES
================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-alt: #0e0e15;
  --bg-card: #111119;
  --bg-card-hover: #16161f;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);
  --text: #e8e8f0;
  --text-muted: #7a7a9a;
  --text-faint: #3a3a5a;
  --accent: #6c63ff;
  --accent-glow: rgba(108,99,255,0.2);

  /* Section colors */
  --blue: #3b82f6;
  --blue-glow: rgba(59,130,246,0.15);
  --orange: #f97316;
  --orange-glow: rgba(249,115,22,0.15);
  --green: #22c55e;
  --green-glow: rgba(34,197,94,0.15);
  --purple: #a855f7;
  --purple-glow: rgba(168,85,247,0.15);
  --pink: #ec4899;
  --pink-glow: rgba(236,72,153,0.15);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6,182,212,0.15);

  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --tr: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.05rem; }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Color utilities */
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-purple { color: var(--purple); }
.text-pink   { color: var(--pink); }
.text-cyan   { color: var(--cyan); }

/* ==============================
   LAYOUT
================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { margin-bottom: 48px; max-width: 680px; }
.section-desc { margin-top: 12px; font-size: 1rem; line-height: 1.75; }

/* ==============================
   SECTION BADGES
================================= */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.badge-blue   { background: var(--blue-glow);   color: var(--blue);   border: 1px solid rgba(59,130,246,0.3); }
.badge-orange { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.badge-green  { background: var(--green-glow);  color: var(--green);  border: 1px solid rgba(34,197,94,0.3); }
.badge-purple { background: var(--purple-glow); color: var(--purple); border: 1px solid rgba(168,85,247,0.3); }
.badge-pink   { background: var(--pink-glow);   color: var(--pink);   border: 1px solid rgba(236,72,153,0.3); }
.badge-cyan   { background: var(--cyan-glow);   color: var(--cyan);   border: 1px solid rgba(6,182,212,0.3); }

/* ==============================
   NAV
================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 18px 0;
  transition: var(--tr);
}
.nav.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; }

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-item {
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: all var(--tr);
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn-outline {
  font-size: 0.82rem; font-weight: 500;
  padding: 7px 18px; border-radius: 8px;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  margin-left: 8px;
  transition: all var(--tr);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }

/* ==============================
   HERO
================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 760px; padding: 0 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-tag {
  display: inline-block; font-size: 0.75rem;
  color: rgba(0,217,255,0.8); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-name {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted); margin-bottom: 44px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid; transition: all var(--tr);
}
.pill:hover { transform: translateY(-2px); }
.pill-blue   { color: var(--blue);   border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.08); }
.pill-blue:hover   { background: rgba(59,130,246,0.18); }
.pill-orange { color: var(--orange); border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.08); }
.pill-orange:hover { background: rgba(249,115,22,0.18); }
.pill-green  { color: var(--green);  border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }
.pill-green:hover  { background: rgba(34,197,94,0.18); }
.pill-purple { color: var(--purple); border-color: rgba(168,85,247,0.3); background: rgba(168,85,247,0.08); }
.pill-purple:hover { background: rgba(168,85,247,0.18); }
.pill-pink   { color: var(--pink);   border-color: rgba(236,72,153,0.3); background: rgba(236,72,153,0.08); }
.pill-pink:hover   { background: rgba(236,72,153,0.18); }

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 1;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s infinite;
}

/* ==============================
   SECTION INTRO BLOCK
================================= */
.section-intro {
  display: flex; align-items: flex-start; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  overflow: hidden;
  background: var(--bg-card);
}

.intro-what {
  flex: 1.1; padding: 28px 32px;
  border-right: 1px solid var(--border);
}
.intro-label {
  display: inline-block;
  font-size: 0.68rem; font-family: var(--mono);
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 6px;
  margin-bottom: 10px;
}
.intro-what p {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--text-muted);
}

.intro-divider { display: none; }

.intro-points {
  flex: 1; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.intro-point {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.87rem; color: var(--text-muted); line-height: 1.5;
}
.ip-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Color variants */
.intro-blue   { border-color: rgba(59,130,246,0.18); }
.intro-blue   .intro-label { color: var(--blue);   background: var(--blue-glow);   border: 1px solid rgba(59,130,246,0.25); }
.intro-blue   .intro-what  { border-right-color: rgba(59,130,246,0.12); }

.intro-orange { border-color: rgba(249,115,22,0.18); }
.intro-orange .intro-label { color: var(--orange); background: var(--orange-glow); border: 1px solid rgba(249,115,22,0.25); }
.intro-orange .intro-what  { border-right-color: rgba(249,115,22,0.12); }

.intro-green  { border-color: rgba(34,197,94,0.18); }
.intro-green  .intro-label { color: var(--green);  background: var(--green-glow);  border: 1px solid rgba(34,197,94,0.25); }
.intro-green  .intro-what  { border-right-color: rgba(34,197,94,0.12); }

.intro-purple { border-color: rgba(168,85,247,0.18); }
.intro-purple .intro-label { color: var(--purple); background: var(--purple-glow); border: 1px solid rgba(168,85,247,0.25); }
.intro-purple .intro-what  { border-right-color: rgba(168,85,247,0.12); }

.intro-pink   { border-color: rgba(236,72,153,0.18); }
.intro-pink   .intro-label { color: var(--pink);   background: var(--pink-glow);   border: 1px solid rgba(236,72,153,0.25); }
.intro-pink   .intro-what  { border-right-color: rgba(236,72,153,0.12); }

.intro-cyan   { border-color: rgba(6,182,212,0.18); }
.intro-cyan   .intro-label { color: var(--cyan);   background: var(--cyan-glow);   border: 1px solid rgba(6,182,212,0.25); }
.intro-cyan   .intro-what  { border-right-color: rgba(6,182,212,0.12); }

@media (max-width: 768px) {
  .section-intro { flex-direction: column; }
  .intro-what { border-right: none; border-bottom: 1px solid var(--border); padding: 22px 20px; }
  .intro-points { padding: 20px 20px; }
}

/* ==============================
   FILTER BAR
================================= */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  font-size: 0.8rem; font-family: var(--mono);
  padding: 6px 16px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: all var(--tr);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-glow);
}

/* ==============================
   CARDS GRID
================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--tr);
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

/* CARD PREVIEW */
.card-preview {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Preview backgrounds */
.bg-blue    { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.bg-blue-2  { background: linear-gradient(135deg, #0f2057, #2563eb); }
.bg-teal    { background: linear-gradient(135deg, #0f4c5c, #0891b2); }
.bg-purple  { background: linear-gradient(135deg, #3b0764, #9333ea); }
.bg-violet  { background: linear-gradient(135deg, #2e1065, #7c3aed); }
.bg-indigo  { background: linear-gradient(135deg, #1e1b4b, #4f46e5); }
.bg-orange  { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.bg-orange-2 { background: linear-gradient(135deg, #431407, #c2410c); }
.bg-amber   { background: linear-gradient(135deg, #78350f, #d97706); }
.bg-green   { background: linear-gradient(135deg, #14532d, #16a34a); }
.bg-green-2 { background: linear-gradient(135deg, #052e16, #15803d); }
.bg-emerald { background: linear-gradient(135deg, #022c22, #059669); }
.bg-pink    { background: linear-gradient(135deg, #500724, #db2777); }
.bg-rose    { background: linear-gradient(135deg, #4c0519, #e11d48); }
.bg-fuchsia { background: linear-gradient(135deg, #4a044e, #c026d3); }
.bg-magenta { background: linear-gradient(135deg, #3b0764, #9333ea); }

.card-overlay {
  position: absolute; bottom: 10px; right: 10px;
  z-index: 2;
}
.overlay-tag {
  font-size: 0.7rem; font-family: var(--mono);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  padding: 3px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* CARD BODY */
.card-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; flex: 1;
}
.card-body h3 { color: var(--text); margin-bottom: 8px; font-size: 1rem; }
.card-body p  { font-size: 0.87rem; line-height: 1.6; flex: 1; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 14px 0;
}
.card-tags span {
  font-size: 0.72rem; font-family: var(--mono);
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 9px;
}

.card-actions { display: flex; gap: 8px; margin-top: 4px; }

.card-btn {
  font-size: 0.8rem; font-weight: 500;
  padding: 7px 16px; border-radius: 8px;
  border: 1px solid; transition: all var(--tr);
  cursor: pointer;
}

.card-btn-primary { background: var(--blue);   border-color: var(--blue);   color: #fff; }
.card-btn-primary:hover { filter: brightness(1.15); }

.card-btn-orange  { background: var(--orange); border-color: var(--orange); color: #fff; }
.card-btn-orange:hover { filter: brightness(1.15); }

.card-btn-green   { background: var(--green);  border-color: var(--green);  color: #fff; }
.card-btn-green:hover { filter: brightness(1.15); }

.card-btn-purple  { background: var(--purple); border-color: var(--purple); color: #fff; }
.card-btn-purple:hover { filter: brightness(1.15); }

.card-btn-pink    { background: var(--pink);   border-color: var(--pink);   color: #fff; }
.card-btn-pink:hover { filter: brightness(1.15); }

.card-btn-ghost {
  background: transparent;
  border-color: var(--border-bright);
  color: var(--text-muted);
}
.card-btn-ghost:hover { border-color: var(--border-bright); color: var(--text); background: rgba(255,255,255,0.05); }

/* ADD CARD */
.card-add {
  border-style: dashed;
  cursor: default;
  min-height: 260px;
}
.card-add:hover { transform: none; box-shadow: none; border-color: var(--border-bright); }
.card-add-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; padding: 32px;
}
.card-add-icon {
  font-size: 2rem; color: var(--text-faint);
  width: 52px; height: 52px;
  border: 1px dashed var(--border-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.card-add-inner p { font-size: 0.85rem; color: var(--text-faint); text-align: center; }

/* ==============================
   CHART MOCKUPS
================================= */
.preview-mockup {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; width: 100%; padding: 16px;
}

/* Bar chart */
.mock-chart.bar {
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px;
}
.bar-item {
  width: 18px; height: var(--h);
  background: rgba(255,255,255,0.25);
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease;
}
.bar-item:nth-child(2) { background: rgba(255,255,255,0.5); }

/* Horizontal bar */
.mock-chart.horizontal {
  flex-direction: column; align-items: flex-start;
  height: auto; gap: 8px;
}
.hbar-item {
  height: 12px; width: var(--w);
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.hbar-item:nth-child(1) { background: rgba(255,255,255,0.5); }

/* Donut */
.mock-chart.donut {
  display: flex; align-items: center; gap: 16px;
}
.donut-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 12px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.6);
  border-right-color: rgba(255,255,255,0.4);
}
.mock-legend { display: flex; flex-direction: column; gap: 6px; }
.legend-item {
  height: 8px; width: 48px;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

/* Line chart */
.mock-chart.line { width: 140px; }
.mock-chart.line svg { width: 100%; height: auto; opacity: 0.9; }

/* KPIs */
.mock-kpis { display: flex; gap: 8px; }
.mock-kpi {
  height: 24px; width: 56px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
}

/* ==============================
   FLOW DIAGRAM
================================= */
.flow-diagram {
  display: flex; align-items: center;
  gap: 4px; flex-wrap: nowrap;
  padding: 0 12px;
}
.flow-diagram.flow-vertical { flex-direction: column; }

.flow-node {
  font-size: 0.68rem; font-family: var(--mono);
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}
.node-trigger { background: rgba(255,255,255,0.18); }
.node-ai      { background: rgba(236,72,153,0.3); border-color: rgba(236,72,153,0.4); }
.node-output  { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.3); }

.flow-arrow, .flow-arrow-v {
  color: rgba(255,255,255,0.4); font-size: 0.9rem;
}

/* ==============================
   CODE PREVIEW
================================= */
.code-preview {
  font-family: var(--mono); font-size: 0.65rem;
  line-height: 1.6; padding: 12px 14px;
  background: rgba(0,0,0,0.35); border-radius: 8px;
  width: calc(100% - 24px); max-height: 140px;
  overflow: hidden;
}
.code-line { white-space: nowrap; color: rgba(255,255,255,0.55); }
.code-indent   { padding-left: 14px; }
.code-indent-2 { padding-left: 28px; }
.code-kw  { color: #c792ea; }
.code-fn  { color: #82aaff; }
.code-str { color: #c3e88d; }

/* ==============================
   AI VISUAL
================================= */
.ai-visual {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; width: 100%; max-height: 152px; overflow: hidden;
}
.ai-visual.compact { padding: 16px; justify-content: center; }

.ai-bubble {
  max-width: 85%; padding: 8px 12px;
  border-radius: 12px; font-size: 0.72rem; line-height: 1.5;
  word-break: break-word;
}
.ai-bubble.user {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75);
  border-radius: 12px 12px 2px 12px; align-self: flex-end;
}
.ai-bubble.bot {
  background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.85);
  border-radius: 12px 12px 12px 2px; align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.1);
}
.ai-bubble.small { font-size: 0.68rem; }

.ai-processing {
  display: flex; gap: 6px; align-self: flex-start;
  padding: 8px 14px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.processing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: dotPulse 1.4s infinite;
}
.processing-dot:nth-child(2) { animation-delay: 0.2s; }
.processing-dot:nth-child(3) { animation-delay: 0.4s; }

.local-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-family: var(--mono);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 12px; border-radius: 100px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px; align-self: flex-start;
}

/* ==============================
   MODEL STRIP
================================= */
.model-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.model-tag {
  font-size: 0.78rem; font-family: var(--mono);
  padding: 5px 14px; border-radius: 8px;
  background: var(--pink-glow);
  border: 1px solid rgba(236,72,153,0.2);
  color: var(--pink);
}

/* ==============================
   CONTACT
================================= */
.contact-container { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-container h2 { margin-bottom: 12px; }
.contact-sub { margin-bottom: 36px; font-size: 1rem; }

.contact-links {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; padding: 10px 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-muted);
  transition: all var(--tr);
}
.contact-chip:hover { border-color: var(--border-bright); color: var(--text); }

/* ==============================
   FOOTER
================================= */
.footer { padding: 36px 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-size: 1.2rem; font-weight: 500; }
.footer p { font-size: 0.82rem; color: var(--text-faint); }
.footer-note { font-size: 0.72rem !important; opacity: 0.5; }

/* ==============================
   ANIMATIONS
================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.8; }
}
@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1.15); }
}

/* Card fade-in on scroll */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--tr), box-shadow var(--tr);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover { transform: translateY(-4px) !important; }
.card-add:hover { transform: none !important; }

/* ==============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
    align-items: center; justify-content: center;
    gap: 28px; z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 100; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-pills { gap: 8px; }
  .filter-bar { gap: 6px; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 72px 0; }
}

/* ==============================
   DEMO MODAL
================================= */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.open { opacity: 1; pointer-events: all; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(8px);
}
.modal-box {
  position: relative; z-index: 1;
  background: #0e0e18; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; width: 100%; max-width: 900px;
  max-height: 90vh; display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.modal.open .modal-box { transform: scale(1); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 1rem; color: var(--text); }
.modal-close {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.modal-body { flex: 1; overflow: auto; }

.modal-video-wrap,
.modal-iframe-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
}
.modal-video-wrap iframe,
.modal-iframe-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}

/* ==============================
   CARD EXTRAS (YouTube thumbnail + disabled btn)
================================= */
.preview-yt {
  background-size: cover; background-position: center;
  position: relative;
}
.yt-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s ease;
}
.card:hover .yt-play-overlay { background: rgba(0,0,0,0.2); }
.yt-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; padding-left: 4px;
  transition: transform 0.2s ease;
}
.card:hover .yt-play-btn { transform: scale(1.1); }

.btn-disabled {
  opacity: 0.4; cursor: not-allowed !important;
  filter: grayscale(0.5);
}

/* ==============================
   MINI APPS SECTION
================================= */
.apps-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Featured app card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--tr);
}
.app-card:hover { border-color: var(--border-bright); }

.app-card-featured {
  border-color: rgba(6,182,212,0.2);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(6,182,212,0.04) 100%);
}
.app-card-featured:hover { border-color: rgba(6,182,212,0.4); }

.app-card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.app-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #0e7490, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}
.app-icon { font-size: 1.5rem; color: #fff; }
.app-header-info { flex: 1; }
.app-name    { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.app-tagline { font-size: 0.82rem; color: var(--text-muted); }

.app-pwa-badge {
  font-size: 0.65rem; font-family: var(--mono); font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(6,182,212,0.1); color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.25);
}

.app-desc {
  font-size: 0.9rem; line-height: 1.7; color: var(--text-muted);
  margin-bottom: 20px;
}

.app-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.app-feature  { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.af-icon      { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.app-tech-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px;
}
.app-tech-tags span {
  font-size: 0.72rem; font-family: var(--mono);
  color: var(--text-faint); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 10px;
  transition: all var(--tr);
}
.app-tech-tags span:hover { color: var(--cyan); border-color: rgba(6,182,212,0.4); }

.app-actions { display: flex; gap: 10px; }
.app-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  padding: 9px 22px; border-radius: 10px;
  border: 1px solid; cursor: pointer; transition: all var(--tr);
  text-decoration: none;
}
.app-btn-primary { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.app-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.app-btn-ghost {
  background: transparent; border-color: var(--border-bright); color: var(--text-muted);
}
.app-btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow); }

/* Coming soon card */
.app-card-coming {
  border-style: dashed;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.app-card-coming:hover { transform: none; }
.app-coming-inner { text-align: center; padding: 24px; }
.app-coming-icon { font-size: 2.5rem; display: block; margin-bottom: 14px; }
.app-coming-inner h4 { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 8px; }
.app-coming-inner p  { font-size: 0.82rem; color: var(--text-faint); line-height: 1.6; }

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

/* FOOTER ADMIN LINK */
.footer-admin {
  font-size: 0.72rem; color: var(--text-faint);
  opacity: 0.3; transition: opacity var(--tr);
  padding: 4px 8px;
}
.footer-admin:hover { opacity: 0.8; }
