/* =====================================================================
   Buttons, the hero network graphic, cards, model chips, the privacy
   flow diagram, use cases, and FAQ.
   ===================================================================== */

/* ===== BUTTONS =====
   Flat fill at rest — gradient/glow is reserved for the hover state,
   not the base fill. */
.nav-cta, .hero-cta {
  border: 1px solid rgba(194,140,255,.5);
  background: var(--purple);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
}

.nav-cta::before, .hero-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .5s;
}

.nav-cta:hover::before, .hero-cta:hover::before { left: 100%; }

.nav-cta:hover, .hero-cta:hover {
  background: var(--purple-hover);
  box-shadow: 0 0 40px rgba(139,69,255,.6), inset 0 1px 0 rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.outline-cta {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  text-align: center;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}

.outline-cta:hover {
  border-color: var(--purple-2);
  background: rgba(139,69,255,.12);
  transform: translateY(-2px);
}

.hero-cta { padding: 15px 26px; }
.hero-actions .outline-cta { padding: 15px 26px; }

/* Modal submit — same primary-CTA treatment as .hero-cta/.nav-cta. */
.form button {
  border: 0;
  background: var(--purple);
  color: var(--white);
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
  transition: all .3s;
}

.form button:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(139,69,255,.38);
}

/* ===== NETWORK (hero graphic) =====
   The center node is the page's one deliberate focal glow, alongside
   the primary CTA's hover state — everything else here elevates with
   a neutral shadow instead. */
.network {
  min-height: 480px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(28,18,45,.9), rgba(8,8,12,.95));
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .5s;
}

.network::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.network-label {
  position: absolute;
  top: 20px; left: 20px;
  color: var(--muted-2);
  font: 9px var(--mono);
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 2px;
  flex-shrink: 0;
}

.network-status {
  position: absolute;
  right: 20px; top: 20px;
  color: var(--green);
  font: 9px var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-status::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}

.network-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #1a0a35, #100a20);
  border: 2px solid var(--purple);
  box-shadow: 0 0 0 14px rgba(139,69,255,.07), 0 0 0 28px rgba(139,69,255,.03), 0 0 70px rgba(139,69,255,.5), inset 0 0 28px rgba(139,69,255,.25);
  animation: centerPulse 4s ease-in-out infinite;
}

@keyframes centerPulse {
  0%, 100% { box-shadow: 0 0 0 14px rgba(139,69,255,.07), 0 0 70px rgba(139,69,255,.4), inset 0 0 28px rgba(139,69,255,.25); }
  50% { box-shadow: 0 0 0 20px rgba(139,69,255,.1), 0 0 90px rgba(139,69,255,.6), inset 0 0 36px rgba(139,69,255,.35); }
}

.network-center img {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 16px rgba(139,69,255,.5));
}

.connector {
  position: absolute;
  left: 50%; top: 50%;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent 30%, transparent 70%, rgba(120,228,231,.4));
  transform-origin: left;
  opacity: .55;
}

.connector::before {
  content: '';
  position: absolute;
  left: 0; top: -2px;
  width: 18px; height: 5px;
  background: linear-gradient(90deg, var(--purple), transparent);
  border-radius: 3px;
  animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 18px); opacity: 0; }
}

.c1 { transform: rotate(-150deg); }
.c1::before { animation-delay: 0s; }
.c2 { transform: rotate(-92deg); }
.c2::before { animation-delay: .3s; }
.c3 { transform: rotate(-32deg); }
.c3::before { animation-delay: .6s; }
.c4 { transform: rotate(30deg); }
.c4::before { animation-delay: .9s; }
.c5 { transform: rotate(91deg); }
.c5::before { animation-delay: 1.2s; }
.c6 { transform: rotate(150deg); }
.c6::before { animation-delay: 1.5s; }

.node {
  position: absolute;
  width: 78px; height: 78px;
  border: 1px solid rgba(194,140,255,.35);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20,15,35,.95), rgba(10,8,16,.98));
  display: grid;
  place-items: center;
  color: #ddd;
  font-weight: 600;
  font-size: 11px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  transition: all .4s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}

.node:hover {
  transform: translateY(-6px) scale(1.06);
  border-color: var(--purple);
}

.n1 { left: 10%; top: 14%; animation: nodeFloat 6s ease-in-out infinite; }
.n2 { left: 42%; top: 5%; animation: nodeFloat 6s ease-in-out infinite .5s; }
.n3 { right: 10%; top: 14%; animation: nodeFloat 6s ease-in-out infinite 1s; }
.n4 { right: 10%; bottom: 14%; animation: nodeFloat 6s ease-in-out infinite 1.5s; }
.n5 { left: 42%; bottom: 5%; animation: nodeFloat 6s ease-in-out infinite 2s; }
.n6 { left: 10%; bottom: 14%; animation: nodeFloat 6s ease-in-out infinite 2.5s; }

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

