/* Vaylen landing — Infranext-style redesign (Poppins, dark, orange accent) */

:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #1d232a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #b6bac1;
  --accent: #06b6d4;
  --accent-soft: #67e8f9;
  --accent-deep: #0891b2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- floating pill nav ---------- */

.lnav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.45);
}

.lnav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s;
  cursor: pointer;
}

.lnav-link:hover { background: rgba(255, 255, 255, 0.1); }

.lnav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fff;
  color: #000;
  transition: opacity 0.2s;
}

.lnav-cta:hover { opacity: 0.85; }

.lnav-burger {
  display: none;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

.lnav-mobile {
  position: fixed;
  top: 64px;
  left: 16px;
  right: 16px;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
}

.lnav-mobile.open { display: flex; }

.lnav-mobile a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: #fff;
}

.lnav-mobile a:hover { background: rgba(255, 255, 255, 0.08); }

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

.hero-sec {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
}

.hero-grad {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom right, #93c5fd, #67e8f9, #0891b2);
  filter: blur(40px);
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #000;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  margin-bottom: 22px;
}

.hero-pill a {
  font-weight: 600;
  color: #155e75;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-inner h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: #000;
}

.hero-cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 1s step-end infinite;
  color: #000;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-inner .hero-sub {
  margin: 18px auto 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.78);
  font-weight: 500;
}

.hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 26px;
  padding: 10px 20px;
  margin-top: 22px;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 500;
  border: 0;
  transition: transform 0.2s;
}

.hero-cta .cta-label { position: relative; z-index: 1; }

.hero-cta .slide {
  position: absolute;
  top: 0;
  right: 100%;
  height: 100%;
  width: 100%;
  background: #fff;
  transition: right 0.35s ease-in-out;
  overflow: hidden;
  z-index: 1;
}

.hero-cta .slide .cta-dark {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-cta:hover .slide { right: 0; }

/* ---------- tech marquee ---------- */

.marquee-wrap {
  max-width: 64rem;
  margin: 30px auto;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.marquee {
  position: relative;
  width: 100%;
  max-width: 50vw;
  overflow: hidden;
  white-space: nowrap;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee-track {
  display: inline-flex;
  gap: 48px;
  padding-right: 48px;
  width: fit-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-size: 1.05rem;
  font-weight: 500;
  color: #9aa0a8;
}

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

/* ---------- feature cards ---------- */

.features {
  max-width: 64rem;
  margin: 30px auto;
  padding: 0 16px;
}

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

.features-col { display: flex; flex-direction: column; gap: 16px; }

.fcard {
  position: relative;
  transform-origin: center;
  background: var(--card);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.2);
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  cursor: default;
}

.fcard:hover,
.fcard.is-visible:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow:
    inset 0 2px 4px 0 rgba(255, 255, 255, 0.22),
    0 24px 50px rgba(0, 0, 0, 0.6);
}

.fcard:hover .icon-tile {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

.fcard:hover h2 { color: #fff; }

.fcard .icon-tile {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fcard .icon-tile {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 12px;
}

.fcard .icon-tile svg { width: 22px; height: 22px; }

.fcard h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s;
}

.fcard p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 0 0;
}

.fcard .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-soft);
  font-weight: 500;
  transition: color 0.3s;
}

