/* =====================================================
   Talynco — custom styles layered over Tailwind (CDN)
   Identity: neon lime accent on deep navy.
   Fonts: Space Grotesk (display) / Inter (body)
   ===================================================== */

:root {
  --volt: #C9F73A;
  --volt-bright: #E4FF70;
  --volt-dim: #93B529;
  --ink-950: #05070D;
  --ink-900: #0B0F19;
  --ink-800: #101728;
  --ink-700: #1A2438;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: .9rem 1.75rem; white-space: nowrap; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease,
    color .25s ease, box-shadow .25s ease;
}
.btn-sm { padding: .62rem 1.25rem; font-size: .875rem; }
.btn-primary { background: var(--volt); color: var(--ink-950); }
.btn-primary:hover { background: var(--volt-bright); transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(201, 247, 58, .45); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost:hover { border-color: rgba(201, 247, 58, .55); color: var(--volt); background: rgba(201, 247, 58, .06); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--volt-bright); outline-offset: 3px; }

/* ---------- Navigation ---------- */
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem 0; font-size: .9375rem; font-weight: 500; color: #94a3b8;
  transition: color .2s;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--volt); border-radius: 2px; transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }

.dropdown {
  position: absolute; left: 50%; top: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px); min-width: 20rem;
  border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 23, 40, .94); backdrop-filter: blur(16px);
  padding: .5rem; opacity: 0; visibility: hidden;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .65);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 60;
}
.group:hover > .dropdown,
.group:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown > a { display: flex; align-items: flex-start; gap: .75rem; padding: .7rem .8rem; border-radius: .75rem; transition: background .2s; }
.dropdown > a:hover { background: rgba(255, 255, 255, .05); }
.dd-icon {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: .65rem; background: rgba(201, 247, 58, .1);
  border: 1px solid rgba(201, 247, 58, .22); color: var(--volt);
}

.mob-link {
  display: block; border-radius: .65rem; padding: .65rem .8rem;
  font-size: .9375rem; font-weight: 500; color: #94a3b8;
  transition: background .2s, color .2s;
}
.mob-link:hover, .mob-link.active { background: rgba(255, 255, 255, .05); color: #fff; }
.mob-sub { padding-left: 1.6rem; font-size: .875rem; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--volt);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--volt); opacity: .7; }
.text-volt-gradient {
  background: linear-gradient(92deg, var(--volt) 10%, var(--volt-bright) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9375rem; color: var(--volt); }
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Surfaces ---------- */
.card {
  border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(201, 247, 58, .35);
  box-shadow: 0 24px 60px -24px rgba(201, 247, 58, .18);
}
.chip {
  display: inline-flex; align-items: center; gap: .45rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05);
  padding: .4rem .9rem; font-size: .8125rem; font-weight: 500; color: #cbd5e1;
  backdrop-filter: blur(8px);
}
button.chip, a.chip { cursor: pointer; }
.chip-active { background: var(--volt); border-color: transparent; color: var(--ink-950); font-weight: 600; }
.icon-badge {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .9rem;
  background: rgba(201, 247, 58, .1); border: 1px solid rgba(201, 247, 58, .22); color: var(--volt);
}
.step-num {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  border: 1px solid rgba(201, 247, 58, .35); background: rgba(201, 247, 58, .08);
  color: var(--volt); font-weight: 700;
}

/* ---------- Backgrounds & glows ---------- */
.bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 78%);
}
.glow { position: absolute; border-radius: 9999px; pointer-events: none; filter: blur(70px); }
.glow-volt { background: radial-gradient(circle, rgba(201, 247, 58, .2), transparent 70%); }
.glow-cool { background: radial-gradient(circle, rgba(96, 141, 255, .13), transparent 70%); }

/* ---------- Logo marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 5rem; padding-right: 5rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wordmark {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem;
  letter-spacing: .06em; color: #475569; white-space: nowrap; transition: color .3s;
}
.marquee:hover .wordmark { color: #94a3b8; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Network graphic ---------- */
.net-node { fill: #2A3A5C; }
.net-volt { fill: var(--volt); animation: pulse 3.2s ease-in-out infinite; }
.net-edge-volt { stroke-dasharray: 3 7; animation: dash 4.5s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -60; } }

/* ---------- Floating chips ---------- */
.float { animation: float 6s ease-in-out infinite; }
.float-delay-1 { animation-delay: 1.6s; }
.float-delay-2 { animation-delay: 3.1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Bar chart ---------- */
.bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.bars.in .bar { transform: scaleY(1); }

/* ---------- Avatars & covers ---------- */
.avatar-tile {
  position: relative; overflow: hidden; display: grid; place-items: center;
  border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .08); background: var(--ink-800);
}
.avatar-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(140% 140% at 12% 0%, rgba(201, 247, 58, .3), transparent 55%); }
.avatar-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 100% 100%, rgba(201, 247, 58, .1), transparent 55%); }
.avatar-initials { position: relative; z-index: 1; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #E9FFB0; }

.cover {
  position: relative; display: grid; place-items: center; overflow: hidden; height: 11rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: radial-gradient(130% 130% at 20% 8%, rgba(201, 247, 58, .16), transparent 55%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
.cover-2 { background: radial-gradient(130% 130% at 85% 15%, rgba(201, 247, 58, .2), transparent 55%), linear-gradient(180deg, var(--ink-800), var(--ink-900)); }
.cover-3 { background: radial-gradient(150% 110% at 50% -10%, rgba(201, 247, 58, .14), transparent 60%), linear-gradient(180deg, var(--ink-800), var(--ink-900)); }
.cover-num {
  position: relative; z-index: 1; font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 4.5rem; line-height: 1; color: rgba(201, 247, 58, .18);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 1rem;
  background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s;
}
.faq-item[open] { border-color: rgba(201, 247, 58, .32); background: rgba(201, 247, 58, .035); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 600; color: #f1f5f9;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 1rem; }
.faq-icon { flex: none; color: var(--volt); transition: transform .3s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 1.4rem 1.2rem; color: #94a3b8; line-height: 1.7; font-size: .9375rem; }

/* ---------- Big stat blocks ---------- */
.stat-block {
  border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  padding: 1.6rem 1.5rem; text-align: center;
}
.stat-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 2.9rem); line-height: 1.05; color: var(--volt);
}
.stat-label { margin-top: .6rem; font-size: .8rem; line-height: 1.55; color: #94a3b8; }

/* ---------- Value pillar strip ---------- */
.value-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 1.4rem; }
.value-strip .word {
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: #cbd5e1;
}
.value-strip .star { color: var(--volt); font-size: .8rem; }

/* ---------- Forms ---------- */
.form-label { display: block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 600; color: #cbd5e1; }
.field {
  width: 100%; border-radius: .75rem; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04); padding: .72rem 1rem; color: #fff;
  font-size: .9375rem; transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #475569; }
.field:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(201, 247, 58, .16); }
select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
select.field option { background: var(--ink-800); color: #e2e8f0; }
textarea.field { min-height: 8rem; resize: vertical; }

/* ---------- Footer ---------- */
.f-link { color: #8b98ad; font-size: .9rem; transition: color .2s; }
.f-link:hover { color: var(--volt); }
.social-btn {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .65rem;
  border: 1px solid rgba(255, 255, 255, .1); color: #94a3b8;
  transition: color .2s, border-color .2s, transform .2s;
}
.social-btn:hover { color: var(--volt); border-color: rgba(201, 247, 58, .45); transform: translateY(-2px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bar { transform: scaleY(1); }
  .marquee-track { animation: none; }
}
