/* home.css — landing + catálogo */
.hero { position: relative; min-height: min(100svh, 960px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .display { max-width: 11ch; }
.hero-copy .display .line { display: block; overflow: hidden; }
.hero-copy .display .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.08s * var(--i, 0) + 0.1s); }
@keyframes rise { to { transform: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 6px; }
.hero-proof div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.hero-proof svg { width: 18px; height: 18px; color: var(--mint); }
.fade-in { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0.5s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.stage { position: relative; height: min(76svh, 720px); min-height: 440px; }
.stage canvas { position: absolute; inset: -10% -20%; width: 140%; height: 120%; }
.stage .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid var(--line); transform: translate(-50%, -50%); pointer-events: none; }
.stage .ring.r1 { width: 78%; aspect-ratio: 1; }
.stage .ring.r2 { width: 104%; aspect-ratio: 1; border-style: dashed; border-color: rgba(150, 235, 255, 0.06); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(6, 12, 18, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite;
}
.float-card .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.float-card .v { font-weight: 700; font-size: 14.5px; }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 230, 255, 0.1); color: var(--cyan); }
.float-card .ic svg { width: 18px; height: 18px; }
.fc-seq { left: 2%; bottom: 14%; animation-delay: -2s; min-width: 250px; }
.fc-seq .v { font-family: var(--font-mono); letter-spacing: 0.08em; color: var(--cyan-2); transition: opacity 0.3s; }
.fc-pure { right: 4%; top: 12%; }
.fc-pure .ic { background: rgba(61, 255, 181, 0.1); color: var(--mint); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); }
.scroll-hint span { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Marquee de confiança */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: rgba(3, 6, 10, 0.5); }
.trust .marquee-track span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.trust .marquee-track span::after { content: '/'; color: var(--ink-3); font-family: var(--font-mono); margin-left: 26px; }

/* Bento de ferramentas */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.bento .card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden; }
.b-calc { grid-column: span 4; grid-row: span 2; }
.b-verify { grid-column: span 2; }
.b-ai { grid-column: span 2; }
.b-stack { grid-column: span 3; }
.b-edu { grid-column: span 3; }
.bento .card h3 { margin-bottom: 8px; }
.bento .card p { color: var(--ink-2); font-size: 15px; max-width: 44ch; }
.bento .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--cyan); }
.bento .go svg { width: 18px; }
.bento .card:hover .go .arrow { transform: translateX(4px); }
.ico-badge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(34, 230, 255, 0.08); border: 1px solid rgba(34, 230, 255, 0.2); color: var(--cyan); margin-bottom: 18px; }
.ico-badge svg { width: 22px; height: 22px; }

.mini-calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
.mini-calc .readout { display: flex; flex-direction: column; gap: 14px; }
.mini-calc .readout .rv { font-family: var(--font-display); font-size: clamp(44px, 6vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.mini-calc .readout .rv small { font-size: 0.34em; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.mini-calc .row-kv { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-syringe { width: 100%; height: auto; }
.mini-syringe .fill { transition: width 1.2s var(--ease); }

.ai-preview { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.ai-preview .q { align-self: flex-end; background: rgba(34, 230, 255, 0.12); border: 1px solid rgba(34, 230, 255, 0.25); color: var(--ink); padding: 8px 12px; border-radius: 14px 14px 4px 14px; max-width: 88%; }
.ai-preview .a { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); padding: 8px 12px; border-radius: 14px 14px 14px 4px; max-width: 92%; min-height: 36px; }
.ai-preview .a .caret { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.qr-anim { position: relative; width: 92px; height: 92px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; background: #fff; }
.qr-anim::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 16px 4px var(--cyan-glow); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 90%; } }

/* Catálogo */
.catalog-bar { position: sticky; top: calc(var(--nav-h) + 20px); z-index: 20; display: flex; flex-direction: column; gap: 14px; padding: 14px; margin: 0 calc(-1 * 14px) 24px; border-radius: 24px; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; border: 1px solid transparent; }
.catalog-bar.stuck { background: rgba(4, 8, 12, 0.86); border-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -24px #000; }
.catalog-bar .top { display: flex; gap: 12px; align-items: center; }
.catalog-bar .search { flex: 1; }
.catalog-bar .select { width: auto; min-width: 190px; min-height: 58px; border-radius: 18px; }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll .pill { flex-shrink: 0; }
.cat-scroll .pill .sw { width: 8px; height: 8px; border-radius: 50%; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--ink-3); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.pcard {
  --c: var(--cyan);
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 22px; min-height: 250px;
  background: linear-gradient(180deg, rgba(160, 235, 255, 0.045), rgba(160, 235, 255, 0.012));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
  animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.pcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 55%); opacity: 0.7; transition: opacity 0.4s; }
.pcard::after { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: 0.55; }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 45%, transparent); }
.pcard:hover::before { opacity: 1; }
.pcard .cat { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.pcard .cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.pcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.pcard .full { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .mech { font-size: 14px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: auto; }
.pcard .spec div { background: rgba(4, 8, 12, 0.85); padding: 10px 12px; }
.pcard .spec .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pcard .spec .v { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .foot .wrap-row { gap: 6px; }
.pcard .open { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: all 0.3s var(--ease); flex-shrink: 0; }
.pcard:hover .open { background: var(--c); color: #021116; border-color: var(--c); transform: rotate(-45deg); }
.pcard .open svg { width: 16px; height: 16px; }
.pcard .stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard .stretch:focus-visible { outline-offset: -2px; }
.pcard mark { background: rgba(34, 230, 255, 0.25); color: #fff; border-radius: 3px; padding: 0 2px; }
.empty { text-align: center; padding: 64px 16px; color: var(--ink-2); }
.empty .h3 { margin-bottom: 8px; color: var(--ink); }

/* Passos */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: s; content: '0' counter(s); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--line-3); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); border: 1px solid var(--line-2);
  background: radial-gradient(800px 400px at 0% 0%, rgba(34, 230, 255, 0.16), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(157, 140, 255, 0.14), transparent 60%), var(--bg-2); }
.cta-band .grid { align-items: center; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 48px); }
  .stage { height: 440px; min-height: 0; margin-top: -10px; order: -1; display: none; }
  .hero-mobile-helix { display: block !important; }
  .b-calc, .b-verify, .b-ai, .b-stack, .b-edu { grid-column: span 6; grid-row: auto; }
  .mini-calc { grid-template-columns: 1fr; }
}
@media (min-width: 1001px) { .hero-mobile-helix { display: none !important; } }
.hero-mobile-helix { position: absolute; inset: 0; z-index: 0; opacity: 0.35; pointer-events: none; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-mobile-helix canvas { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .catalog-bar .top { flex-direction: column; align-items: stretch; }
  .catalog-bar .select { width: 100%; min-height: 50px; }
  .catalog-bar { position: static; padding: 0; margin: 0 0 20px; }
  .catalog-bar.stuck { background: none; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  .search .input { min-height: 52px; }
  .search kbd { display: none; }
  .pgrid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