.fcard .card-link:hover { color: #fff; }

/* mock code card */

.code-card {
  background: #0d0f12;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow: hidden;
  margin: 16px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fcard:hover .code-card {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.5);
}

.code-card .code-head {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-card .code-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.code-card .code-head i:nth-child(1) { background: #ff5f57; }
.code-card .code-head i:nth-child(2) { background: #febc2e; }
.code-card .code-head i:nth-child(3) { background: #28c840; }

.code-card pre {
  margin: 0;
  padding: 14px 16px;
  color: #d6d9de;
  overflow-x: auto;
  white-space: pre;
}

.code-card .k { color: #ff9e64; }
.code-card .f { color: #7aa2f7; }
.code-card .s { color: #9ece6a; }
.code-card .c { color: #565f89; }

/* ---------- services tabs ---------- */

.services-sec {
  margin: 48px auto;
  padding: 0 16px;
  max-width: 64rem;
}

.bubble-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 200;
  color: #fff;
  cursor: default;
  margin: 0 0 30px;
}

.bubble-title .bub {
  display: inline-block;
  transition: transform 0.25s, color 0.25s;
}

.bubble-title .bub:hover {
  transform: translateY(-6px) scale(1.12);
  color: var(--accent-soft);
}

.svc-layout {
  display: flex;
  gap: 40px;
  padding: 28px 0;
}

.svc-list {
  width: 33%;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.svc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--muted);
  padding: 10px 14px;
  margin: -10px -14px;
  border-radius: 12px;
  transition: background 0.25s;
}

.svc-list li:hover { background: rgba(255, 255, 255, 0.04); }

.svc-list li svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s, color 0.25s;
  color: rgba(255, 255, 255, 0.25);
}

.svc-list li span {
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.25s;
}

.svc-list li:hover span { color: var(--accent-soft); }
.svc-list li:hover svg { color: var(--accent-soft); transform: translateX(4px); }

.svc-list li.active span { color: var(--accent-soft); }
.svc-list li.active svg { color: var(--accent-soft); transform: translateX(6px); }

.svc-panel { flex: 1; min-height: 250px; }

.svc-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-soft);
  margin: 0 0 10px;
}

.svc-panel h3 {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.svc-panel h3 svg { width: 20px; height: 20px; color: var(--accent-soft); }

.svc-panel p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.svc-panel .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

.svc-panel .ghost-btn:hover { color: #fff; background: #000; }

/* ---------- showcase ---------- */

.showcase {
  margin: 30px auto;
  max-width: 64rem;
  padding: 0 16px;
}

.showcase-split {
  display: flex;
  align-items: center;
  gap: 40px;
}

.browser-mock {
  position: relative;
  background: #1f242c;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 500px;
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.browser-mock:hover,
.browser-mock.is-visible:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 28px 70px rgba(0, 0, 0, 0.6);
}

.browser-mock .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
}

.browser-mock .bar i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
}
.browser-mock .bar i:nth-child(1) { background: #ff5f57; }
.browser-mock .bar i:nth-child(2) { background: #febc2e; }
.browser-mock .bar i:nth-child(3) { background: #28c840; }

.browser-mock .bar em {
  font-style: normal;
  margin-left: 10px;
  font-size: 0.75rem;
  color: #8b919c;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 12px;
}

.browser-mock .mock-body {
  padding: 26px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-hero {
  height: 110px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(8, 145, 178, 0.65));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.mock-row { display: flex; gap: 12px; }
.mock-row div {
  flex: 1;
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mock-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.mock-line.short { width: 55%; }

.showcase-copy {
  text-align: left;
  max-width: 28rem;
}

.showcase-copy h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 16px;
  transition: color 0.4s;
}

.showcase-copy h2:hover { color: var(--accent-soft); }

.showcase-copy p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.7;
}

.showcase-copy .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 11px 20px;
  transition: color 0.25s, background 0.25s;
}

.showcase-copy .ghost-btn:hover { color: #fff; background: #000; }

/* ---------- pricing teaser ---------- */

.pricing-sec {
  padding: 0 16px;
  max-width: 64rem;
  margin: 30px auto;
}

.pricing-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px 0 rgba(255, 255, 255, 0.2);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: transform 0.3s ease;
}

.pricing-card:hover,
.pricing-card.is-visible:hover {
  transform: scale(1.02);
}

.pricing-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.pricing-card p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.6;
}

.pricing-card .accent-btn {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.25s, color 0.25s;
}

.pricing-card .accent-btn:hover { background: #fff; color: #000; }

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

.cta-sec {
  max-width: 64rem;
  margin: 30px auto;
  padding: 0 16px 56px;
}

.cta-card {
  text-align: center;
  padding: 20px 0 10px;
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 10px;
}

.cta-card p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 26px;
}

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

.lfooter {
  position: relative;
  width: 100%;
  background: var(--card);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 24px 24px 0 0;
}

.lfooter-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.lfooter h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 14px; }
.lfooter h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; }

.lfooter p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 24rem;
}

.lfooter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.lfooter a {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lfooter a:hover { color: var(--accent-soft); }
.lfooter a svg { width: 16px; height: 16px; }

.lfooter-brand-link {
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.lfooter-brand-link:hover { color: #fff; }

.lfooter-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.3s ease;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .lnav-inner { display: none; }
  .lnav-burger { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .svc-layout { flex-direction: column; }
  .svc-list { width: 100%; }
  .showcase-split { flex-direction: column; }
  .pricing-card { flex-direction: column; text-align: center; }
  .lfooter-grid { grid-template-columns: 1fr 1fr; }
  .marquee { max-width: 92vw; }
}
