/* ============================================================
   Beeldify — dark, blue, glassmorphism
   ============================================================ */

:root {
  --bg: #000000;
  --bg-2: #08102a;
  --text: #f5f5f7;
  --text-dim: #9b9ba4;
  --blue: #3b82f6;
  --blue-light: #5eb6f7;
  --purple: #9d6bff;
  --glass: rgba(120, 160, 255, 0.06);
  --glass-border: rgba(140, 180, 255, 0.16);
  --radius: 24px;
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #000;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; }

/* a restrained monochrome sheen instead of the old blue→purple gradient */
.grad-text {
  background: linear-gradient(180deg, #ffffff 0%, #c2c2cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background canvas & cursor ---------- */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* defocus the left & right edges of the background — a soft out-of-focus
   falloff toward the sides that keeps the centre sharp */
#bg-defocus {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 24%, transparent 76%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, transparent 24%, transparent 76%, #000 100%);
}

/* ---------- glass ---------- */

/* minimal, modern panel — flat subtle frost, NO border outline, no glow/shadow */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 18px;
  box-shadow: none;
}

.card { padding: 2rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  /* top gloss layered over the cyan → indigo → magenta gradient
     (kept in the background so bare-text links stay crisp on top) */
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%),
    linear-gradient(to right, #29b6f6, #6a5fff, #ba4aff);
  box-shadow:
    0 12px 30px -10px rgba(106, 95, 255, 0.80),
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  transition:
    filter 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px -10px rgba(106, 95, 255, 0.88),
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.96);
  transition: transform 0.08s ease, filter 0.08s ease;
}

.btn__arrow { font-weight: 400; }

.btn--ghost {
  background: rgba(140, 175, 255, 0.08);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--ghost:hover {
  background: rgba(140, 175, 255, 0.14);
  border-color: rgba(160, 195, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--small { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.btn--large { padding: 1.1rem 2.4rem; font-size: 1.15rem; }

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

.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.7rem 1.4rem;
  z-index: 100;
  border-radius: 999px;
  transition: box-shadow 0.3s ease;
  /* nav keeps its original glass look (the minimal .glass restyle was for cards
     only); more transparent fill than the default glass */
  background: linear-gradient(180deg, rgba(140, 175, 255, 0.05), rgba(120, 160, 255, 0.02));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04),
    0 10px 40px -18px rgba(0, 0, 0, 0.5);
}

.nav--scrolled { box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav__mark { height: 30px; width: auto; display: block; }

.nav__links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  align-items: center;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;        /* clip the showcase cards at the bottom fold */
  isolation: isolate;      /* keep hero content above the cards */
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: -5.5rem;     /* nudge the headline block up */
}

/* scroll cue — bottom-left, clear of the centred cards */
.hero__scrollcue {
  position: absolute;
  left: 3.5rem;
  bottom: 11rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.3s ease;
}

.hero__scrollcue:hover { color: var(--text); }

.hero__scrollcue svg {
  width: 18px;
  height: 18px;
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

body.no-motion .hero__scrollcue svg { animation: none; }

@media (max-width: 760px) { .hero__scrollcue { display: none; } }

/* soft dark scrim behind the headline — sits BELOW the showcase cards so it
   darkens the background lines behind the text but never paints over a card */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 46% at center,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.9) 30%,
    rgba(0, 0, 0, 0) 70%);
}


.hero__kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.9rem;
}

.hero__title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line > span { display: inline-block; }

.hero__sub {
  max-width: 600px;
  margin-top: 1.9rem;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dim);
}

.hero__sub strong { color: var(--text); }

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* right-to-left ticker of what Beeldify does */
.hero__ticker {
  position: absolute;
  bottom: 1.8rem;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

.hero__ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: hero-ticker 42s linear infinite;
  will-change: transform;
}

.hero__ticker-track span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__ticker-track i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.22);
  padding: 0 1.3rem;
}

@keyframes hero-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body.no-motion .hero__ticker-track { animation: none; }

/* kinetic word panel on the right side of the hero */
.hero__words {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(46vw, 620px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
  /* fade toward the centre so it never competes with the headline */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
}

.hero__words-row { overflow: hidden; }

.hero__words-track {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.08);
  animation: words-marquee 80s linear infinite;
  will-change: transform;
}

.hero__words-row--rev .hero__words-track {
  animation-name: words-marquee-rev;
  animation-duration: 94s;
}

@keyframes words-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes words-marquee-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

body.no-motion .hero__words-track { animation: none; }

@media (max-width: 860px) {
  .hero__words { display: none; }
}

/* ---------- hero showcase (floating portfolio cards) ---------- */
.hero__showcase {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1500px;
  perspective-origin: 50% 35%;
  /* A persistent SVG clip provides the scroll-driven polygon dissolve. */
}

