@property --accent { syntax: '<color>'; inherits: true; initial-value: #ff5c8a; }
@property --accent-2 { syntax: '<color>'; inherits: true; initial-value: #ffb36b; }

:root {
  --accent: #ff5c8a;
  --accent-2: #ffb36b;
  --bg: #140a13;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .13);
  --text: #fff6f1;
  --soft: #d9c8cf;
  --muted: #a8949e;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: --accent .8s ease, --accent-2 .8s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; }
em { font-style: italic; color: var(--accent); }

.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .25; animation: drift 18s ease-in-out infinite alternate; }
.aura i:first-child { top: -35vmax; right: -18vmax; background: var(--accent); }
.aura i:last-child { bottom: -45vmax; left: -25vmax; background: var(--accent-2); opacity: .13; animation-delay: -8s; }
@keyframes drift { to { transform: translate(-7vmax, 6vmax) scale(1.12); } }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px); }
.nav::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: linear-gradient(rgba(20, 10, 19, .9), rgba(20, 10, 19, 0)); pointer-events: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 22px; text-decoration: none; white-space: nowrap; }
.logo-dot { flex: none; }
.logo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.nav-cta { padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 700; text-decoration: none; backdrop-filter: blur(10px); }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: 40px; max-width: 1200px; min-height: calc(100vh - 74px); margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--soft); font-size: 13px; font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blip 1.6s infinite; }
@keyframes blip { 50% { opacity: .35; transform: scale(.75); } }
h1 { max-width: 12ch; font-size: clamp(50px, 7.2vw, 96px); }
h1 em { display: block; }
.lede { max-width: 530px; margin-top: 24px; color: var(--soft); font-size: clamp(17px, 1.6vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.disclosure { margin-top: 18px; color: var(--soft); font-size: 13.5px; font-weight: 600; }
.disclosure span { color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border: 0; border-radius: 99px; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: #240912; box-shadow: 0 12px 34px -10px var(--accent); }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.hero-stage, .chat-stage { display: flex; justify-content: center; }
.phone { position: relative; width: min(330px, 84vw); height: min(670px, 86vh); min-height: 560px; padding: 9px; border-radius: 48px; background: linear-gradient(145deg, #4a3a43, #171015 45%, #33272e); box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .9), 0 0 90px -28px var(--accent); }
.hero-stage .phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-11px); } }
.screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 40px; background: #1a0e18; }
.island { position: absolute; top: 10px; left: 50%; z-index: 4; width: 86px; height: 24px; border-radius: 99px; background: #050305; transform: translateX(-50%); }
.preview-tag { position: absolute; top: 44px; left: 50%; z-index: 3; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--soft); font-size: 11px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }

.call-screen { align-items: center; padding: 84px 20px 28px; background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 52%, transparent), transparent 58%), linear-gradient(#2a1224, #130a12); }
.caller { display: flex; flex-direction: column; align-items: center; text-align: center; }
.caller h2 { margin-top: 24px; font-size: 34px; }
.caller p { margin-top: 5px; color: var(--soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.rings { position: relative; display: grid; width: 150px; height: 150px; place-items: center; transition: transform .5s; }
.rings i { position: absolute; inset: 0; border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0; }
[data-state='ringing'] .rings i { animation: ring 2.4s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: .8s !important; }
.rings i:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes ring { 0% { opacity: .75; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.65); } }
[data-state='ringing'] .avatar { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 72%, 100% { transform: none; } 78% { transform: rotate(-3deg); } 86% { transform: rotate(3deg); } 94% { transform: rotate(-2deg); } }

.avatar { position: relative; width: 150px; height: 150px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); border-radius: 50%; background: color-mix(in srgb, var(--accent) 55%, #2a1224); box-shadow: 0 12px 34px -8px var(--accent); }
.avatar svg { display: block; width: 100%; height: 100%; }
.avatar-small { width: 42px; height: 42px; flex: none; border-width: 2px; box-shadow: none; }
.avatar-join { width: 76px; height: 76px; margin-bottom: 18px; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
.mouth-open { opacity: 0; transform-box: fill-box; transform-origin: center; }
.talking .mouth-smile { opacity: 0; }
.talking .mouth-open { opacity: 1; }
.head { transform-box: view-box; transform-origin: 100px 138px; animation: sway 5.6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.7deg) translateY(1px); } }
.nod { transform: translateY(calc(var(--level, 0) * 1.8px)) rotate(calc(var(--level, 0) * -1.2deg)); transform-box: view-box; transform-origin: 100px 138px; }
.torso { transform-box: view-box; transform-origin: 100px 204px; animation: breathe 3.9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.018, 1.03); } }

.status-bar { position: absolute; top: 14px; right: 25px; left: 27px; z-index: 5; display: flex; align-items: center; justify-content: space-between; color: var(--text); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.signal i { width: 3px; border-radius: 1px; background: currentColor; }
.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 6px; }
.signal i:nth-child(3) { height: 8px; }
.signal i:nth-child(4) { height: 11px; }
.signal b { width: 20px; height: 11px; margin-left: 4px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, currentColor 72%, transparent 72%) content-box; padding: 1px; }
.preview-tag { display: inline-flex; align-items: center; gap: 6px; }
.preview-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
[data-state='talking'] .preview-tag i { background: #ff4d5e; box-shadow: 0 0 8px #ff4d5e; animation: blip 1s infinite; }
.sound { position: absolute; top: 41px; right: 11px; z-index: 6; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--text); }
.sound svg { width: 17px; height: 17px; fill: currentColor; }
.sound .sound-off, .sound[aria-pressed='false'] .sound-on { display: none; }
.sound[aria-pressed='false'] .sound-off { display: block; }
.caller .ring-hint { display: none; margin-top: 12px; color: var(--accent-2); font-size: 12.5px; font-weight: 700; }
[data-state='ringing'] .ring-hint { display: block; animation: blip 1.8s ease-in-out infinite; }
.rings { isolation: isolate; }
.rings::after { content: ''; position: absolute; inset: -5px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, var(--accent-2), var(--accent) 62%, transparent 72%); opacity: calc(var(--level, 0) * .75); transform: scale(calc(1 + var(--level, 0) * .2)); }

