/* =========================================================
   Zilroix — component styles (plain CSS, works with or
   without the Tailwind CDN build).
   ========================================================= */
:root {
  --obsidian: #030712;
  --abyss: #0a0f1d;
  --electric: #1d6bff;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --line: rgba(255, 255, 255, .08);
  --glass: rgba(15, 23, 42, .45);
}

[x-cloak] { display: none !important; }
html { scroll-padding-top: 88px; }
body { background: var(--obsidian); }

/* ---------- Background ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Typography helpers ---------- */
.text-gradient {
  background: linear-gradient(100deg, #60a5fa 0%, var(--cyan) 45%, #a5f3fc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .75rem/1 "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan-soft);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.h2 {
  margin-top: 1rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em;
}
.lead { margin: 1.25rem auto 0; max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: #94a3b8; }
.section { padding: 4rem 0; }
@media (min-width: 1024px) { .section { padding: 5.5rem 0; } }
.section-head { text-align: center; max-width: 48rem; margin: 0 auto; }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(30, 41, 59, .55), rgba(10, 15, 29, .55));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 60px -30px rgba(0,0,0,.8);
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .65rem 1.2rem; font-size: .9rem; font-weight: 600; transition: all .25s ease;
}
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-primary {
  color: #020617;
  background: linear-gradient(100deg, #3b82f6, var(--cyan));
  box-shadow: 0 0 0 1px rgba(103,232,249,.4) inset, 0 10px 30px -10px rgba(34,211,238,.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(165,243,252,.7) inset, 0 16px 40px -10px rgba(34,211,238,.9); }
.btn-primary:disabled { opacity: .6; transform: none; cursor: wait; }
.btn-ghost { color: #e2e8f0; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(103,232,249,.5); color: #fff; background: rgba(34,211,238,.06); }

/* ---------- Nav ---------- */
.nav-link { padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: #cbd5e1; transition: .2s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.m-link { display: block; padding: .75rem .5rem; border-radius: .75rem; color: #e2e8f0; font-weight: 500; }
.m-link:hover { background: rgba(255,255,255,.05); }
.dd-item { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem; border-radius: .9rem; transition: .2s; }
.dd-item:hover { background: rgba(34,211,238,.07); }
.dd-icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: .7rem; color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); }
.dd-icon svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; color: #cbd5e1; border: 1px solid rgba(34,211,238,.25); background: rgba(34,211,238,.06); }
.pulse-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }
.chip { white-space: nowrap; padding: .2rem .55rem; border-radius: 999px; background: rgba(34,211,238,.1); color: var(--cyan-soft); border: 1px solid rgba(34,211,238,.2); }

/* ---------- Hero orbit ---------- */
.orbit { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(96,165,250,.18); }
.orbit-1 { width: 92%; height: 92%; }
.orbit-2 { width: 72%; height: 72%; border-color: rgba(34,211,238,.28); animation: spin 18s linear infinite; }
.orbit-3 { width: 50%; height: 50%; border-style: dashed; border-color: rgba(96,165,250,.2); animation: spin 40s linear infinite reverse; }
.orbit-planet { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #e0f2fe, var(--cyan) 50%, var(--electric)); box-shadow: 0 0 20px 4px rgba(34,211,238,.7); }
.hero-mark { filter: drop-shadow(0 0 40px rgba(29,107,255,.55)) drop-shadow(0 0 80px rgba(34,211,238,.25)); animation: hover 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 50% { transform: translate(-50%, calc(-50% - 12px)); } }
.float-a { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 8s ease-in-out -2s infinite; }
.float-c { animation: float 6s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 40s linear infinite; }
.marquee-track span { white-space: nowrap; font: 500 .85rem "JetBrains Mono", monospace; color: #64748b; letter-spacing: .04em; }
.marquee-track span::before { content: "◆"; margin-right: 3rem; color: rgba(34,211,238,.5); font-size: .6rem; vertical-align: middle; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product cards & mock UIs ---------- */
.product-card {
  position: relative; border-radius: 2rem; padding: 2rem; overflow: hidden;
  background: linear-gradient(160deg, rgba(15,23,42,.7), rgba(10,15,29,.6));
  border: 1px solid var(--line);
}
@media (min-width: 1024px) { .product-card { padding: 3.5rem; } }
.product-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.45), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.icon-tile { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 1rem; color: var(--cyan-soft); background: linear-gradient(145deg, rgba(29,107,255,.25), rgba(34,211,238,.08)); border: 1px solid rgba(103,232,249,.25); box-shadow: 0 0 30px -8px rgba(34,211,238,.6); }
.icon-tile svg { width: 1.4rem; height: 1.4rem; }
.feat { display: flex; gap: .8rem; font-size: .9rem; color: #94a3b8; }
.feat svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--cyan); }
.feat b { display: block; color: #f1f5f9; font-weight: 600; margin-bottom: .1rem; }

.mock { border-radius: 1.25rem; overflow: hidden; background: rgba(3,7,18,.85); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -30px rgba(29,107,255,.45), 0 0 0 1px rgba(34,211,238,.06); font-size: .8rem; color: #cbd5e1; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .6s ease; }
.mock:hover { transform: none; }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.mock-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: #334155; }
.mock-bar em { margin-left: .8rem; font: normal .7rem "JetBrains Mono", monospace; color: #64748b; }
.kpi { border-radius: .8rem; padding: .7rem; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.kpi small { display: block; color: #64748b; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.kpi b { display: block; margin-top: .2rem; font: 600 1.15rem "Space Grotesk", sans-serif; color: #fff; }
.kpi i { font-style: normal; font-size: .7rem; }
.kpi .up { color: #34d399; }
.lead-row { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: .7rem; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04); }
.src { font: 600 .6rem "JetBrains Mono", monospace; padding: .2rem .4rem; border-radius: .35rem; }
.stage { font-size: .65rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(29,107,255,.15); color: #93c5fd; }
.tile { display: grid; place-items: center; text-align: center; aspect-ratio: 1; border-radius: .7rem; font-size: .72rem; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tile small { color: #64748b; }
.tile.is-on { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); box-shadow: 0 0 20px -6px rgba(34,211,238,.6); color: #fff; }

/* ---------- Services ---------- */
.service-card { position: relative; border-radius: 1.5rem; padding: 2.25rem; background: rgba(10,15,29,.6); border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease, background .35s ease; overflow: hidden; }
.service-card::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 60%; background: radial-gradient(closest-side, rgba(34,211,238,.18), transparent); opacity: 0; transition: .4s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.35); background: rgba(15,23,42,.7); }
.service-card:hover::after { opacity: 1; }
.service-card h3 { margin-top: 1.5rem; font: 600 1.4rem "Space Grotesk", sans-serif; color: #fff; }
.service-card p { margin-top: .75rem; color: #94a3b8; line-height: 1.7; }
.service-card ul { margin-top: 1.25rem; display: grid; gap: .5rem; font-size: .9rem; color: #cbd5e1; }
.service-card li { display: flex; align-items: center; gap: .6rem; }
.service-card li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.card-link { position: relative; z-index: 1; margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--cyan-soft); }
.card-link svg { transition: transform .25s; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.step { position: relative; border-radius: 1.25rem; padding: 2rem 1.75rem; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.step-n { font: 500 .8rem "JetBrains Mono", monospace; color: var(--cyan); }
.step h3 { margin-top: 1rem; font: 600 1.25rem "Space Grotesk", sans-serif; color: #fff; }
.step p { margin-top: .6rem; color: #94a3b8; font-size: .95rem; line-height: 1.65; }
.step::before { content: ""; position: absolute; top: 0; left: 1.75rem; right: 1.75rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.7), transparent); }

/* ---------- Why ---------- */
.why { border-radius: 1.25rem; padding: 1.75rem; background: rgba(10,15,29,.6); border: 1px solid var(--line); transition: .3s; }
.why:hover { border-color: rgba(34,211,238,.3); }
.why svg { width: 1.6rem; height: 1.6rem; color: var(--cyan); }
.why h3 { margin-top: 1rem; font: 600 1.1rem "Space Grotesk", sans-serif; color: #fff; }
.why p { margin-top: .5rem; color: #94a3b8; font-size: .92rem; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 2rem; padding: 3.5rem 2rem; border: 1px solid rgba(103,232,249,.25);
  background: radial-gradient(800px 300px at 0% 0%, rgba(29,107,255,.35), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(34,211,238,.2), transparent 60%), var(--abyss); }
@media (min-width: 1024px) { .cta-band { padding: 5rem; } }

/* ---------- FAQ ---------- */
.faq { border-radius: 1rem; border: 1px solid var(--line); background: rgba(10,15,29,.6); transition: .25s; }
.faq.is-open { border-color: rgba(34,211,238,.3); background: rgba(15,23,42,.7); }
.faq-icon { position: relative; flex: none; width: 1.1rem; height: 1.1rem; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; background: var(--cyan); border-radius: 2px; transition: transform .25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq.is-open .faq-icon::after { transform: rotate(0); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; color: #cbd5e1; }
.field input, .field select, .field textarea {
  width: 100%; border-radius: .8rem; padding: .8rem 1rem; color: #f8fafc; font-size: .95rem;
  background: rgba(3,7,18,.6); border: 1px solid rgba(255,255,255,.1); transition: .2s;
}
.field select option { background: var(--abyss); }
.field input::placeholder, .field textarea::placeholder { color: #475569; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }

/* ---------- Footer ---------- */
.foot-h { font: 600 .8rem "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #e2e8f0; }
.foot-l { margin-top: 1.1rem; display: grid; gap: .7rem; font-size: .9rem; color: #94a3b8; }
.foot-l a:hover { color: var(--cyan-soft); }
.social { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; border: 1px solid var(--line); color: #94a3b8; transition: .2s; }
.social:hover { color: var(--cyan); border-color: rgba(34,211,238,.4); }
.social svg { width: 1.05rem; height: 1.05rem; }
#to-top.is-visible { opacity: 1; transform: none; }

/* ---------- Scroll reveal ---------- */
/* hidden only once JS is confirmed running (main.js adds .js) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- v2 additions ---------- */
/* Solid dropdown so it stays readable over any section */
.dd-panel {
  background: rgba(10, 15, 29, .97);
  border: 1px solid rgba(103, 232, 249, .18);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 40px -20px rgba(34,211,238,.5);
}

/* Real product screenshots */
.shot { border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #0c0f18;
  box-shadow: 0 40px 90px -30px rgba(29,107,255,.5), 0 0 0 1px rgba(34,211,238,.06); }

/* Portfolio */
.filter-btn { padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: #94a3b8; border: 1px solid var(--line); transition: .2s; }
.filter-btn:hover { color: #fff; border-color: rgba(103,232,249,.35); }
.filter-btn.is-active { color: #020617; background: linear-gradient(100deg, #3b82f6, var(--cyan)); border-color: transparent; }
.work-card { display: flex; flex-direction: column; border-radius: 1.25rem; overflow: hidden; background: rgba(10,15,29,.7); border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.35); }
.work-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background:
  radial-gradient(420px 200px at 20% 0%, rgba(29,107,255,.35), transparent 60%),
  radial-gradient(300px 200px at 100% 100%, rgba(34,211,238,.18), transparent 60%), #070b16; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-tag { font: 500 .7rem "JetBrains Mono", monospace; padding: .2rem .55rem; border-radius: 999px; background: rgba(34,211,238,.08); color: var(--cyan-soft); border: 1px solid rgba(34,211,238,.18); }

/* About page */
.gap-viz { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.gap-node { border-radius: 1rem; padding: 1.25rem; text-align: center; background: rgba(10,15,29,.7); border: 1px solid var(--line); }
.gap-bridge { width: 7rem; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 18px var(--cyan); }
@media (max-width: 640px) { .gap-viz { grid-template-columns: 1fr; } .gap-bridge { width: 2px; height: 3rem; margin: 0 auto; background: linear-gradient(180deg, transparent, var(--cyan), transparent); } }

/* ---------- Founder's message ---------- */
.founder-photo { position: relative; border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(103,232,249,.25);
  box-shadow: 0 30px 80px -30px rgba(29,107,255,.6), 0 0 0 1px rgba(255,255,255,.04) inset; }
.founder-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.founder-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.1rem; background: linear-gradient(180deg, transparent, rgba(3,7,18,.92) 60%); }
@media (min-width: 1024px) { .founder-photo { position: sticky; top: 6.5rem; } }
.founder-quote { margin: 1.25rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--cyan); border-radius: 0 .9rem .9rem 0;
  background: rgba(34,211,238,.06); font: 600 1.5rem/1.3 "Space Grotesk", sans-serif; color: #fff; }
