/* Cyvy Online Solutions landing page styles. Brand palette sampled from icono-no-bg.png. */

@font-face {
  font-family: "Lexend";
  src: url("/landing/fonts/Lexend-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --purple: #8b85f4;
  --indigo: #5b68e8;
  --blue: #5ca8fb;
  --bg: #0b0d20;
  --bg-soft: #11142e;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(139, 133, 244, 0.22);
  --text: #f2f3fb;
  --muted: #a8acce;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lexend", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Background orbs ---------- */

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}

.orb-a {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
}

.orb-b {
  width: 460px;
  height: 460px;
  top: 30%;
  right: -160px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  animation-delay: -7s;
}

.orb-c {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 30%;
  background: radial-gradient(circle, var(--indigo), transparent 70%);
  animation-delay: -14s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(60px, 40px, 0) scale(1.12);
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px clamp(20px, 6vw, 72px);
  background: rgba(11, 13, 32, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 133, 244, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand em {
  font-style: normal;
  color: var(--purple);
  font-weight: 450;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

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

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

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(139, 133, 244, 0.2);
  background: var(--surface);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 550;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.lang-btn.active {
  color: #fff;
  background: linear-gradient(120deg, var(--indigo), var(--purple));
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--indigo), var(--purple) 55%, var(--blue));
  background-size: 180% 180%;
  box-shadow: 0 10px 30px rgba(91, 104, 232, 0.35);
  animation: gradient-shift 7s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(92, 168, 251, 0.45);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(139, 133, 244, 0.12);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(56px, 10vh, 120px) clamp(20px, 6vw, 72px) clamp(48px, 8vh, 96px);
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 680;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}

.grad-text {
  background: linear-gradient(110deg, var(--purple), var(--blue), var(--purple));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s linear infinite;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 350;
  margin: 0 0 30px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual: floating brand sphere with rings and chips */

.hero-visual {
  display: flex;
  justify-content: center;
}

.sphere-wrap {
  position: relative;
  width: min(380px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.sphere {
  width: 72%;
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(91, 104, 232, 0.45));
  animation: float 6s ease-in-out infinite;
}

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

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 133, 244, 0.35);
  animation: spin 18s linear infinite;
}

.ring-1 {
  transform: scale(0.92);
  border-style: dashed;
}

.ring-2 {
  inset: -7%;
  border-color: rgba(92, 168, 251, 0.22);
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg) scale(0.92);
  }
}

.ring-2 {
  animation-name: spin-full;
}

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

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(17, 20, 46, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  animation: float 7s ease-in-out infinite;
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex-shrink: 0;
}

.chip-2 svg {
  color: var(--purple);
}

.chip-1 {
  top: 6%;
  left: -4%;
  animation-delay: -1.5s;
}

.chip-2 {
  bottom: 14%;
  right: -8%;
  animation-delay: -3s;
}

.chip-3 {
  bottom: -2%;
  left: 10%;
  animation-delay: -4.5s;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) clamp(20px, 6vw, 72px);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2,
.spotlight-copy h2,
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 660;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(139, 133, 244, 0.14);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 133, 244, 0.45);
  box-shadow: 0 18px 44px rgba(91, 104, 232, 0.22);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--purple);
  background: linear-gradient(135deg, rgba(139, 133, 244, 0.18), rgba(92, 168, 251, 0.1));
  border: 1px solid rgba(139, 133, 244, 0.3);
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

.card:nth-child(2n) .card-icon {
  color: var(--blue);
  background: linear-gradient(135deg, rgba(92, 168, 251, 0.16), rgba(139, 133, 244, 0.1));
  border-color: rgba(92, 168, 251, 0.3);
}

.card:hover .card-icon {
  box-shadow: 0 0 22px rgba(139, 133, 244, 0.35);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 10px;
}

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

/* ---------- Product cards ---------- */

.product-card {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.product-card h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.product-card .ext {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.product-card .ext svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card:hover .ext {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--blue);
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(92, 168, 251, 0.12);
  border: 1px solid rgba(92, 168, 251, 0.3);
}

/* ---------- Q.Suite spotlight ---------- */

.spotlight {
  position: relative;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  padding-left: 30px;
  position: relative;
  color: var(--muted);
  font-weight: 330;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--purple), var(--blue));
  box-shadow: 0 0 14px rgba(92, 168, 251, 0.6);
}

.feature-list strong {
  color: var(--text);
  font-weight: 560;
}

/* Mock product window */

.mock-window {
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(28, 32, 68, 0.92), rgba(14, 16, 38, 0.96));
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.mock-window:hover {
  transform: perspective(1100px) rotateY(0deg) rotateX(0deg);
}

.mock-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(139, 133, 244, 0.14);
}

.mock-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(168, 172, 206, 0.3);
}

