/* NexusLink — dark minimal SaaS landing */

:root {
  --bg0: #07080c;
  --bg1: #0c0e14;
  --bg2: #12151d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6fa;
  --muted: #8b93a7;
  --muted2: #5c6478;
  --accent: #3dffce;
  --accent-dim: rgba(61, 255, 206, 0.15);
  --accent2: #6b8cff;
  --danger-glow: rgba(61, 255, 206, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg0);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(720px, 100% - 40px);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.logo__mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 20px var(--danger-glow);
  animation: pulse-mark 3s var(--ease) infinite;
}

@keyframes pulse-mark {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo__mark {
    animation: none;
  }
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s var(--ease);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, #2ee4be 0%, #3dffce 50%, #6b8cff 120%);
  color: #050608;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 4px 24px rgba(61, 255, 206, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 32px rgba(61, 255, 206, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--surface2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 12vw, 120px) 0 clamp(64px, 10vw, 100px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.55;
}

.hero__glow--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(61, 255, 206, 0.35), transparent 70%);
  animation: float-glow 12s ease-in-out infinite;
}

.hero__glow--2 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(107, 140, 255, 0.35), transparent 70%);
  animation: float-glow 14s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow--1,
  .hero__glow--2 {
    animation: none;
  }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    max-width: 380px;
    margin-inline: auto;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero__title {
  font-size: clamp(2.35rem, 5.5vw, 3.65rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), #fff 45%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted2);
  max-width: 420px;
}

.hero__note-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--danger-glow);
  animation: blink 2.5s var(--ease) infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__note-dot {
    animation: none;
  }
}

/* Shield card */
.shield-card {
  position: relative;
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(145deg, var(--surface2), transparent);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.shield-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(61, 255, 206, 0.25);
}

.shield-card__ring {
  position: absolute;
  inset: 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
  animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shield-card__ring {
    animation: none;
  }
}

.shield-card__core {
  position: relative;
  text-align: center;
  padding: 24px 16px 20px;
}

.shield-card__lock {
  display: block;
  width: 48px;
  height: 56px;
  margin: 0 auto 16px;
  background:
    linear-gradient(180deg, rgba(61, 255, 206, 0.2), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28' fill='none' stroke='%233dffce' stroke-width='1.5'%3E%3Cpath d='M6 12V9a6 6 0 0112 0v3M5 12h14v11a2 2 0 01-2 2H7a2 2 0 01-2-2V12z'/%3E%3Ccircle cx='12' cy='18' r='1.5' fill='%233dffce'/%3E%3C/svg%3E")
      center / 36px no-repeat;
  border-radius: 12px;
  border: 1px solid rgba(61, 255, 206, 0.35);
}

.shield-card__label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
}

.shield-card__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

.shield-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.shield-card__stats strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.shield-card__stats span {
  font-size: 0.75rem;
  color: var(--muted2);
}

/* Sections */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section--tint {
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 560px;
  margin-bottom: 40px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section__sub {
  margin: 0;
  color: var(--muted);
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

/* Benefits */
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 820px) {
  .benefits {
    grid-template-columns: 1fr;
  }

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

.benefit h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.benefit__icon {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: none;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-top: 28px;
}

.step__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent2);
  position: absolute;
  top: 16px;
  right: 20px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

.pricing__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}

.pricing__item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing__price {
  margin: 0 0 12px;
}

.pricing__amount {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.pricing__cur {
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing__hint {
  margin: 0 0 auto;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.pricing__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(107, 140, 255, 0.2);
  color: #b8c7ff;
  border: 1px solid rgba(107, 140, 255, 0.35);
}

.pricing__badge--accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(61, 255, 206, 0.4);
}

.pricing__item--featured {
  border-color: rgba(107, 140, 255, 0.35);
  background: linear-gradient(160deg, rgba(107, 140, 255, 0.08), var(--surface));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pricing__item--best {
  border-color: rgba(61, 255, 206, 0.3);
  background: linear-gradient(160deg, rgba(61, 255, 206, 0.09), var(--surface));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.pricing__footnote {
  text-align: center;
  color: var(--muted2);
  font-size: 0.88rem;
  margin-top: 28px;
}

/* Devices */
.devices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .devices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  gap: 14px;
}

.device__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.device__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.device:hover .device__icon {
  transform: scale(1.08);
  border-color: rgba(61, 255, 206, 0.35);
}

.device__icon--ios {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f4f6fa'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
}

.device__icon--android {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233dffce' d='M17.6 9.48l1.84-3.37c.1-.18.06-.4-.1-.5-.17-.1-.4-.05-.49.13l-1.87 3.41c-1.34-.61-2.85-.95-4.45-.95-1.59 0-3.09.34-4.41.93L6.24 5.74c-.1-.18-.32-.23-.49-.13-.17.1-.21.32-.1.5l1.83 3.37C4.51 10.87 2.72 13.91 2.72 17.35h18.56c0-3.44-1.8-6.48-4.68-7.87zM8.08 14.02c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm7.84 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z'/%3E%3C/svg%3E");
}

.device__icon--windows {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b8cff'%3E%3Cpath d='M3 5.45l7.18-1.02v6.92H3V5.45zm0 7.72h7.18v6.95L3 18.55v-5.38zm8.18 0H21v8.05l-9.82 1.4v-9.45zm0-8.76L21 4.2v7.97h-9.82V4.41z'/%3E%3C/svg%3E");
}

.device__icon--mac {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f6fa' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* FAQ */
.faq {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s;
}

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

.faq__item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
}

.faq__item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq__body {
  padding: 0 22px 18px;
}

.faq__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: clamp(72px, 12vw, 120px) 0;
}

.cta__inner {
  position: relative;
  text-align: center;
  padding: clamp(40px, 8vw, 64px) 24px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(61, 255, 206, 0.2);
  background: linear-gradient(165deg, rgba(61, 255, 206, 0.08), var(--bg2) 45%, rgba(107, 140, 255, 0.07));
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61, 255, 206, 0.12), transparent 65%);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  max-width: 520px;
  margin-inline: auto;
}

.cta__sub {
  position: relative;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 460px;
  margin-inline: auto;
}

.cta__btn {
  position: relative;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__tag {
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 0.9rem;
}

.footer__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 10px;
}

.footer__col a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer__col a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-badge {
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__legal p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted2);
  max-width: 720px;
}

.logo--footer .logo__mark {
  animation: none;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal][data-delay="2"] {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
