/* affilioto.com — dark titanium theme, logo green accent. Spacing: 2 4 8 12 16 24 32 40 48 64 80 96. */
:root {
  --bg: #000000; --s1: #181818; --s2: #1F1F1F; --s3: #272727; --line: #313131; --deep: #0b0b0b;
  --text: #ffffff; --muted: #9B9B9B; --soft: #d4d4d4; --faint: #666666;
  --accent: #22D07A;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: #000; font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }

/* Type styles */
.h1 { font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; max-width: 680px; }
.h2 { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; max-width: 680px; }
.h3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.h5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.h6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.lead { max-width: 680px; font-size: 20px; line-height: 28px; color: var(--muted); }
.sub { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--muted); }
.grad { background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow, .eyebrow-muted { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow-muted { color: var(--faint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 16px; }
.btn-lg { font-size: 16px; line-height: 24px; padding: 12px 24px; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #4ade94; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.link-plain { font-size: 16px; line-height: 24px; font-weight: 600; padding: 12px 8px; transition: color .3s var(--ease); }
.link-plain:hover { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Nav */
.nav-wrap { position: sticky; top: 16px; z-index: 30; display: flex; justify-content: center; padding: 0 16px; }
.nav { display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(24,24,24,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
.nav-logo img { display: block; height: 24px; width: auto; }
.nav-links { display: flex; gap: 24px; font-size: 14px; line-height: 20px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 14px; line-height: 20px; font-weight: 600; padding: 8px 12px; }
.nav-login-mobile { display: none; }
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--s2); cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.badge span { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #000; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { color: var(--accent); flex: none; }
.hero-art { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.net { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nodes circle { fill: var(--s2); stroke: var(--line); }
.nodes text { font-family: var(--font); }
.net-mark { position: absolute; left: 50%; top: 50%; width: 64px; height: auto; transform: translate(-50%, -50%); }
.chip { position: absolute; padding: 8px 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); font-size: 12px; line-height: 16px; white-space: nowrap; display: flex; flex-direction: column; }
.chip span { color: var(--muted); }
.chip b { font-family: var(--mono); font-weight: 500; color: var(--accent); }
.chip b.white { color: var(--text); }
.c1 { left: 58%; top: 16%; } .c2 { left: 2%; top: 52%; animation-delay: 2s; } .c3 { left: 54%; top: 78%; animation-delay: 4s; }

/* Strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 40px; padding: 24px; margin-bottom: 64px; border-radius: 24px; background: var(--deep); border: 1px solid var(--s2); font-size: 14px; line-height: 20px; color: var(--muted); }

/* Tagline */
.tagline { padding-top: 96px; padding-bottom: 96px; }
.tagline-text { margin: 0 auto; max-width: 900px; font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.tagline-text .w { opacity: .3; transition: opacity .6s var(--ease); }
.tagline-text .w.on { opacity: 1; }
.tagline-text .accent { color: var(--accent); }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-sm { padding-top: 64px; padding-bottom: 64px; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* Feature cards */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; padding: 32px; border-radius: 24px; background: var(--s1); border: 1px solid var(--s3); display: flex; flex-direction: column; gap: 16px; transition: transform .5s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card p { font-size: 16px; line-height: 24px; color: var(--muted); }
.card-wide { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px; }
.card-copy { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.viz { border-radius: 16px; background: var(--deep); border: 1px solid var(--s3); overflow: hidden; }
.viz-track { flex: 1 1 260px; height: 160px; } .viz-track svg { width: 100%; height: 100%; }
.viz-bars { height: 96px; display: flex; align-items: flex-end; gap: 8px; padding: 12px; }
.viz-bars i { flex: 1; border-radius: 4px; background: var(--line); }
.viz-bars .b1 { height: 40%; } .viz-bars .b2 { height: 60%; animation-delay: .2s; } .viz-bars .b3 { height: 75%; animation-delay: .4s; } .viz-bars .b4 { height: 100%; background: var(--accent); animation-delay: .6s; }
.viz-list { display: flex; flex-direction: column; gap: 8px; padding: 12px; font-size: 12px; line-height: 16px; }
.viz-list div { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 8px; background: var(--s2); }
.viz-list b { font-weight: 500; color: var(--accent); }
.viz-list .d1 { animation-delay: .5s; } .viz-list .d2 { animation-delay: 1s; }
.viz-chart { height: 96px; } .viz-chart svg { width: 100%; height: 100%; }
.viz-coupon { display: flex; align-items: center; gap: 8px; padding: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.viz-coupon .code { padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--accent); font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--accent); }
.viz-chat { display: flex; flex-direction: column; gap: 8px; padding: 12px; font-size: 12px; line-height: 16px; }
.viz-chat .msg { align-self: flex-start; padding: 4px 12px; border-radius: 12px; background: var(--s2); color: var(--muted); }
.viz-chat .me { align-self: flex-end; background: var(--accent); color: #000; }
.viz-roles { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; font-size: 12px; line-height: 16px; }
.viz-roles span { padding: 4px 12px; border-radius: 999px; background: var(--s2); }
.viz-roles .on { background: transparent; border: 1px solid var(--accent); color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 32px; border-radius: 24px; border: 1px solid var(--s3); display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--accent); }
.steps p { font-size: 16px; line-height: 24px; color: var(--muted); }

/* Partners */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 48px; border-radius: 32px; background: var(--s1); border: 1px solid var(--s3); }
.partners-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.partners-copy p { font-size: 16px; line-height: 24px; color: var(--muted); }
.partners-copy .btn { align-self: flex-start; }
.partners-art { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px; border-radius: 16px; background: var(--deep); border: 1px solid var(--s3); display: flex; flex-direction: column; font-size: 12px; line-height: 16px; color: var(--muted); }
.tile b { font-family: var(--mono); font-size: 24px; line-height: 32px; font-weight: 500; color: var(--text); }
.tile b.accent { color: var(--accent); }
.tile-wide { grid-column: span 2; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text); }
.line { display: flex; justify-content: space-between; gap: 12px; }
.line em { font-style: normal; color: var(--accent); }
.line.muted { color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.bar i { display: block; width: 82%; height: 100%; background: var(--accent); }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); }
.toggle button { border: 0; padding: 8px 16px; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px/20px var(--font); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.toggle button[aria-pressed="true"] { background: var(--text); color: #000; }
.toggle .save { color: var(--accent); }
.toggle button[aria-pressed="true"] .save { color: #0a7a42; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plans-fallback { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.plans-fallback a { color: var(--accent); }
.plan { position: relative; padding: 32px; border-radius: 24px; background: var(--s1); border: 1px solid var(--s3); display: flex; flex-direction: column; gap: 24px; transition: transform .5s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan.popular { background: var(--s2); border-color: var(--accent); }
.plan .tag { position: absolute; top: -12px; left: 32px; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #000; font-size: 12px; line-height: 16px; font-weight: 600; }
.plan .desc { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 48px; line-height: 1; font-weight: 600; }
.price span { font-size: 14px; line-height: 20px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; color: var(--soft); flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* FAQ */
.faq { max-width: 880px; gap: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: 16px; background: var(--s1); border: 1px solid var(--s3); transition: border-color .3s var(--ease); }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; font-size: 16px; line-height: 24px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 24px; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 16px; font-size: 16px; line-height: 24px; color: var(--muted); }

/* Final CTA */
.final { position: relative; overflow: hidden; padding: 80px 32px; border-radius: 32px; background: var(--deep); border: 1px solid var(--s3); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final > *:not(.final-ring) { position: relative; }
.final-ring { position: absolute; top: 50%; left: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; opacity: .5; }

/* Footer */
.footer { border-top: 1px solid var(--s2); }
.footer-inner { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 20px; color: var(--muted); }
.footer-cols { flex: 2 1 520px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 14px; line-height: 20px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols span { font-weight: 600; }
.footer-cols a { color: var(--muted); transition: color .3s var(--ease); }
.footer-cols a:hover { color: var(--text); }
.wordmark { font-size: 128px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; text-align: center; white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--s2); font-size: 12px; line-height: 16px; color: var(--faint); }

/* Motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(16px); } 15%, 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-24px); } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes grow { 0%, 10% { transform: scaleY(.15); } 45%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
@keyframes blink { 0%, 20% { opacity: 0; transform: translateX(-8px); } 35%, 85% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.spin { animation: spin 60s linear infinite; transform-origin: center; transform-box: fill-box; }
.spinr { animation: spinr 40s linear infinite; transform-origin: center; transform-box: fill-box; }
.rise { animation: rise 6s var(--ease) infinite both; }
.pulse { animation: pulse 2.4s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
.grow { animation: grow 3.2s var(--ease) infinite; transform-origin: bottom; }
.blink { animation: blink 4.5s var(--ease) infinite both; }
.enter { animation: enter .8s var(--ease) both; }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet and phone */
@media (max-width: 960px) {
  .bento, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h1 { font-size: 60px; } .tagline-text { font-size: 48px; } .wordmark { font-size: 96px; }
}
@media (max-width: 720px) {
  .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .menu-btn { display: block; }
  .menu-open .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--s1); }
  .menu-open .nav-links { display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; gap: 24px; padding: 96px 24px 24px; background: rgba(0,0,0,.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); font-size: 24px; line-height: 32px; }
  .menu-open .nav-links a { color: var(--text); animation: enter .4s var(--ease) both; }
  .menu-open .nav-links a:nth-child(2) { animation-delay: 60ms; } .menu-open .nav-links a:nth-child(3) { animation-delay: 120ms; }
  .menu-open .nav-links a:nth-child(4) { animation-delay: 180ms; } .menu-open .nav-links a:nth-child(5) { animation-delay: 240ms; }
  .nav-login-mobile { display: block; }
  .hero { padding-top: 64px; }
  .h1 { font-size: 48px; } .h2 { font-size: 36px; line-height: 40px; } .h3 { font-size: 30px; line-height: 36px; }
  .tagline-text { font-size: 36px; line-height: 40px; } .wordmark { font-size: 60px; }
  .bento, .steps { grid-template-columns: minmax(0, 1fr); }
  .card-wide { grid-column: auto; }
  .partners { padding: 32px 24px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: opacity .3s linear !important; }
  .js .reveal { transform: none; }
  .tagline-text .w { opacity: 1; }
  .dots { display: none; }
}

/* 404 */
.notfound { min-height: 100vh; justify-content: center; align-items: flex-start; }
