/* ============================================================
   Peidus Labs — styles
   Premium dark theme · luminous indigo→cyan accents
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-soft: #0e0f13;
  --surface: #14151a;
  --surface-2: #1a1b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #eef1f6;
  --muted: #a2a7b3;
  --faint: #63687a;

  /* Brushed silver / chrome */
  --accent: #c9d0dc;      /* platinum */
  --accent-2: #eef2f8;    /* bright highlight */
  --accent-3: #9198a6;    /* steel */
  --grad: linear-gradient(115deg, #f6f8fc 0%, #c2cad8 22%, #8c95a6 46%, #e4e9f1 64%, #a7b0c0 84%, #f2f5fa 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* radial ambient glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(206, 214, 228, 0.12), transparent 60%),
    radial-gradient(50vw 50vw at 0% 30%, rgba(150, 160, 178, 0.08), transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Canvas + grain ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: #fff;
  transition: opacity .2s ease;
}
.cursor.is-hover {
  width: 58px; height: 58px;
  background: rgba(255,255,255,0.12);
  border-color: transparent;
}
.cursor.is-hover + .cursor-dot,
.cursor-dot.is-hover { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  z-index: 200;
  box-shadow: 0 0 14px rgba(220,226,236,0.45);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled {
  padding: 12px var(--pad);
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad);
  color: #08080c;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.nav__links {
  display: flex; gap: 30px;
  font-size: 14px;
  color: var(--muted);
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a { position: relative; transition: color .25s ease; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--accent-2);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s ease;
  will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--primary { background: var(--grad); color: #08080c; border-color: transparent; font-weight: 600; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(220,226,236,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--line-strong); }
.btn--sm:hover { background: rgba(255,255,255,0.05); }

/* ---------- Layout / sections ---------- */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.section__head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 560px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px var(--pad) 80px;
}
.hero__inner { max-width: 960px; }
.tagline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 34px;
}
.tagline__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(230,235,244,0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(230,235,244,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(230,235,244,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,235,244,0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-weight: 500; }
.line--grad > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede {
  margin-top: 34px;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
}
.hero__cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 40px; left: var(--pad);
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.hero__scroll-line {
  width: 60px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; width: 30%;
  background: var(--accent-2);
  animation: slide 2.2s var(--ease) infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(360%); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
  background: rgba(255,255,255,0.015);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 34px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  color: var(--muted);
  animation: marquee 28s linear infinite;
}
.marquee__sep { color: var(--accent); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin-bottom: clamp(48px, 7vw, 84px);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 34px 30px;
  transition: background .35s var(--ease);
}
.feature:hover { background: var(--surface); }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 40px 34px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(210,218,232,0.12), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; margin: 18px 0 12px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; position: relative; }

/* ---------- Model list ---------- */
.model-list { list-style: none; border-top: 1px solid var(--line); }
.model {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 38px) 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
.model:hover { padding-left: 24px; background: linear-gradient(90deg, rgba(206,214,228,0.06), transparent 60%); }
.model__index {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  width: 60px;
  color: var(--faint);
  transition: color .4s ease;
}
.model:hover .model__index { color: var(--accent-2); }
.model__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.model__body h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.01em; }
.model__body p { color: var(--muted); font-size: 16px; max-width: 620px; }

/* ---------- Stats ---------- */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: clamp(36px, 5vw, 60px) 30px;
  display: flex; flex-direction: column;
}
.stat__num, .stat__suf {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__suf { display: inline; }
.stat__label { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ---------- Products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.product:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.product__thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.product__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-size: 200% 200%;
  animation: shift 8s ease infinite;
}
.product__thumb--1::after { background-image: linear-gradient(130deg, #eef1f6, #a7b0c0, #3a3e46, #14151a); }
.product__thumb--2::after { background-image: linear-gradient(130deg, #c9d0dc, #7f8898, #2b2e35, #14151a); }
.product__thumb--3::after { background-image: linear-gradient(130deg, #dfe4ec, #8c95a6, #45484f, #14151a); }
@keyframes shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.product__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
}
.product__meta h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.product__meta span { color: var(--faint); font-size: 13px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__inner {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(48px, 8vw, 96px) var(--pad);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(210,218,232,0.12), transparent 60%),
    var(--bg-soft);
}
.cta__inner .eyebrow { margin-bottom: 24px; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta__sub { margin: 22px auto 40px; color: var(--muted); font-size: 18px; max-width: 460px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px var(--pad) 48px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Metallic sheen ---------- */
.line--grad > span,
.stat__num, .stat__suf,
em,
.nav__mark,
.btn--primary {
  background-size: 220% auto;
  background-position: 0% center;
  animation: sheen 7s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% center; } }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero__title .line[data-reveal] > span {
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  display: block;
}
.hero__title .line[data-reveal] { opacity: 1; transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.hero__title .line[data-reveal].is-visible > span { transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .nav__name { display: none; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
}