.mock-bar span:first-child {
  background: var(--purple);
}

.mock-body {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-metric {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(139, 133, 244, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.mock-metric small {
  color: var(--muted);
  font-size: 0.72rem;
}

.mock-metric strong {
  font-size: 1.05rem;
  font-weight: 640;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 96px;
  padding: 4px 6px 0;
}

.mock-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue), var(--indigo));
  opacity: 0.85;
  transform-origin: bottom;
  animation: grow 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.mock-chart span:nth-child(2n) {
  background: linear-gradient(180deg, var(--purple), var(--indigo));
}

.mock-chart span:nth-child(1) { animation-delay: 0.05s; }
.mock-chart span:nth-child(2) { animation-delay: 0.12s; }
.mock-chart span:nth-child(3) { animation-delay: 0.19s; }
.mock-chart span:nth-child(4) { animation-delay: 0.26s; }
.mock-chart span:nth-child(5) { animation-delay: 0.33s; }
.mock-chart span:nth-child(6) { animation-delay: 0.4s; }
.mock-chart span:nth-child(7) { animation-delay: 0.47s; }
.mock-chart span:nth-child(8) { animation-delay: 0.54s; }

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}

.mock-chat {
  display: grid;
  gap: 8px;
  margin: 0;
}

.bubble {
  margin: 0;
  max-width: 85%;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 330;
}

.bubble.in {
  background: rgba(255, 255, 255, 0.07);
  justify-self: start;
  border-bottom-left-radius: 4px;
}

.bubble.out {
  background: linear-gradient(120deg, rgba(91, 104, 232, 0.55), rgba(92, 168, 251, 0.45));
  justify-self: end;
  border-bottom-right-radius: 4px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.step {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(139, 133, 244, 0.14);
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

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

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

/* ---------- Legal and privacy ---------- */

.legal-section {
  padding-top: clamp(36px, 7vh, 84px);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.legal-panel,
.policy-block,
.policy-facts {
  border: 1px solid rgba(139, 133, 244, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.legal-panel {
  padding: 26px;
}

.legal-panel h3,
.policy-block h2 {
  margin: 0 0 18px;
  font-size: 1.08rem;
  font-weight: 620;
}

.legal-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.legal-list div {
  display: grid;
  gap: 4px;
}

.legal-list dt,
.policy-fact-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.legal-list a,
.policy-facts a,
.policy-content a,
.footer a {
  color: var(--blue);
}

.privacy-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 92px) clamp(20px, 6vw, 48px);
}

.policy-hero {
  margin-bottom: 32px;
}

.policy-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 680;
}

.policy-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  margin-top: 28px;
}

.policy-fact {
  display: grid;
  gap: 4px;
}

.policy-fact-value {
  color: var(--text);
  overflow-wrap: anywhere;
}

.policy-content {
  display: grid;
  gap: 18px;
}

.policy-block {
  padding: 26px;
}

.policy-block p,
.policy-block li {
  color: var(--muted);
  font-weight: 330;
}

.policy-block p {
  margin: 0;
}

.policy-block ul {
  margin: 0;
  padding-left: 20px;
}

.policy-block li + li {
  margin-top: 8px;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  border-radius: 26px;
  background:
    radial-gradient(120% 160% at 50% -40%, rgba(139, 133, 244, 0.28), transparent 60%),
    linear-gradient(160deg, rgba(28, 32, 68, 0.9), rgba(14, 16, 38, 0.95));
  border: 1px solid var(--border);
  margin: clamp(48px, 9vh, 110px) auto;
  max-width: 1100px;
  padding: clamp(48px, 8vh, 80px) clamp(20px, 6vw, 72px);
}

.cta-band .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(139, 133, 244, 0.12);
  padding: 28px clamp(20px, 6vw, 72px);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 330;
  margin: 0;
}

.footer-inner .brand {
  margin-right: auto;
}

.footer-company {
  overflow-wrap: anywhere;
}

.footer-login {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

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

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

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

  .hero-visual {
    order: -1;
  }

  .sphere-wrap {
    width: min(280px, 70vw);
  }

  .nav-links {
    display: none;
  }

  .nav-login {
    margin-left: auto;
  }

  .legal-grid,
  .policy-facts {
    grid-template-columns: 1fr;
  }

  .mock-window {
    transform: none;
  }
}

@media (max-width: 620px) {
  .bg-orbs {
    display: none;
  }

  .nav {
    gap: 12px;
    padding: 12px 20px;
  }

  .brand {
    font-size: 1rem;
  }

  .lang-switch {
    margin-left: auto;
  }

  .nav-login {
    display: none;
  }

  .btn {
    white-space: normal;
  }

  .chip {
    max-width: calc(100vw - 48px);
  }

  .chip-1 {
    left: 0;
  }

  .chip-2 {
    right: 0;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