.showcase-card {
  position: absolute;
  bottom: 0;
  width: min(460px, 40vw);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: #f3f4f7;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

.showcase-card--center {
  background: #071820;
  left: 50%;
  width: min(700px, 58vw);
  aspect-ratio: 16 / 10;
  z-index: 3;
}

.showcase-card--left { left: 4%; z-index: 2; }
.showcase-card--right { right: 4%; z-index: 2; }

.showcase-card__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* the middle card's image slides upward inside the (unchanged) card on scroll */
.showcase-card--center .showcase-card__shot {
  inset: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: fill;
  will-change: transform;
}

/* light skeleton shown until a real screenshot is dropped in */
.showcase-card__mock {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fbfbfd, #eef0f4);
  padding: 16px;
}

.showcase-card__bar { display: flex; gap: 7px; }
.showcase-card__bar i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.13);
}

body.no-js .showcase-card { opacity: 1; }

@media (max-width: 760px) {
  .showcase-card--left,
  .showcase-card--right { display: none; }
  .showcase-card--center { width: 80vw; }
}

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

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7rem 1.5rem 0;
}

.section__kicker {
  color: var(--blue-light);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section__head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }

.section__sub {
  max-width: 560px;
  margin-top: 1.2rem;
  color: var(--text-dim);
}

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.about__card p + p { margin-top: 1.2rem; }
.about__card p { color: var(--text-dim); font-size: 1.05rem; }
.about__card strong { color: var(--text); }

.about__stats { display: flex; flex-direction: column; gap: 1.5rem; }

.stat { padding: 1.4rem 2rem; }

.stat__num, .stat__plus {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--blue-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- proteus demo ---------- */

.proteus__demo {
  position: relative;
  margin-top: 3.5rem;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.morph-ghosts { position: absolute; inset: 0; }

.ghost {
  position: absolute;
  border: 1px dashed rgba(140, 180, 255, 0.18);
  border-radius: 10px;
}

.ghost--wide { width: 300px; height: 169px; top: 36px; left: 6%; }
.ghost--square { width: 150px; height: 150px; bottom: 40px; left: 16%; }
.ghost--tall { width: 130px; height: 231px; top: 60px; right: 8%; }

.morph-frame {
  width: 480px;
  height: 270px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a5ff0, #7a4ff5);
  box-shadow: 0 30px 70px -25px rgba(59, 130, 246, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.morph-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.morph-ad__mark { width: 42px; height: 42px; opacity: 0.95; }

.morph-ad__headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.morph-ad__cta {
  font-size: 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.morph-label {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  z-index: 3;
  white-space: nowrap;
}

.morph-label__ratio {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--blue-light);
}

.morph-label__name { color: var(--text-dim); font-size: 0.9rem; }

.proteus__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(157, 107, 255, 0.25));
  border: 1px solid var(--glass-border);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

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

/* ---------- work ---------- */

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work-card { display: block; text-decoration: none; color: var(--text); padding: 1.2rem; }

.work-card__visual {
  height: 220px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  overflow: hidden;
  position: relative;
}

.work-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%);
}

.work-card__visual span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.92);
  z-index: 1;
}

.wv-1 { background: linear-gradient(135deg, #2a5ff0, #7a4ff5); }
.wv-2 { background: linear-gradient(135deg, #0f3a8a, #2a8fd0); }
.wv-3 { background: linear-gradient(135deg, #134e4a, #3b82f6); }
.wv-4 { background: linear-gradient(135deg, #4c1d95, #9d6bff); }

.work-card h3 { font-size: 1.2rem; padding: 0 0.5rem; }
.work-card p { color: var(--text-dim); font-size: 0.9rem; padding: 0 0.5rem 0.5rem; }

/* ---------- process ---------- */

.process__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.step span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-light);
}

.step h3 { margin: 0.7rem 0 0.5rem; font-size: 1.15rem; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- contact ---------- */

.contact { padding-bottom: 7rem; }

.contact__card {
  text-align: center;
  padding: 4.5rem 2rem;
  margin-top: 1rem;
}

.contact__card h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.contact__card > p { color: var(--text-dim); margin: 1.2rem 0 2.2rem; }

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.4rem;
}

.contact__socials a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.contact__socials a:hover { color: var(--blue-light); }

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

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer__brandcard {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  margin-bottom: 1.4rem;
}

.footer__brandcard img { display: block; }

/* ---------- reveal default (JS animates in) ---------- */

.reveal { opacity: 0; transform: translateY(30px); }

body.no-motion .reveal,
body.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   MOBILE — scoped to max-width so desktop is never affected
   ============================================================ */

@media (max-width: 900px) {
  .about__grid,
  .proteus__features,
  .work__grid { grid-template-columns: 1fr; }

  .process__list { grid-template-columns: repeat(2, 1fr); }

  .section { padding-top: 5rem; }
}

@media (max-width: 720px) {
  .nav { gap: 1rem; }

  .nav__links {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 14, 32, 0.92);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav__links.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(140, 180, 255, 0.08); }
  .nav__links a:last-child { border-bottom: none; }

  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 7rem; }
  .hero__kicker { font-size: 0.78rem; }
  .hero__sub { font-size: 1.02rem; }

  .proteus__demo { height: 360px; }
  .ghost { display: none; }

  .process__list { grid-template-columns: 1fr; }

  .contact__card { padding: 3rem 1.4rem; }
  .contact__socials { gap: 1.2rem; }
}
