/* ==========================================================================
   Gibbur design system
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/bricolage-latin.woff2) format("woff2-variations");
}

:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: #11111c;
  --surface-2: #171726;
  --surface-3: #1f1f33;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f1f0f7;
  --text-2: #c4c3d6;
  --muted: #8d8ca6;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #fb923c;
  --mint: #34f5a5;
  --red: #ff5c7a;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #ec4899 55%, #fb923c 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.14) 55%, rgba(251, 146, 60, 0.12));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 10px 40px -10px rgba(236, 72, 153, 0.55), 0 6px 24px -8px rgba(139, 92, 246, 0.6);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage", "Inter", ui-sans-serif, system-ui, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(236, 72, 153, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* --- Brand ---------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -0.04em; line-height: 1; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(236, 72, 153, 0.7); transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-word { background: linear-gradient(180deg, #fff 30%, #d9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); background-size: 140% 100%; color: #fff; box-shadow: var(--glow); position: relative; isolation: isolate; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 50px -10px rgba(236, 72, 153, 0.75), 0 8px 30px -8px rgba(139, 92, 246, 0.7); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.btn-plain { background: transparent; color: var(--text-2); padding: 0 12px; }
.btn-plain:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-danger { background: rgba(255, 92, 122, 0.12); border-color: rgba(255, 92, 122, 0.35); color: #ff9db0; }
.btn-danger:hover { background: rgba(255, 92, 122, 0.2); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn-xl { --h: 64px; padding: 0 38px; font-size: 19px; }
.btn-block { width: 100%; }

/* --- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: rgba(7, 7, 13, 0.6); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 7, 13, 0.82); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.online-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(52, 245, 165, 0.08); border: 1px solid rgba(52, 245, 165, 0.2); color: #a7fbd8; font-size: 13px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52, 245, 165, 0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 245, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 245, 165, 0); } }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary span { padding-right: 8px; font-size: 14px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.dropdown a, .dropdown button { display: flex; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 24px; background: rgba(9, 9, 16, 0.98); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.2s ease; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .header-actions .online-pill, .header-actions .hide-mobile { display: none; }
}

/* --- Ambient background ---------------------------------------------------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora::before, .aurora::after, .aurora span { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.aurora::before { width: 620px; height: 620px; left: -160px; top: -220px; background: radial-gradient(circle, #6d3bff 0%, transparent 70%); animation: float1 18s ease-in-out infinite; }
.aurora::after { width: 560px; height: 560px; right: -140px; top: -120px; background: radial-gradient(circle, #ec4899 0%, transparent 70%); animation: float2 22s ease-in-out infinite; }
.aurora span { width: 480px; height: 480px; left: 40%; top: 260px; background: radial-gradient(circle, rgba(251, 146, 60, 0.7) 0%, transparent 70%); opacity: 0.25; animation: float1 26s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(60px, 40px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-50px, 60px) scale(0.95); } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.badge b { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 22px 0 22px; letter-spacing: -0.045em; line-height: 0.98; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 540px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--mint); }
.cta-pulse { position: relative; }
.cta-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(236, 72, 153, 0.5); animation: ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: 1; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.12, 1.3); } }

/* Chat preview mock */
.preview { position: relative; }
.preview-card { position: relative; border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(28, 26, 46, 0.9), rgba(15, 15, 26, 0.92)); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(139, 92, 246, 0.6), var(--shadow); overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.preview:hover .preview-card { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.preview-who { display: flex; align-items: center; gap: 12px; }
.preview-who .avatar { width: 38px; height: 38px; font-size: 15px; background: linear-gradient(135deg, #34f5a5, #3b82f6); }
.preview-who strong { display: block; font-size: 15px; }
.preview-who small { color: var(--mint); font-size: 12.5px; }
.preview-tags { display: flex; gap: 6px; }
.preview-body { padding: 22px 20px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; animation: pop 0.5s cubic-bezier(.34, 1.56, .64, 1) both; }
.bubble.them { background: var(--surface-3); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble.sys { align-self: center; background: none; color: var(--muted); font-size: 13px; padding: 4px; }
.preview-body .bubble:nth-child(2) { animation-delay: 0.3s; }
.preview-body .bubble:nth-child(3) { animation-delay: 0.9s; }
.preview-body .bubble:nth-child(4) { animation-delay: 1.5s; }
.preview-body .bubble:nth-child(5) { animation-delay: 2.1s; }
.preview-body .typing { animation-delay: 2.7s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--surface-3); border-radius: 20px; border-bottom-left-radius: 6px; align-self: flex-start; animation: pop 0.5s both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.preview-input { display: flex; gap: 10px; padding: 14px 16px 18px; }
.preview-input div { flex: 1; height: 46px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 18px; color: var(--muted); font-size: 14px; }
.preview-input span { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.preview-input svg { width: 20px; height: 20px; color: #fff; }
.floating { position: absolute; padding: 10px 14px; border-radius: 14px; background: rgba(23, 23, 38, 0.92); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite; }
.floating { z-index: 3; }
.floating.f1 { left: -40px; top: -22px; }
.floating.f2 { right: -24px; bottom: -22px; animation-delay: -3s; }
.floating .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero { padding: 44px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .preview-card { transform: none; }
  .floating.f1 { left: -6px; top: -18px; }
  .floating.f2 { right: -6px; }
}

/* --- Chips ----------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chip.is-on, button.chip[aria-pressed="true"] { background: var(--grad-soft); border-color: rgba(236, 72, 153, 0.5); color: #fff; }
button.chip { cursor: pointer; transition: 0.15s; }
button.chip:hover { border-color: rgba(255, 255, 255, 0.25); color: var(--text); }
.chip-x { border: 0; background: none; padding: 0; margin-right: -4px; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.chip-x:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 60s; }
.marquee + .marquee { margin-top: 10px; }
.marquee .chip { height: 40px; padding: 0 18px; font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Sections -------------------------------------------------------------- */
.section { padding: 112px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.section-head h2, .h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.04em; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--text-2); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 800; font-size: 15px; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, 0.3); margin-bottom: 22px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 22px; margin: 18px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); }
.card .icon svg { width: 24px; height: 24px; }
.card.span-2 { grid-column: span 2; }
.card.span-3 { grid-column: span 3; }
.card.span-4 { grid-column: span 4; }
.card.glow::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; bottom: -140px; background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%); filter: blur(30px); }
.icon.violet { color: #b59cff; } .icon.pink { color: #ff8cc6; } .icon.orange { color: #ffbb80; } .icon.mint { color: var(--mint); } .icon.blue { color: #7cb6ff; } .icon.amber { color: var(--amber); }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .card.span-2, .card.span-3, .card.span-4 { grid-column: span 1; } .steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .section { padding: 80px 0; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.flip .split-media { order: -1; }
.split h3 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.035em; margin-bottom: 18px; }
.split p { color: var(--text-2); font-size: 17px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(52, 245, 165, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334f5a5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.media-panel { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--line-2); background: radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 50%), radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, 0.18), transparent 50%), var(--surface); padding: 32px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip .split-media { order: 0; } }

