/* ============ labs.flxyp.com — styles ============ */

:root {
  --bg: #07070d;
  --bg-soft: #0c0c16;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8e8f0;
  --text-dim: #9a9ab0;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --gold: #ffd700;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 8px; }

/* ---------- background layers ---------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 18% 12%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 60% 90%, rgba(52, 211, 153, 0.08), transparent 60%),
    var(--bg);
  animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}

#cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.glow-on #cursor-glow { opacity: 1; }

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-mark { color: var(--gold); margin-right: 6px; }

.logo-dim { color: var(--text-dim); font-weight: 400; }

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 26px;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 6vw;
  max-width: 980px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.grad {
  background: linear-gradient(92deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad2 {
  background: linear-gradient(92deg, var(--cyan), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 640px;
  margin-bottom: 44px;
}

/* ---------- terminal ---------- */

.terminal {
  width: min(640px, 100%);
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin-bottom: 44px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.terminal-body { padding: 18px 20px; font-family: var(--mono); font-size: 0.92rem; }

.terminal-body .line { margin-bottom: 8px; }

.prompt { color: var(--emerald); font-weight: 700; }
.cmd { color: var(--text); }
.ok { color: var(--emerald); }
.hidden { display: none; }

#typewriter { min-height: 1.5em; color: var(--text-dim); }
#typewriter .cursor { color: var(--gold); animation: blink 1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(92deg, var(--violet), var(--cyan));
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5); }

.btn-ghost {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--card);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 6vw;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 52px;
  font-size: 1.02rem;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.18);
}

.card-icon { font-size: 2.2rem; margin-bottom: 16px; }

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- vision ---------- */

.vision { text-align: center; }

.vision-quote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 26px;
}

.vision-quote em {
  background: linear-gradient(92deg, var(--gold), #ffb84d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.vision-sub { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 46px 6vw;
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-meta { margin-top: 6px; font-size: 0.82rem; opacity: 0.7; }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .nav-links a { margin-left: 16px; font-size: 0.88rem; }
  .hero { min-height: 84vh; padding: 40px 5vw; }
  .section { padding: 64px 5vw; }
  .terminal-body { font-size: 0.8rem; padding: 14px 14px; }
}
