/* =========================================
   HOME — index.html only (hero, features, open-source, pricing, faq)
   ========================================= */

/* ---------- Hero / floaty animations ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.animate-floaty {
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty-slow {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}

.animate-floaty-slow {
  animation: floaty-slow 9s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(104, 87, 217, 0.55), 0 20px 60px -10px rgba(104, 87, 217, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(104, 87, 217, 0), 0 28px 80px -10px rgba(104, 87, 217, 0.55);
  }
}

.animate-glow-pulse {
  animation: glow-pulse 2.8s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

.pulse-soft {
  animation: pulse-soft 1.8s ease-in-out infinite;
}

/* ---------- Beam button ---------- */
.beam-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  padding: 1px;
  transition: all .3s ease;
}

.beam-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px -15px rgba(104, 87, 217, .55);
}

.beam-btn .beam-ring {
  position: absolute;
  inset: -100%;
  animation: spin 3s linear infinite;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0%, transparent 75%, #6857D9 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.beam-btn:hover .beam-ring {
  opacity: 1;
}

.beam-btn .beam-static {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #121D3A;
  transition: opacity .3s ease;
}

.beam-btn:hover .beam-static {
  opacity: 0;
}

.beam-btn .beam-surface {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #1B2C58 0%, #121D3A 100%);
  color: #FAF9FD;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-family: var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: color .3s ease, transform .3s ease;
}

.beam-btn:hover .beam-surface {
  color: #fff;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

/* ---------- Sweep button ---------- */
.btn-sweep {
  position: relative;
  overflow: hidden;
}

.btn-sweep::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
  transform: skewX(-20deg);
}

.btn-sweep:hover::before {
  animation: beam 1.3s ease forwards;
}

/* ---------- Glass / cards ---------- */
.glass-effect {
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 90px -30px rgba(18, 29, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.card-divider {
  height: 1px;
  background-image: linear-gradient(90deg, transparent, rgba(104, 87, 217, .25) 20%, rgba(104, 87, 217, .5) 50%, rgba(104, 87, 217, .25) 80%, transparent);
}

.card-vertical-divider {
  width: 1px;
  background-image: linear-gradient(180deg, transparent, rgba(104, 87, 217, .25) 20%, rgba(104, 87, 217, .5) 50%, rgba(104, 87, 217, .25) 80%, transparent);
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: .7rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-mono);
}

.glow-purple {
  box-shadow: 0 0 40px rgba(104, 87, 217, 0.35), 0 0 80px rgba(104, 87, 217, 0.18);
}

.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: linear-gradient(180deg, rgba(104, 87, 217, .45), rgba(104, 87, 217, 0));
  pointer-events: none;
}

.flashlight {
  position: relative;
  isolation: isolate;
}

.flashlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(104, 87, 217, 0.18), transparent 40%);
  opacity: 0;
  transition: opacity .4s ease;
}

.flashlight:hover::after {
  opacity: 1;
}

.preview-surface {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F8FE 100%);
  border: 1px solid #E7E6EF;
  border-radius: 22px;
}

/* ---------- FEATURES section utilities ---------- */
.icon-circle {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 87, 217, .08);
  border: 1px solid rgba(104, 87, 217, .25);
  color: #6857D9;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s ease, color .35s ease, box-shadow .35s ease;
}

.glow-soft {
  box-shadow: 0 20px 50px -15px rgba(18, 29, 58, 0.18);
}

.feature-card {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF9FD 100%);
  border: 1px solid #E7E6EF;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .45s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(104, 87, 217, .55), rgba(184, 192, 244, .15) 45%, rgba(104, 87, 217, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 87, 217, .35);
  box-shadow: 0 30px 70px -25px rgba(104, 87, 217, .35), 0 8px 20px -10px rgba(18, 29, 58, .15);
}

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

.feature-card:hover .icon-circle {
  transform: rotate(-6deg) scale(1.08);
  background: #6857D9;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(104, 87, 217, .55);
}

