/* ============================================================
   Finlab Studios — shared styles
   Built by Enthusiasts, for Enthusiasts
   ============================================================ */

:root {
  --bg:        #0a0e14;
  --bg-raised: #0f141d;
  --bg-card:   #121925;
  --line:      #1d2735;
  --line-soft: #161e2a;
  --txt:       #e6edf5;
  --txt-dim:   #8a99ad;
  --txt-faint: #5a6a7d;
  --cyan:      #16c8ff;
  --cyan-dim:  #0d8bb3;
  --magenta:   #ff3d8b;
  --green:     #34d27b;
  --amber:     #f5c542;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, system-ui, sans-serif;

  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

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

/* subtle ambient grid wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(22,200,255,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255,61,139,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

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

/* ---------- shared eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt-dim);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52,210,123,0.5);
  animation: pulse 2.4s infinite;
}
.dot.cyan { background: var(--cyan); box-shadow: 0 0 0 0 rgba(22,200,255,0.5); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,210,123,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(52,210,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,210,123,0); }
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,14,20,0.78);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 7px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0f141d, #161e2a);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  color: var(--cyan);
  position: relative; overflow: hidden;
}
.brand .mark::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 40%, rgba(22,200,255,0.18) 50%, transparent 60%);
}
.brand .name { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; font-size: 0.98rem; }
.brand .name span { color: var(--txt-faint); }

nav.links { display: flex; align-items: center; gap: 6px; }
nav.links a {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--txt-dim);
  padding: 8px 14px; border-radius: 6px; transition: color .18s, background .18s;
}
nav.links a:hover { color: var(--txt); background: var(--bg-card); }
nav.links a.active { color: var(--cyan); }
.nav-toggle { display:none; background:none; border:1px solid var(--line); color:var(--txt); border-radius:6px; padding:7px 10px; font-family:var(--mono); cursor:pointer;}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  padding: 12px 22px; border-radius: 7px;
  border: 1px solid var(--cyan-dim);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn.primary { background: var(--cyan); color: #04121a; border-color: var(--cyan); }
.btn.primary:hover { box-shadow: 0 0 24px rgba(22,200,255,0.35); transform: translateY(-1px); }
.btn.ghost { color: var(--cyan); background: transparent; }
.btn.ghost:hover { background: rgba(22,200,255,0.08); transform: translateY(-1px); }

/* ---------- generic section ---------- */
section { padding: 92px 0; position: relative; z-index: 1; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700;
  margin-top: 14px;
}
.section-head p { color: var(--txt-dim); margin-top: 14px; font-size: 1.04rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 60px;
  position: relative; z-index: 1;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-tag { font-family: var(--mono); font-size: 0.8rem; color: var(--txt-faint); max-width: 320px; line-height: 1.7; }
.foot-links { display: flex; gap: 30px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-dim); margin-bottom: 12px; }
.foot-col a { display: block; color: var(--txt-faint); font-size: 0.88rem; padding: 3px 0; transition: color .15s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 0.74rem; color: var(--txt-faint); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  nav.links { display: none; }
  nav.links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 12px 28px 18px; gap: 2px; }
  .nav-toggle { display: inline-block; }
  section { padding: 66px 0; }
}

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