.shield-list { display: grid; gap: 12px; }
.shield-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 14.5px; }
.shield-row .tag { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(52, 245, 165, 0.12); color: var(--mint); }
.shield-row .tag.warn { background: rgba(255, 92, 122, 0.12); color: #ff9db0; }
.shield-row svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: #ff9ccc; text-decoration: underline; text-underline-offset: 3px; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); padding: 80px 40px; text-align: center; background: radial-gradient(80% 140% at 50% 0%, rgba(236, 72, 153, 0.35), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(139, 92, 246, 0.35), transparent 60%), var(--surface-2); border: 1px solid var(--line-2); }
.cta-band h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.045em; }
.cta-band p { margin: 18px auto 34px; max-width: 560px; color: var(--text-2); font-size: 18px; }

/* --- Page hero (content pages) -------------------------------------------- */
.page-hero { position: relative; isolation: isolate; padding: 72px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .aurora::before, .page-hero .aurora::after { opacity: 0.35; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.045em; max-width: 900px; }
.page-hero .lead { margin-top: 20px; font-size: 19px; color: var(--text-2); max-width: 680px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span[aria-hidden] { opacity: 0.5; }
.page-meta { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding: 64px 0 40px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 18px; }
.aside-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.aside-card h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-card li a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.aside-card li a:hover, .aside-card li a.is-active { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.aside-cta { padding: 24px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, 0.3); }
.aside-cta strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; }
.aside-cta p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; gap: 40px; } .article-aside { position: static; } }