.captions { display: none; flex: 1; width: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; text-align: center; }
[data-state='talking'] .captions { display: flex; }
#caption { min-height: 92px; font-family: var(--display); font-size: 21px; line-height: 1.25; }
.wave { display: flex; align-items: center; gap: 4px; height: 28px; }
.wave i { width: 4px; height: 6px; border-radius: 4px; background: var(--accent-2); }
[data-state='talking'] .rings { transform: scale(.72); margin: -16px 0; }
[data-state='talking'] .caller h2 { margin-top: 4px; font-size: 25px; }

.call-actions { display: none; justify-content: space-around; width: 100%; margin-top: auto; }
.call-actions > div { display: grid; justify-items: center; gap: 7px; color: var(--soft); font-size: 12.5px; font-weight: 600; }
[data-state='ringing'] .ring-actions, [data-state='talking'] .talk-actions { display: flex; }
[data-state='talking'] .talk-actions { margin-top: 0; }
.round { display: grid; width: 64px; height: 64px; place-items: center; border: 0; border-radius: 50%; color: #fff; transition: transform .15s; }
.round:hover { transform: scale(1.07); }
.round svg { width: 28px; height: 28px; fill: currentColor; }
.decline { background: #ef3e4a; }
.accept { background: #25c866; animation: accept 1.3s ease-in-out infinite; }
@keyframes accept { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 200, 102, .6); } 60% { box-shadow: 0 0 0 15px rgba(37, 200, 102, 0); } }
.end-actions { display: none; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; }
[data-state='ended'] .end-actions { display: flex; }
.link-btn { min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--soft); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

section { scroll-margin-top: 72px; }
.choose, .ways, .join { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 860px; margin: 0 auto 42px; text-align: center; }
.section-head h2, .join h2 { font-size: clamp(38px, 5vw, 64px); }
.section-head > p:last-child:not(.kicker) { margin-top: 15px; color: var(--soft); font-size: 17px; }
.kicker { margin-bottom: 12px; color: var(--accent-2); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.choose-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 40px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 9px; padding: 16px 6px 13px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; transition: transform .2s, background .3s, border-color .3s; }
.role:hover { transform: translateY(-3px); background: var(--panel-strong); }
.role[aria-pressed='true'] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: 0 10px 30px -14px var(--accent); }
.role .avatar { width: clamp(58px, 7vw, 84px); height: clamp(58px, 7vw, 84px); border-width: 2px; box-shadow: none; }

.phone-chat { height: 590px; min-height: 0; }
.chat-screen { background: linear-gradient(#22101e, #150b14); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 48px 16px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.chat-head strong, .chat-head span { display: block; line-height: 1.25; }
.chat-head span { color: var(--accent-2); font-size: 12px; font-weight: 600; }
.chat-log { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 0; overflow: hidden; padding: 16px 13px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.38; animation: pop .32s cubic-bezier(.2, 1.3, .5, 1); }
.msg.them { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--panel-strong); }
.msg.me { align-self: flex-end; border-bottom-right-radius: 5px; background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: #240912; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(9px) scale(.95); } }
.typing { display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: .35; transform: translateY(-4px); } }
.composer { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 16px; padding: 7px 7px 7px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 14px; }
.composer span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; }
.composer .typed { color: var(--text); }
.composer .typed::after { content: ''; display: inline-block; width: 1.5px; height: 15px; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: blip .8s infinite; }
.composer b { flex: none; margin-left: 8px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent); color: #240912; }

