/* Character.AI-adjacent look: zinc dark, rounded panels, white pill buttons, character card rows. */
:root {
  --bg:#18181b; --panel:#202024; --card:#26272b; --card-2:#303136; --line:#303136; --text:#fafafa; --muted:#a2a2ac; --faint:#71717a;
  --accent:#587eff; --accent-2:#8fa8ff; --r-lg:32px; --r:20px;
  --sans:"Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.6 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; }
img { display:block; max-width:100%; }
.wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
.narrow { max-width:960px; }

/* Floating pill nav */
.nav { position:sticky; top:14px; z-index:10; display:flex; justify-content:center; margin:14px 16px 0; }
.nav-inner { display:flex; align-items:center; gap:4px; background:rgba(32,32,36,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid var(--line); border-radius:999px; padding:6px 6px 6px 14px; max-width:100%; }
.nav .brand { display:flex; align-items:center; gap:8px; font-weight:600; text-decoration:none; margin-right:10px; white-space:nowrap; }
.nav a.link { color:var(--muted); text-decoration:none; font-size:14px; padding:8px 12px; border-radius:999px; white-space:nowrap; }
.nav a.link:hover { color:var(--text); background:var(--card); }
.nav .pill-cta { background:var(--text); color:var(--bg); text-decoration:none; font-weight:600; font-size:14px; padding:8px 16px; border-radius:999px; white-space:nowrap; margin-left:6px; }

/* Type */
h1 { font-size:clamp(34px,4.4vw,52px); line-height:1.08; letter-spacing:-.025em; font-weight:600; margin:0 0 14px; }
h2 { font-size:clamp(24px,2.6vw,30px); line-height:1.2; letter-spacing:-.015em; font-weight:600; margin:0 0 16px; }
h3 { font-size:17px; font-weight:600; margin:24px 0 6px; }
p { margin:0 0 14px; }
.lede { color:var(--muted); font-size:18px; line-height:1.5; margin:0 0 24px; }
.fine, .updated { color:var(--faint); font-size:13px; }
.fine { margin-top:14px; }
.updated { display:block; margin:0 0 14px; }

/* Buttons */
.ctas { display:flex; flex-direction:column; gap:12px; }
.cta { display:flex; align-items:center; justify-content:center; gap:10px; background:var(--text); color:#18181b; text-decoration:none; font-weight:600; font-size:15px; padding:14px 22px; border-radius:14px; border:1px solid var(--text); }
.cta.ghost { background:transparent; color:var(--text); border-color:#4a4b52; }
.cta:hover { filter:brightness(.92); }
.cta svg { width:18px; height:18px; flex:none; }

/* Hero: export card overlapping a rounded character mosaic, like Character.AI's sign-in screen */
.hero { position:relative; display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); align-items:center; padding:64px 0 40px; }
.hero-card { grid-column:1 / span 5; grid-row:1; position:relative; z-index:2; background:var(--card); border-radius:28px; padding:36px 32px 28px; text-align:center; box-shadow:0 30px 80px rgba(0,0,0,.45); }
.hero-card h1 { font-size:clamp(30px,3.2vw,42px); }
.hero-card .lede { font-size:17px; margin-bottom:24px; }
.hero-art { grid-column:4 / span 9; grid-row:1; position:relative; border-radius:var(--r-lg); overflow:hidden; aspect-ratio:16/10; background:var(--panel); }
.mosaic { position:absolute; inset:-8%; display:grid; grid-template-columns:repeat(6,1fr); gap:10px; transform:rotate(-6deg); }
.mosaic img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:18px; background:var(--card); }
.hero-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(24,24,27,.9) 0%, rgba(24,24,27,.2) 40%, rgba(24,24,27,.05) 100%); }
.hero-art .shot { position:absolute; z-index:1; right:5%; bottom:7%; width:52%; border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.08); }

/* Feature icons row */
.icons { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 40px; padding:40px 0 56px; text-align:center; }
.icons div { width:104px; color:var(--muted); font-size:14px; }
.icons svg { width:28px; height:28px; margin:0 auto 10px; display:block; color:var(--text); }