/* --- Prose ----------------------------------------------------------------- */
.prose { font-size: 17.5px; line-height: 1.75; color: var(--text-2); max-width: 760px; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { color: var(--text); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; margin-top: 2.2em; margin-bottom: -0.1em; }
.prose h3 { color: var(--text); font-size: 22px; letter-spacing: -0.02em; margin-top: 1.8em; margin-bottom: -0.3em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: #ff9ccc; text-decoration: underline; text-decoration-color: rgba(255, 156, 204, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--pink); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid; border-image: var(--grad) 1; color: var(--text); font-size: 1.1em; font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.prose code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.callout { padding: 20px 22px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, 0.28); color: var(--text); font-size: 16px; }
.callout.info { background: rgba(124, 182, 255, 0.08); border-color: rgba(124, 182, 255, 0.28); }
.callout.warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.callout strong { display: block; margin-bottom: 4px; }
.tldr { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.tldr > strong { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tldr ul { margin: 0; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: 0.2s; }
.related a:hover { border-color: rgba(236, 72, 153, 0.4); transform: translateY(-2px); }
.related small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.related strong { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* --- Forms ----------------------------------------------------------------- */
.field { display: grid; gap: 8px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, .label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 13px; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; color-scheme: dark;
}
textarea.input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.input::placeholder { color: #6c6b85; }
.input:hover, .select:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus, .select:focus { outline: none; border-color: rgba(236, 72, 153, 0.7); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15); background: rgba(255, 255, 255, 0.06); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8ca6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.select option { background: var(--surface-2); }
.input.has-error { border-color: rgba(255, 92, 122, 0.7); }
.field-error { color: #ff9db0; font-size: 13.5px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text-2); line-height: 1.5; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); cursor: pointer; display: grid; place-items: center; transition: 0.15s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.check a { color: #ff9ccc; text-decoration: underline; text-underline-offset: 3px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.pw-meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.25s; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 15px; border: 1px solid; }
.alert + .alert { margin-top: 10px; }
.alert-success { background: rgba(52, 245, 165, 0.08); border-color: rgba(52, 245, 165, 0.3); color: #b5fde0; }
.alert-error { background: rgba(255, 92, 122, 0.08); border-color: rgba(255, 92, 122, 0.35); color: #ffc2ce; }
.alert-info { background: rgba(124, 182, 255, 0.08); border-color: rgba(124, 182, 255, 0.3); color: #cfe2ff; }
.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 60; display: grid; gap: 10px; width: min(420px, calc(100% - 40px)); }
.flash-stack .alert { box-shadow: var(--shadow); backdrop-filter: blur(14px); background-color: rgba(17, 17, 28, 0.92); animation: slidein 0.35s cubic-bezier(.2, .8, .2, 1) both; }
.flash-stack .alert button { margin-left: auto; background: none; border: 0; color: inherit; opacity: 0.6; cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* --- Auth ------------------------------------------------------------------ */
.auth { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 56px 20px 80px; overflow: hidden; }
.auth-card { width: min(100%, 460px); padding: 40px; border-radius: var(--radius-xl); background: rgba(17, 17, 28, 0.85); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(139, 92, 246, 0.45), var(--shadow); backdrop-filter: blur(20px); }
.auth-card.wide { width: min(100%, 560px); }
.auth-card h1 { font-size: 34px; letter-spacing: -0.035em; }
.auth-card .sub { margin: 10px 0 28px; color: var(--muted); }
.auth-card .sub a, .auth-foot a { color: #ff9ccc; font-weight: 600; }
.auth-foot { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-card form .btn-block { margin-top: 26px; }
.auth-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(236, 72, 153, 0.3); margin-bottom: 22px; }
.auth-icon svg { width: 30px; height: 30px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- Account --------------------------------------------------------------- */
.account { padding: 56px 0 96px; }
.account-head { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.account-head .avatar { width: 72px; height: 72px; font-size: 28px; border-radius: 22px; }
.account-head h1 { font-size: 38px; letter-spacing: -0.035em; }
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.account-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.account-nav svg { width: 18px; height: 18px; opacity: 0.7; }
.panel { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.panel + .panel { margin-top: 24px; }
.panel-head { margin-bottom: 24px; }
.panel-head h2 { font-size: 24px; letter-spacing: -0.025em; }
.panel-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.panel.danger { border-color: rgba(255, 92, 122, 0.25); }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } .account-nav { position: static; display: flex; overflow-x: auto; } .account-nav a { white-space: nowrap; } .panel { padding: 24px; } }

.interest-picker .chips { margin-top: 4px; }
.interest-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 50px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); cursor: text; }
.interest-input:focus-within { border-color: rgba(236, 72, 153, 0.7); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15); }
.interest-input input { flex: 1; min-width: 140px; border: 0; background: transparent; outline: none; height: 32px; font-size: 15px; }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.04)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-about p { margin: 18px 0 22px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 14.5px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--text); }
.age-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 92, 122, 0.35); color: #ffb3c1; font-size: 12.5px; font-weight: 700; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* --- Error page ------------------------------------------------------------ */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; position: relative; isolation: isolate; overflow: hidden; }
.error-page .code { font-family: var(--display); font-size: clamp(100px, 18vw, 200px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.error-page p { color: var(--text-2); margin: 16px 0 30px; font-size: 18px; }

/* --- Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.show-mobile-only { display: none; }
@media (max-width: 920px) { .show-mobile-only { display: block; } }

/* --- Utilities (CSP forbids inline style attributes) ----------------------- */
.pt-0 { padding-top: 0 !important; }
.pt-20 { padding-top: 20px !important; }
.pt-40 { padding-top: 40px !important; }
.mt-28 { margin-top: 28px; }
.center { text-align: center; }
.link { color: #ff9ccc; text-decoration: underline; text-underline-offset: 3px; }
.no-anim { animation: none !important; }
.ico-violet { background: rgba(139, 92, 246, 0.18); }
.ico-mint { background: rgba(52, 245, 165, 0.14); }
[hidden] { display: none !important; }
.mt-12 { margin-top: 12px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.link-quiet { justify-self: end; }
.link-quiet:hover { color: var(--text); }
.mt-18 { margin-top: 18px; }
.field-row > .field + .field { margin-top: 0; }
