/* ============================================================
   BIKODLAB — AI Product & Software Studio
   Design system / tokens / global styles
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-900: #020817;
  --bg-850: #040A1C;
  --bg-800: #050B1E;
  --bg-700: #071126;
  --bg-650: #0A1730;

  /* Accents */
  --blue: #1EA7FF;
  --blue-deep: #0E7CD6;
  --cyan: #5DEBFF;
  --violet: #8B5CF6;
  --purple: #A78BFA;
  --orange: #FFB347;

  /* Text */
  --white: #F8FAFC;
  --muted: #94A3B8;
  --muted-2: #64748B;

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glow-blue: rgba(30, 167, 255, 0.45);
  --glow-violet: rgba(139, 92, 246, 0.40);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Layout */
  --maxw: 1240px;
  --gutter: 28px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: rgba(30, 167, 255, 0.3); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- App-wide ambient background ---------- */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(30,167,255,0.16), transparent 60%),
    radial-gradient(900px 700px at 8% 8%, rgba(139,92,246,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-900), var(--bg-850) 40%, var(--bg-900));
}
.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.section { padding: clamp(32px, 4vw, 68px) 0; position: relative; }
.section-sm { padding: clamp(24px, 3vw, 44px) 0; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.center { display: flex; align-items: center; justify-content: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.display {
  font-size: clamp(40px, 6.4vw, 82px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-wrap: balance;
}
.h2 { font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
  text-wrap: pretty;
}

.grad-text {
  background: linear-gradient(100deg, #fff 0%, var(--cyan) 45%, var(--blue) 75%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blue-text { color: var(--blue); }
.violet-text { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, #36b4ff, var(--blue));
  color: #04111f;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 14px 34px -12px var(--glow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.28) inset, 0 22px 46px -14px var(--glow-blue); }

.btn-ghost {
  background: var(--card-2);
  color: var(--white);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(93,235,255,0.4); background: rgba(255,255,255,0.10); }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14.5px; color: var(--cyan);
  transition: gap .2s, color .2s;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover { gap: 11px; color: #fff; }

/* ---------- Badge / chip ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.badge-orange { color: var(--orange); border-color: rgba(255,179,71,0.3); }
.badge-orange .dot { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 7px;
  background: rgba(30,167,255,0.10);
  border: 1px solid rgba(30,167,255,0.22);
  color: var(--cyan);
  white-space: nowrap;
}
.tag-violet { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.26); color: var(--purple); }
.tag-muted { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--muted); }

/* ---------- Glass card ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.18), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.hover-card { transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.hover-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93,235,255,0.45);
  box-shadow: 0 30px 60px -28px rgba(30,167,255,0.5), 0 0 0 1px rgba(93,235,255,0.18) inset;
}

/* ---------- Section header ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(22px, 2.6vw, 38px); }
.section-head .lead { margin: 18px auto 0; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .lead { margin-left: 0; }

/* ---------- Divider rule ---------- */
.hr-glow { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.grid { display: grid; gap: 22px; }
.text-center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