.node small {
  display: block;
  color: var(--muted-2);
  font: 8px var(--mono);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== CARDS ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card, .feature-card, .use-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  transition: all .4s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.problem-card::before, .feature-card::before, .use-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,69,255,.5), transparent);
  opacity: 0;
  transition: opacity .4s;
}

.problem-card:hover, .feature-card:hover, .use-card:hover {
  border-color: rgba(194,140,255,.5);
  transform: translateY(-6px);
  background: linear-gradient(145deg, rgba(139,69,255,.1), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

.problem-card:hover::before, .feature-card:hover::before, .use-card:hover::before { opacity: 1; }

.card-number {
  font: 11px var(--mono);
  color: var(--purple-2);
}

.problem-card h3, .feature-card h3, .use-card h3 {
  font-size: 17px;
  margin: 36px 0 10px;
}

.problem-card p, .feature-card p, .use-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ===== FEATURE LAYOUT ===== */
.feature-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card { min-height: 190px; }
.feature-card h3 { margin: 18px 0 8px; }

.feature-icon {
  height: 30px;
  color: var(--purple-2);
  font-size: 24px;
  display: flex;
  align-items: center;
}

.feature-card b {
  font: 9px var(--mono);
  color: var(--muted-2);
  letter-spacing: .1em;
}

/* ===== MODEL SECTION ===== */
.model-section { text-align: center; }
.model-section .section-head { margin-left: auto; margin-right: auto; }

.model-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: auto;
}

.model-chip {
  border: 1px solid var(--line);
  background: rgba(13,12,18,.9);
  border-radius: 10px;
  color: var(--soft);
  padding: 13px 20px;
  font-size: 13px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.model-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,69,255,.18), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.model-chip:hover {
  border-color: var(--purple-2);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
}

.model-chip:hover::before { opacity: 1; }

.model-note {
  min-height: 26px;
  color: var(--purple-2);
  font: 11px var(--mono);
  margin-top: 26px;
}

/* ===== USE CASES ===== */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.use-card { min-height: 175px; }
.use-card h3 { margin-top: 34px; }

/* ===== PRIVACY FLOW =====
   Brand-new diagram: the one place besides the hero node and the
   primary CTA's hover state that carries a deliberate glow — the
   "API Bayle" step, since that's the one focal point the whole
   diagram exists to point at. Everything else here stays flat. */
.privacy-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  max-width: 960px;
  margin: 56px auto 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 150px;
  flex-shrink: 0;
}

.flow-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  display: grid;
  place-items: center;
  font-size: 26px;
}

.flow-step--core .flow-icon {
  border-color: var(--purple);
  background: radial-gradient(circle, #1a0a35, #100a20);
  box-shadow: 0 0 0 10px rgba(139,69,255,.07), 0 0 40px rgba(139,69,255,.4);
  animation: centerPulse 4s ease-in-out infinite;
}

.flow-label {
  font-size: 13px;
  font-weight: 600;
}

.flow-step small {
  font: 10px var(--mono);
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.flow-line {
  position: relative;
  flex: 1;
  height: 2px;
  min-width: 24px;
  margin-top: 32px;
  background: var(--line);
}

.flow-particle {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: flowMove 3s linear infinite;
}

.p1 { background: var(--purple-2); animation-delay: 0s; }
.p2 { background: var(--green); animation-delay: 1s; }
.p3 { background: var(--green); animation-delay: 2s; }

@keyframes flowMove {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

@keyframes flowMoveVertical {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

/* The identity tag riding with the first leg's particle — it peels off
   right as the request reaches the API Bayle node, dramatizing exactly
   where anonymization happens rather than leaving it abstract. */
.id-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--purple-2);
  animation: idTagFade 3s linear infinite;
}

@keyframes idTagFade {
  0%, 8% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

/* One-word caption per connector, naming the specific thing happening
   on that leg of the request's round trip. */
.flow-line-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font: 9px var(--mono);
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ===== FAQ ===== */
.faq { max-width: 780px; margin: auto; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 0;
  font-size: 15px;
  transition: color .3s;
  gap: 16px;
}

.faq-q:hover { color: var(--purple-2); }

.faq-q span {
  color: var(--purple-2);
  font-size: 20px;
  transition: transform .3s;
  width: 28px; height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.faq-item.open .faq-a {
  max-height: 220px;
  padding: 0 40px 22px 0;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
  background: var(--purple);
  border-color: var(--purple);
}

/* ===== FINAL CTA =====
   Horizontal margin comes from .container like every other section —
   only vertical padding is section-specific. */
.final-cta {
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta h2 { max-width: 700px; margin: 16px auto; }
.final-cta p { color: var(--muted); margin: 0 auto 30px; max-width: 560px; line-height: 1.7; }
