/* ============================================================
   CLINQIX — design tokens
   ============================================================ */
:root {
  --void: #060a12;
  --ink: #0b121c;
  --ink-2: #0f1826;
  --line: #1c2b3d;
  --line-soft: #14202f;
  --signal: #eef4fb;
  --haze: #7e91a8;
  --haze-dim: #566579;
  --cyan: #2fe6c4;
  --cyan-dim: #1fb89c;
  --cyan-ink: #04211b;
  --alert: #ff5768;
  --blue: #4f8ff7;

  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--signal);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  cursor: none;
}

::selection {
  background: var(--cyan);
  color: var(--cyan-ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.88em;
  background: rgba(47, 230, 196, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

/* ============================================================
   Ambient scan background
   ============================================================ */
.scanfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--void);
  overflow: hidden;
}

.scanfield__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(47, 230, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 230, 196, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

.scanfield__spot {
  position: absolute;
  width: 620px;
  height: 620px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 230, 196, 0.14) 0%, rgba(47, 230, 196, 0.05) 35%, transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: transform;
}

.scanfield__spot.is-active {
  opacity: 1;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor.is-active {
  opacity: 1;
}

.cursor__ring {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(47, 230, 196, 0.55);
  border-radius: 50%;
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cursor__ring::before,
.cursor__ring::after {
  content: "";
  position: absolute;
  background: rgba(47, 230, 196, 0.55);
}

.cursor__ring::before {
  left: 50%;
  top: -5px;
  width: 1px;
  height: 4px;
  transform: translateX(-50%);
}

.cursor__ring::after {
  top: 50%;
  left: -5px;
  height: 1px;
  width: 4px;
  transform: translateY(-50%);
}

.cursor__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(47, 230, 196, 0.7);
}

.cursor.is-pointer .cursor__ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  background: rgba(47, 230, 196, 0.08);
  border-color: var(--cyan);
}

.cursor.is-down .cursor__ring {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.section-head {
  max-width: 36rem;
  margin: 0 0 2.25rem;
}

.section-sub {
  margin: 0.85rem 0 0;
  color: var(--haze);
  font-size: 0.98rem;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.dot--live {
  box-shadow: 0 0 0 0 rgba(47, 230, 196, 0.6);
  animation: livepulse 2s infinite;
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 230, 196, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(47, 230, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 230, 196, 0); }
}

h1, h2, h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 650;
}

/* ============================================================
   Top nav
   ============================================================ */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0.85), rgba(6, 10, 18, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand img {
  border-radius: 6px;
}

nav {
  display: flex;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

nav a {
  color: var(--haze);
  text-decoration: none;
  font-size: 0.875rem;
}

nav a:hover {
  color: var(--signal);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--cyan);
  color: var(--cyan-ink);
}

.btn--primary:hover {
  background: #4bf0d2;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--signal);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.btn--small {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0 5.5rem;
}

.hero__copy {
  max-width: 32rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.lede {
  margin: 1.15rem 0 0;
  color: var(--haze);
  font-size: 1.03rem;
  line-height: 1.62;
  max-width: 29rem;
}

.cta {
  margin-top: 1.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta {
  margin: 0;
  color: var(--haze-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.trust {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--haze);
  font-size: 0.82rem;
}

.trust svg {
  color: var(--cyan-dim);
  flex-shrink: 0;
}

/* --- hero screenshot stage (signature element) --- */
.hero__stage {
  position: relative;
  height: 440px;
}

.hero__glow {
  position: absolute;
  inset: -15% -10% -15% -10%;
  background: radial-gradient(ellipse 55% 50% at 55% 45%, rgba(47, 230, 196, 0.2), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.hero__shot {
  margin: 0;
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7);
}

.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.hero__shot--main {
  top: 30px;
  left: 30px;
  width: 480px;
  height: 300px;
  z-index: 1;
  border-color: rgba(47, 230, 196, 0.25);
  animation: floatMain 7s ease-in-out infinite;
}

.hero__shot--float-a {
  bottom: 10px;
  left: -30px;
  width: 210px;
  height: 140px;
  z-index: 3;
  border-color: rgba(47, 230, 196, 0.4);
  animation: floatA 6s ease-in-out infinite;
}

.hero__shot--float-b {
  top: 0;
  right: 0;
  width: 190px;
  height: 124px;
  z-index: 3;
  border-color: rgba(47, 230, 196, 0.4);
  animation: floatB 8s ease-in-out infinite;
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-0.6deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

/* ============================================================
   Screenshot gallery
   ============================================================ */
.preview {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line-soft);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.1rem;
}

.gallery__item {
  margin: 0;
}

.gallery__item--wide {
  grid-column: span 3;
}

.gallery__item figcaption,
.gallery__item--wide figcaption {
  margin-top: 0.7rem;
  color: var(--haze);
  font-size: 0.85rem;
}

.window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.window:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-dim);
  box-shadow: 0 20px 45px -20px rgba(47, 230, 196, 0.25);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.window__dots {
  display: inline-flex;
  gap: 5px;
}

.window__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}

.window__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--haze);
}

.window--widget {
  padding: 1rem;
}

.gallery__item--widget {
  align-self: start;
}

.gallery__row-widgets {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.gallery__row-widgets .window--widget img {
  margin: 0 auto;
  display: block;
  max-width: 100%;
}

/* ============================================================
   Features
   ============================================================ */
.features {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--line-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  border: 1px solid var(--line);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-dim);
}

.feature--big {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.4rem 1.25rem;
  background: linear-gradient(135deg, rgba(47, 230, 196, 0.07), transparent 60%), var(--ink);
}

.feature--big h3 {
  grid-column: 2;
  font-size: 1.15rem;
}

.feature--big p {
  grid-column: 2;
}

.feature--big .feature__icon {
  grid-row: span 2;
}

.feature__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(47, 230, 196, 0.08);
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 620;
}

.feature p {
  margin: 0;
  color: var(--haze);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--line-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 42rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink);
  padding: 0.2rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.6rem 0.95rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--haze);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  margin-top: 3rem;
  padding: 3.5rem 2rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(47, 230, 196, 0.1), transparent 70%),
    var(--ink);
}

.final-cta h2 {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--haze);
  font-size: 0.85rem;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer__row nav {
  justify-content: flex-start;
  gap: 1.5rem;
}

.footer__row nav a {
  font-size: 0.82rem;
}

footer .fine {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero__stage {
    order: -1;
    height: 360px;
    margin: 0 0 1rem;
  }

  .hero__shot--main {
    width: 78%;
    height: 260px;
    left: 4%;
    top: 20px;
  }

  .hero__shot--float-a {
    width: 42%;
    height: 120px;
    left: -14px;
    bottom: 0;
  }

  .hero__shot--float-b {
    width: 38%;
    height: 104px;
    right: -6px;
    top: -10px;
  }

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

  .gallery__item--wide {
    grid-column: span 2;
  }

  .gallery__row-widgets {
    grid-column: span 2;
  }

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

  .feature--big {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .top {
    justify-content: space-between;
  }

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

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__row-widgets {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

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

  .feature--big {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature--big h3,
  .feature--big p {
    grid-column: 1;
  }

  .hero__stage {
    height: 230px;
  }

  .hero__shot--main {
    height: 190px;
  }

  .hero__shot--float-a {
    width: 48%;
    height: 92px;
  }

  .hero__shot--float-b {
    width: 42%;
    height: 80px;
  }

  .footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