.feature-card .feat-arrow {
  transition: transform .35s ease, opacity .35s ease;
  opacity: .55;
}

.feature-card:hover .feat-arrow {
  transform: translate(4px, -4px);
  opacity: 1;
}

/* Mini chart bars */
@keyframes bar-rise {
  0% { transform: scaleY(.15); opacity: .55; }
  100% { transform: scaleY(1); opacity: 1; }
}

.mini-bar {
  transform-origin: bottom;
  animation: bar-rise 2.4s ease-in-out infinite alternate;
}

/* Code snippet */
.code-snippet {
  background: linear-gradient(180deg, #121D3A 0%, #1B2C58 100%);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #D9DEFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 45px -20px rgba(18, 29, 58, .55);
  overflow: hidden;
  position: relative;
}

.code-snippet .tok-key { color: #B8C0F4; }
.code-snippet .tok-str { color: #AAF5AF; }
.code-snippet .tok-fn  { color: #F0A87B; }
.code-snippet .tok-mute { color: #737185; }

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: #8686E8;
  vertical-align: -1px;
  margin-left: 1px;
  animation: caret-blink 1.1s steps(1) infinite;
}

.timeline-line {
  background: linear-gradient(180deg, rgba(104, 87, 217, .55), rgba(104, 87, 217, .05));
}

.channel-pill {
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.feature-card:hover .channel-pill {
  transform: translateY(-2px);
}

.drag-dots {
  background-image: radial-gradient(circle, rgba(104, 87, 217, .55) 1.2px, transparent 1.4px);
  background-size: 6px 6px;
}

.avatar-stack > * {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.feature-card:hover .avatar-stack > *:nth-child(1) { transform: translateX(-6px) rotate(-4deg); }
.feature-card:hover .avatar-stack > *:nth-child(2) { transform: translateY(-3px); }
.feature-card:hover .avatar-stack > *:nth-child(3) { transform: translateX(6px) rotate(4deg); }

@keyframes ring-pulse {
  0% { transform: scale(.9); opacity: .85; }
  100% { transform: scale(1.7); opacity: 0; }
}

.ring-pulse::before,
.ring-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1.5px solid rgba(104, 87, 217, .55);
  animation: ring-pulse 2.2s ease-out infinite;
}

.ring-pulse::after {
  animation-delay: 1.1s;
}

/* Mini kanban floating columns */
@keyframes col-float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

.kanban-col-a { animation: col-float-a 5s ease-in-out infinite; }
.kanban-col-b { animation: col-float-b 6.5s ease-in-out infinite; }

/* =========================================
   OPEN-SOURCE section
   ========================================= */
.bg-grid-pattern-dark {
  background-image: radial-gradient(circle at 1px 1px, rgba(216, 222, 255, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
}

.glass-effect-dark {
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(24, 28, 55, 0.65), rgba(18, 29, 58, 0.55));
  border: 1px solid rgba(216, 222, 255, 0.12);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.text-shimmer {
  background: linear-gradient(110deg, #FFFFFF 0%, #B8C0F4 35%, #8686E8 50%, #B8C0F4 65%, #FFFFFF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}

/* Terminal */
.terminal {
  background: linear-gradient(180deg, #0E1530 0%, #121D3A 100%);
  border-radius: 18px;
  border: 1px solid rgba(216, 222, 255, .14);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 1px rgba(104, 87, 217, .15);
  overflow: hidden;
  font-family: var(--font-mono);
  color: #D9DEFF;
  font-size: 12px;
  line-height: 1.7;
}

.terminal-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border-bottom: 1px solid rgba(216, 222, 255, .10);
  padding: 10px 14px;
}

.terminal-body { padding: 18px 18px 20px; }

.term-prompt { color: #8686E8; }
.term-cmd { color: #FFFFFF; }
.term-flag { color: #B8C0F4; }
.term-str { color: #AAF5AF; }
.term-mute { color: #737185; }
.term-ok { color: #53C371; }
.term-warn { color: #F0A87B; }

@keyframes type-line {
  0% { width: 0; }
  100% { width: 100%; }
}

.term-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  animation: type-line 1.6s steps(40, end) both;
}

.term-line.l1 { animation-delay: .2s; }
.term-line.l2 { animation-delay: 1.7s; }
.term-line.l3 { animation-delay: 2.6s; }
.term-line.l4 { animation-delay: 3.4s; }
.term-line.l5 { animation-delay: 4.0s; }
.term-line.l6 { animation-delay: 4.5s; }

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #8686E8;
  vertical-align: -2px;
  margin-left: 2px;
  animation: cursor-blink 1.05s steps(1) infinite;
}

/* Open-source key-point row */
.os-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #E7E6EF;
  backdrop-filter: blur(8px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.os-point:hover {
  transform: translateX(4px);
  background: rgba(237, 241, 253, .9);
  border-color: rgba(104, 87, 217, .35);
  box-shadow: 0 12px 28px -14px rgba(104, 87, 217, .35);
}

.os-point-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(104, 87, 217, .12), rgba(134, 134, 232, .04));
  border: 1px solid rgba(104, 87, 217, .25);
  color: #6857D9;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.os-point:hover .os-point-icon {
  background: #6857D9;
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

/* GitHub stat tile */
.gh-stat {
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #E7E6EF;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.gh-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 87, 217, .35);
  box-shadow: 0 18px 40px -20px rgba(104, 87, 217, .4);
}

@keyframes counter-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.gh-counter {
  animation: counter-pulse 3.2s ease-in-out infinite;
  display: inline-block;
}

@keyframes star-twinkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(240, 168, 123, 0));
  }
  50% {
    transform: rotate(15deg) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(240, 168, 123, .65));
  }
}

.star-twinkle {
  animation: star-twinkle 2.4s ease-in-out infinite;
}

.license-chip {
  background: rgba(104, 87, 217, .08);
  border: 1px solid rgba(104, 87, 217, .25);
  color: #31388D;
}

.text-shimmer-light {
  background: linear-gradient(110deg, #121D3A 0%, #6857D9 35%, #8686E8 50%, #6857D9 65%, #121D3A 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}

/* =========================================
   PRICING section
   ========================================= */
.price-card {
  position: relative;
  isolation: isolate;
  z-index: 1;
  border-radius: 26px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF9FD 100%);
  border: 1px solid #E7E6EF;
  padding: 32px 28px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .45s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(104, 87, 217, .35);
  box-shadow: 0 30px 70px -25px rgba(104, 87, 217, .35), 0 8px 20px -10px rgba(18, 29, 58, .15);
}

.price-card-featured {
  z-index: 5;
  background: linear-gradient(180deg, #1B2C58 0%, #121D3A 100%);
  border-color: rgba(216, 222, 255, .15);
  color: #FAF9FD;
  transform: translateY(-8px);
  box-shadow:
    0 40px 90px -30px rgba(104, 87, 217, .55),
    0 0 0 1px rgba(104, 87, 217, .35),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.price-card-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(from 140deg, #6857D9, #8686E8, #B8C0F4, #6857D9);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .65;
  animation: spin 8s linear infinite;
}

.price-card-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% -10%, rgba(104, 87, 217, .55), transparent 55%),
    radial-gradient(circle at 0% 110%, rgba(207, 79, 39, .25), transparent 50%);
  opacity: .85;
  z-index: -1;
}

.price-card-featured:hover {
  transform: translateY(-14px);
  box-shadow:
    0 55px 110px -30px rgba(104, 87, 217, .65),
    0 0 0 1px rgba(104, 87, 217, .55),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6857D9, #8686E8);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px -10px rgba(104, 87, 217, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  white-space: nowrap;
}

.plan-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #31388D;
  background: rgba(104, 87, 217, .08);
  border: 1px solid rgba(104, 87, 217, .22);
  padding: 4px 10px;
  border-radius: 9999px;
}

.price-card-featured .plan-eyebrow {
  color: #D9DEFF;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(216, 222, 255, .25);
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: 56px;
  color: #121D3A;
}

.price-card-featured .price-amount {
  background: linear-gradient(135deg, #FFFFFF 0%, #B8C0F4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-suffix {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888599;
  letter-spacing: .04em;
}

.price-card-featured .price-suffix {
  color: #B8C0F4;
}

.price-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #4D4B5C;
  transition: transform .25s ease, color .25s ease;
}

.price-card-featured .price-feat {
  color: #E7E6EF;
}

.price-feat:hover {
  transform: translateX(2px);
}

.price-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: rgba(104, 87, 217, .12);
  border: 1px solid rgba(104, 87, 217, .3);
  color: #6857D9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .25s ease, color .25s ease;
}

.price-card:hover .price-check {
  background: #6857D9;
  color: #fff;
  transform: scale(1.08);
}

.price-card-featured .price-check {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(216, 222, 255, .35);
  color: #D9DEFF;
}

.price-card-featured:hover .price-check {
  background: #FFFFFF;
  color: #6857D9;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  cursor: pointer;
}

.plan-cta-primary {
  background: #FFFFFF;
  color: #121D3A;
  box-shadow: 0 18px 45px -15px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.plan-cta-primary:hover {
  transform: translateY(-2px);
  background: #B8C0F4;
  box-shadow: 0 24px 55px -15px rgba(184, 192, 244, .6);
}

.plan-cta-ghost {
  background: rgba(104, 87, 217, .08);
  color: #31388D;
  border: 1px solid rgba(104, 87, 217, .25);
}

.plan-cta-ghost:hover {
  background: #6857D9;
  color: #FFFFFF;
  border-color: #6857D9;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -15px rgba(104, 87, 217, .55);
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #E7E6EF;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #605E70;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease;
}

.trust-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 87, 217, .35);
}

/* =========================================
   FAQ section
   ========================================= */
.faq-item {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF9FD 100%);
  border: 1px solid #E7E6EF;
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item:hover {
  border-color: rgba(104, 87, 217, .35);
  box-shadow: 0 18px 40px -22px rgba(104, 87, 217, .35);
}

.faq-item[open] {
  border-color: rgba(104, 87, 217, .45);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F8FE 100%);
  box-shadow: 0 22px 50px -22px rgba(104, 87, 217, .35);
}

.faq-item > summary {
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  outline: none;
  border-radius: 18px;
  transition: background .25s ease;
}

.faq-summary:hover .faq-q {
  color: #31388D;
}

.faq-summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(104, 87, 217, .35);
}

.faq-q {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: #121D3A;
  transition: color .25s ease;
}

.faq-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: #6857D9;
  background: rgba(104, 87, 217, .08);
  border: 1px solid rgba(104, 87, 217, .22);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.faq-item[open] .faq-num,
.faq-item:hover .faq-num {
  background: #6857D9;
  color: #FFFFFF;
  transform: rotate(-6deg) scale(1.06);
}

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(104, 87, 217, .08);
  border: 1px solid rgba(104, 87, 217, .22);
  color: #6857D9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .25s ease, color .25s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: #6857D9;
  color: #FFFFFF;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1);
}

.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer {
  padding: 0 22px 22px 68px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #4D4B5C;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease .05s, transform .35s ease .05s;
}

.faq-item[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .faq-answer {
    padding-left: 22px;
  }
}

.faq-cta-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, #6857D9 0%, #31388D 100%);
  color: #FFFFFF;
  padding: 28px 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(104, 87, 217, .55);
}

.faq-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(184, 192, 244, .35), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(207, 79, 39, .25), transparent 60%);
  pointer-events: none;
}