/* Rows of character cards, like Character.AI's "For you" */
.row-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:0 0 14px; }
.row-head h2 { margin:0; font-size:22px; }
.row-head span { color:var(--faint); font-size:13px; }
.chars { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(300px,1fr); gap:12px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.char { scroll-snap-align:start; display:flex; gap:14px; background:var(--card); border-radius:var(--r); padding:14px; text-decoration:none; color:var(--text); min-height:148px; }
.char:hover { background:var(--card-2); }
.char img { width:88px; height:120px; object-fit:cover; border-radius:14px; flex:none; background:var(--card-2); }
.char b { display:block; font-size:16px; line-height:1.3; }
.char .by { color:var(--muted); font-size:13px; }
.char .tag { font-size:14px; margin:6px 0 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.char .count { color:var(--muted); font-size:13px; margin-top:8px; display:flex; align-items:center; gap:6px; }
.char .count svg { width:14px; height:14px; }

/* Sections */
section { padding:56px 0; }
.panel { background:var(--panel); border-radius:var(--r-lg); padding:40px; }
.steps-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.step { background:var(--card); border-radius:var(--r); overflow:hidden; }
.step img { width:100%; aspect-ratio:16/10; object-fit:cover; object-position:right bottom; }
.step div { padding:18px 20px 22px; }
.step b { display:block; font-size:16px; margin-bottom:4px; }
.step p { color:var(--muted); font-size:14px; margin:0; }
.step .n { display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--text); color:#18181b; font-size:13px; font-weight:700; margin-bottom:10px; }

ol.steps { padding-left:22px; } ol.steps li { margin:10px 0; }
ul.ticks { padding-left:20px; } ul.ticks li { margin:8px 0; }
.timeline { list-style:none; padding:0; }
.timeline li { background:var(--card); border-radius:16px; padding:16px 20px; margin:0 0 10px; }
.timeline time { display:block; color:var(--muted); font-size:13px; margin-bottom:2px; }

.feature { background:linear-gradient(135deg,#232a45 0%, var(--card) 60%); border-radius:var(--r-lg); padding:36px; }
.badge { display:inline-block; font-size:12px; font-weight:600; color:#fff; background:var(--accent); border-radius:6px; padding:2px 8px; margin-bottom:14px; }

table { width:100%; border-collapse:collapse; font-size:15px; }
th, td { text-align:left; padding:12px 10px 12px 0; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:500; }
td:first-child { color:var(--muted); }

details { background:var(--card); border-radius:16px; padding:16px 20px; margin:0 0 10px; }
summary { cursor:pointer; font-weight:500; list-style:none; display:flex; justify-content:space-between; gap:16px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; color:var(--muted); font-size:20px; line-height:1; }
details[open] summary::after { content:"−"; }
details p { color:var(--muted); margin:10px 0 0; }

code { background:var(--card-2); padding:1px 6px; border-radius:6px; font-size:.9em; }

/* Inner pages */
.page-head { padding:56px 0 24px; max-width:760px; }
.page-head .ctas { flex-direction:row; flex-wrap:wrap; }

footer { margin-top:24px; padding:32px 0 48px; color:var(--faint); font-size:13px; border-top:1px solid var(--line); }
footer p { margin:0 0 8px; max-width:760px; }
footer a { color:var(--muted); margin-right:16px; }

@media (max-width:900px) {
  .hero { display:flex; flex-direction:column-reverse; padding:28px 0 8px; }
  .hero-card { margin:-72px 12px 0; padding:28px 22px 22px; }
  .hero-art { width:100%; aspect-ratio:4/3; border-radius:24px; }
  .hero-art .shot { display:none; }
  .hero-art::after { background:linear-gradient(0deg, rgba(24,24,27,.9) 0%, rgba(24,24,27,.1) 55%); }
  .steps-grid { grid-template-columns:1fr; }
  .panel, .feature { padding:24px 20px; border-radius:24px; }
  .chars { grid-auto-columns:86%; }
  .nav a.link { display:none; }
  .icons { gap:20px 8px; padding:24px 0 32px; }
  .icons div { width:30%; }
  .row-head span { display:none; }
  section { padding:36px 0; }
  .wrap { padding:0 16px; }
}
.feature .ctas, .page-head .ctas { align-items:flex-start; }
