/* Shared Infinity brand layer. Official artwork is displayed unmodified.
   Purple leads; green communicates activity, progress and supporting highlights. */
body {
  background: radial-gradient(ellipse 65% 600px at 0 0, #8b5cf614, transparent 75%),
    radial-gradient(ellipse 40% 500px at 100% 320px, #2dd4a809, transparent 75%), var(--bg);
}
h1, h2, h3 { font-weight: 650; letter-spacing: -.045em; }
h1 { line-height: 1.08; }
.home-hero h1 em, .login-copy h1 em {
  font: inherit; font-style: normal; letter-spacing: inherit;
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent), var(--green));
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { font-weight: 700; letter-spacing: -.025em; }
.brand-logo { filter: drop-shadow(0 3px 8px #8b5cf63b); transition: transform .3s, filter .3s; }
.brand:hover .brand-logo { transform: translateY(-2px) rotate(-5deg); filter: drop-shadow(0 4px 12px #8b5cf66b); }
.brand small { color: var(--muted); font-size: 9px; }
.btn, .primary, .actions button.accent {
  color: #fff; border-color: #9f77eb66;
  background: linear-gradient(110deg, #7330d9, #8847d1);
  border-radius: 9px; box-shadow: 0 6px 24px #7c3aed26;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover, .primary:hover, .actions button.accent:hover {
  border-color: #c4a6ff; box-shadow: 0 8px 30px #7c3aed45; transform: translateY(-2px);
}
.btn.secondary, .secondary, .actions button:not(.accent) {
  color: var(--text); background: color-mix(in srgb, var(--panel) 75%, transparent);
  border-color: var(--line); box-shadow: none; border-radius: 9px;
}
.btn.secondary:hover, .secondary:hover, .actions button:not(.accent):hover { border-color: var(--accent); }
.status-dot { background: var(--green); box-shadow: 0 0 12px color-mix(in srgb, var(--green) 35%, transparent); }
.hero-tags { font-size: 11px; }
.hero-tags span:before, .check-list li:before, .accent-text, .member-status { color: var(--green); }
.eyebrow, .step-label { font-size: 11px; }
.feature-card, .plan, .store-teaser, .login-card, .store-hero, .card,
.cart-panel, .account-summary, .form, .sales-panel, .platform-panel { border-radius: 14px; }
.feature-card, .plan, .card, .cart-panel {
  background: linear-gradient(140deg, #8b5cf606, transparent 65%), var(--panel);
}
.feature-card { transition: transform .25s, border-color .25s; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-symbol { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.feature-card.light-panel {
  background: radial-gradient(ellipse at 100% 0, #8b5cf61f, transparent 70%), var(--panel2);
}
.feature-brand-logo { opacity: .15; right: 18px; bottom: -28px; }
.plan.featured { border-color: var(--purple); box-shadow: 0 0 0 1px #8b5cf626, 0 15px 50px #7c3aed14; }
.plan-badge { background: #7330d9; color: #fff; border-radius: 6px; padding: 6px 10px; }
.price b { font-weight: 650; }
.billing-toggle { border-radius: 10px; }
.billing-toggle button { border-radius: 6px; }
.billing-toggle button[aria-pressed=true] { background: #7330d9; color: #fff; }
.billing-toggle button[aria-pressed=true] span { color: #dfffe8; }
.billing-toggle span { color: var(--green); }
.risk-notice { border-radius: 8px; font-size: 12px; }
.round-arrow { color: var(--green); flex-shrink: 0; }
dialog { border-radius: 16px; background: linear-gradient(135deg, #8b5cf609, transparent), var(--panel); }
dialog::backdrop { background: #090514bf; }
/* The preview remains explicitly demo data, inside a branded client shell. */
.product-preview {
  background: #141021; border: 1px solid #6e499866; color: #f4f1ff;
  transform: none; border-radius: 16px; box-shadow: 0 25px 70px #05020e66, 0 0 45px #8b5cf610;
  animation: preview-enter .85s ease-out both;
}
.preview-bar, .preview-sidebar, .session-row, .preview-caption { border-color: #3c2c54; }
.preview-bar { background: linear-gradient(100deg, #241936, #171324); border-radius: 16px 16px 0 0; }
.mini-brand img { object-fit: contain; filter: drop-shadow(0 3px 7px #7c3aed55); animation: logo-float 6s ease-in-out infinite; }
.mini-brand b { color: #ede7ff; font-size: 12px; font-weight: 600; }
.demo-label { color: #cbb5ff; background: #1c132c; border-color: #775ba2; border-radius: 5px; }
.preview-sidebar { color: #ac9ac6; }
.preview-sidebar span.selected { color: #b8a0f9; }
.preview-heading small, .preview-metrics small { color: #b3a4c9; font-size: 9px; }
.preview-heading h2 { font-size: 17px; margin: 8px 0 18px; letter-spacing: -.03em; }
.preview-heading .pill { color: #60e2b9; border-color: #347b65; background: #1c332c; }
.scene { border-color: #503c68; border-radius: 8px; }
.scene-tag { display: inline-flex; align-items: center; gap: 6px; color: #f0e9ff; background: #171022e6; border: 1px solid #795798; white-space: nowrap; }
.scene-tag .skill-icon { display: inline-block; width: 22px; height: 22px; }
.preview-metrics .accent-text { color: #60e2b9; }
.session-row { color: #b3a4c9; font-size: 9px; }
.session-row .text-button { color: #60e2b9; font-size: 10px; }
.preview-caption { color: #b3a4c9; font-size: 9px; }
.timeline i { position: relative; background: linear-gradient(90deg, var(--purple), var(--green)); height: 2px; }
.timeline i:after { content: ''; width: 5px; height: 5px; background: var(--green); position: absolute; right: 0; top: -1.5px; border-radius: 50%; }
/* Official logo showcase, not a replacement/generated brand mark. */
.brand-orb {
  position: relative; display: grid; place-items: center; min-height: 310px;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 40%, #8b5cf638, transparent 65%),
    radial-gradient(ellipse at 90% 90%, #2dd4a81f, transparent 60%), #100c1c;
}
.brand-orb:before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(#ae83ea0c 1px, transparent 1px), linear-gradient(90deg, #ae83ea0c 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(ellipse, #000, transparent 75%);
}
.login-art .hero-brand-logo { width: 190px; height: 190px; object-fit: contain; max-height: none; }
.hero-brand-logo, .home-mascot {
  animation: logo-float 6s ease-in-out infinite; filter: drop-shadow(0 15px 26px #7c3aed55);
}
.logo-orbit { position: absolute; width: 260px; height: 260px; border: 1px solid #a07bd033; border-radius: 50%; animation: orbit-turn 28s linear infinite; }
.logo-orbit:before, .logo-orbit:after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #4bddae; top: 25px; left: 42px; box-shadow: 0 0 15px #4bddae77; }
.logo-orbit:after { background: #ba95ff; top: auto; left: auto; bottom: 25px; right: 42px; box-shadow: 0 0 15px #8b5cf677; }
.orb-caption { position: absolute; bottom: 22px; color: #bcacd0; font: 9px ui-monospace, monospace; letter-spacing: .16em; }
.login-copy h1 { font-weight: 700; }
.login-card-copy .eyebrow { font-size: 10px; }
.home-mascot { width: 210px; height: 210px; object-fit: contain; }
/* SDN chrome and script cards use the same core palette as the website. */
#nav button.active { background: var(--panel2); border-color: var(--purple); color: var(--accent); }
#cartButton, .profile-trigger, .theme-switcher { border-radius: 9px; }
#cartButton i, nav i { background: #7330d9; color: #fff; }
.store-hero { gap: 0; background: radial-gradient(ellipse at 0 0, #8b5cf611, transparent 70%), var(--panel); }
.hero-visual { background: radial-gradient(ellipse at 50% 30%, #8b5cf62e, transparent 75%), #110d20; min-height: 295px; padding: 24px; }
.hero-visual:before { background: url('/assets/infinity-logo.png') center 8px / 176px 176px no-repeat; opacity: 1; animation: logo-float 6s ease-in-out infinite; }
.store-metrics { background: #191126eb; border-color: #70509a77; border-radius: 10px; color: #f4f1ff; }
.store-metrics span { color: #c0add7; font-size: 9px; }
.store-metrics b { font-weight: 650; }
.store-quick button { display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; font-size: 11px; }
.store-search { border-radius: 10px; }
.store-filters select { border-radius: 7px; }
.card:hover { border-color: #8b5cf6aa; box-shadow: 0 14px 35px #7c3aed16; }
.script-art { height: 175px; background: radial-gradient(ellipse at 65% 70%, var(--art-glow, #6b37ab), transparent 70%), #171023; color: #eee7ff; }
.script-art:before { background-image: linear-gradient(#c4a6ff0b 1px, transparent 1px), linear-gradient(90deg, #c4a6ff0b 1px, transparent 1px); }
.script-art .art-orbit { border-color: #b384fa44; transform: none; width: 108px; height: 108px; }
.script-art .artifact { display: grid; place-items: center; width: 80px; height: 80px; background: linear-gradient(135deg, #8b5cf622, #100b1a99); border: 1px solid #aa82dc44; border-radius: 23px; box-shadow: 0 10px 24px #08041166; }
.script-art .art-index { color: #c4afd9; }
.card-brand-logo { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; object-fit: contain; opacity: .85; }
.script-art .demo-label { font-size: 8px; }
.skill-icon { display: inline-block; width: 22px; height: 22px; object-fit: contain; image-rendering: auto; flex-shrink: 0; vertical-align: middle; }
.skill-icon--hero { width: 48px; height: 48px; filter: drop-shadow(0 3px 3px #0006); }
.skill-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.skill-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 5px 8px; background: var(--panel2); color: var(--text); border-radius: 6px; font-size: 10px; line-height: 1.4; font-style: normal; }
.skill-chip .skill-icon { width: 20px; height: 20px; }
.card .meta { align-items: start; gap: 8px; margin-bottom: 17px; }
.card .meta .pill { white-space: nowrap; flex-shrink: 0; font-size: 9px; }
.card .meta .skill-chips { flex: 1; }
.card h3 { font-weight: 650; font-size: 22px; }
.card p { font-size: 13px; }
.card-author { font-size: 11px; }
.pill.free, .pill.published, .pill.succeeded { color: var(--green); }
.thumb-brand-logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 16px #7c3aed44); }
.thumb-skills i { display: inline-flex; align-items: center; gap: 5px; color: #f4f1ff; background: #170e28e6; }
.thumb-skills .skill-icon { width: 20px; height: 20px; }
.price-badge { color: #e1ceff; background: #221438e6; border-color: #7e5aaa; border-radius: 6px; }
.detail-hero { background-color: #181025; border-radius: 10px; color: #f4f1ff; }
.detail-hero p { color: #ccbedf; }
.detail-hero .pill { color: #dec8ff; background: #211235; border-color: #72518f; }
.detail-hero .skill-chip { background: #211235; color: #f4f1ff; border-color: #72518f; }
.cart-thumb { border-radius: 9px; }
.cart-thumb .skill-icon { width: 28px; height: 28px; }
.success-mark { color: var(--green); border-color: var(--green); }
html[data-theme=light] .brand-orb { background: radial-gradient(ellipse, #8b5cf626, transparent 70%), #eee8fb; }
html[data-theme=light] .orb-caption { color: #635771; }
html[data-theme=light] .hero-visual { background: radial-gradient(ellipse at 50% 30%, #8b5cf62e, transparent 75%), #eee8fb; }
/* Motion is purposeful, finite where possible, and never required for operation. */
.home-hero .hero-copy, .login-copy { animation: content-enter .7s ease-out both; }
.feature-card, .plan, .store-teaser, .card { animation: content-enter .55s ease-out backwards; }
.card:nth-child(3n+2) { animation-delay: .06s; }
.card:nth-child(3n+3) { animation-delay: .12s; }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes content-enter { from { transform: translateY(12px); } to { transform: translateY(0); } }
@keyframes preview-enter { from { transform: translateY(16px); } to { transform: translateY(0); } }
@media (max-width: 1100px) {
  .home-hero { grid-template-columns: 1fr 1fr; }
  .home-hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
  .hero-tags { font-size: 10px; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .brand-logo { width: 42px; height: 42px; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: clamp(42px, 11vw, 62px); }
  .login-copy h1 { font-size: clamp(44px, 12vw, 66px); }
  .hero-tags { font-size: 10px; gap: 12px; }
  .brand-orb { min-height: 285px; }
  .login-art .hero-brand-logo { width: 165px; height: 165px; }
  .logo-orbit { width: 230px; height: 230px; }
  .hero-visual { min-height: 285px; }
  .script-art { height: 175px; }
  .card .meta { gap: 8px; }
  .feature-brand-logo { width: 130px; height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
html.motion-paused *, html.motion-paused *:before, html.motion-paused *:after { animation: none !important; }
html.motion-page-hidden .hero-brand-logo, html.motion-page-hidden .home-mascot,
html.motion-page-hidden .mini-brand img, html.motion-page-hidden .logo-orbit,
html.motion-page-hidden .hero-visual:before { animation-play-state: paused !important; }
.motion-control { background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 11px; min-height: 32px; }

/* Compact Infinity branding throughout the SDN. */
.brand-logo { width: 38px; height: 38px; }
.footer-inner .brand-logo { width: 32px; height: 32px; }
.login-art .hero-brand-logo { width: 150px; height: 150px; }
.home-mascot { width: 168px; height: 168px; }
.thumb-brand-logo { width: 68px; height: 68px; }
.download-logo { width: 144px; height: 144px; object-fit: contain; }
.cart-brand-logo { width: 44px; height: 44px; }
@media (max-width: 700px) {
  .brand-logo { width: 34px; height: 34px; }
  .login-art .hero-brand-logo { width: 132px; height: 132px; }
}