.way-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { position: relative; min-width: 0; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.way h3 { font-family: var(--display); font-size: 27px; font-weight: 400; }
.way p { margin-top: 7px; color: var(--soft); }
.soon { position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-size: 11.5px; font-weight: 700; }
.way-art { display: flex; height: 112px; align-items: center; gap: 6px; margin-bottom: 14px; }
.bubbles { flex-direction: column; align-items: flex-start; justify-content: center; }
.bubbles i { display: block; width: 58%; height: 22px; border-radius: 12px; background: var(--panel-strong); animation: bubble 3s infinite; }
.bubbles i:nth-child(2) { width: 42%; align-self: flex-end; background: var(--accent); animation-delay: .5s; }
.bubbles i:nth-child(3) { width: 66%; animation-delay: 1s; }
@keyframes bubble { 0%, 100% { opacity: .55; } 40% { opacity: 1; } }
.bars i { width: 7px; height: 16px; border-radius: 6px; background: linear-gradient(var(--accent), var(--accent-2)); animation: bars 1.1s ease-in-out infinite alternate; }
.bars i:nth-child(2n) { animation-delay: -.5s; }
.bars i:nth-child(3n) { animation-delay: -.8s; }
@keyframes bars { to { height: 76px; } }
.orbit { position: relative; width: 96px; border: 1.5px dashed var(--line); border-radius: 50%; height: 96px; margin: 8px 0 22px; animation: spin 7s linear infinite; }
.orbit::after { content: ''; position: absolute; inset: 28px; border-radius: 50%; background: linear-gradient(var(--accent), var(--accent-2)); }
.orbit i { position: absolute; top: -7px; left: 41px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }

.join-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5vw, 64px); padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255, 255, 255, .04)); }
.join-copy > p:not(.kicker):not(.disclosure) { margin-top: 16px; color: var(--soft); font-size: 18px; }
.join-copy strong { color: var(--text); }
form { display: grid; min-width: 0; gap: 15px; }
form label { display: grid; min-width: 0; gap: 6px; color: var(--soft); font-size: 13.5px; font-weight: 700; }
small { color: var(--muted); font-size: 12px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
input:not([type='radio']):not([type='checkbox']), select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .3); color: var(--text); font-size: 16px; font-weight: 500; }
select option { background: #241420; color: var(--text); }
input:focus, select:focus { border-color: var(--accent) !important; outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.invalid { border-color: #ff7a7a !important; }
form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.4; }
.check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; color: #ff9c9c; font-size: 14px; font-weight: 600; }
.form-error.show { display: block; }
.success { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 340px; text-align: center; outline: none; }
.success[hidden] { display: none; }
.tick { display: grid; width: 68px; height: 68px; margin-bottom: 8px; place-items: center; border-radius: 50%; background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: #240912; font-size: 32px; font-weight: 800; animation: pop .5s cubic-bezier(.2, 1.5, .5, 1); }
.success h3 { font-family: var(--display); font-size: 34px; font-weight: 400; }
.success p { max-width: 380px; color: var(--soft); }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; max-width: 1200px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.doc { max-width: 720px; margin: 0 auto; padding: 32px 16px 72px; }
.doc h1 { max-width: none; margin-bottom: 18px; font-size: clamp(38px, 7vw, 58px); }
.doc h2 { margin: 30px 0 8px; font-size: 26px; }
.doc p, .doc li { color: var(--soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; min-height: 0; padding-top: 4px; text-align: center; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; margin-bottom: 12px; }
  h1 { order: 2; max-width: 15ch; font-size: clamp(38px, 10.5vw, 68px); }
  .hero-stage { order: 3; width: 100%; margin-top: 20px; }
  .lede { order: 4; margin-top: 30px; }
  .hero-actions { order: 5; justify-content: center; }
  .hero > .hero-copy > .disclosure { order: 6; }
  .hero-stage .phone { height: clamp(460px, calc(100svh - 236px), 620px); min-height: 0; }
  .call-screen { padding: 72px 18px 18px; }
  #caption { min-height: 72px; font-size: 19px; }
  .phone-chat { height: 480px; }
  .choose-grid { grid-template-columns: minmax(0, 1fr); }
  .way-grid { grid-template-columns: minmax(0, 1fr); }
  .join-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .logo { gap: 6px; font-size: 15.5px; letter-spacing: -.01em; }
  .logo-dot { width: 8px; height: 8px; }
  .nav-cta { flex: none; padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .roles { gap: 8px; }
  .role { padding: 12px 3px 10px; border-radius: 18px; font-size: 13px; }
  .join-card { border-radius: 26px; }
  .field-row { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
