/* AtendePerto — dark premium AI-SaaS. Prefix: atp- */
:root {
  --atp-bg: #07110f;
  --atp-bg-2: #0c1a17;
  --atp-ink: #e9f4ef;
  --atp-mute: #a3bbb2;
  --atp-dim: #7f998f;
  --atp-teal: #3fe0c5;
  --atp-lime: #b9f36c;
  --atp-coral: #ff9a7e;
  --atp-line: rgba(190, 255, 230, .13);
  --atp-line-2: rgba(190, 255, 230, .22);
  --atp-glass: rgba(18, 36, 32, .55);
  --atp-glass-2: rgba(24, 48, 42, .72);
  --atp-r: 20px;
  --atp-r-sm: 12px;
  --atp-f-head: "Sora", system-ui, sans-serif;
  --atp-f-body: "Figtree", system-ui, sans-serif;
  --atp-f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --atp-wrap: 1180px;
  --atp-ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--atp-bg);
  color: var(--atp-ink);
  font: 400 17px/1.6 var(--atp-f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--atp-teal); text-underline-offset: 3px; }
a:hover { color: var(--atp-lime); }
h1, h2, h3 { font-family: var(--atp-f-head); line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--atp-lime); outline-offset: 3px; border-radius: 6px; }
.atp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.atp-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--atp-lime); color: #06120e; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.atp-skip:focus { top: 12px; color: #06120e; }

/* ---------- ambient background ---------- */
.atp-mesh { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: radial-gradient(1200px 700px at 50% -10%, #0f2a24 0%, transparent 60%), var(--atp-bg); }
.atp-mesh i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; }
.atp-mesh i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: -120px; background: #149c88; animation: atp-drift 26s var(--atp-ease) infinite alternate; }
.atp-mesh i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 120px; background: #6fbf3f; opacity: .26; animation: atp-drift 32s var(--atp-ease) infinite alternate-reverse; }
.atp-mesh i:nth-child(3) { width: 520px; height: 520px; left: 30%; bottom: -260px; background: #1a7f73; opacity: .3; animation: atp-drift 38s var(--atp-ease) infinite alternate; }
.atp-mesh::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--atp-line) 1px, transparent 1px), linear-gradient(90deg, var(--atp-line) 1px, transparent 1px); background-size: 64px 64px; opacity: .22; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
@keyframes atp-drift { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }

.atp-wrap { width: min(var(--atp-wrap), 100% - 32px); margin-inline: auto; }

.atp-glass {
  background: var(--atp-glass);
  border: 1px solid var(--atp-line);
  border-radius: var(--atp-r);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(0,0,0,.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .atp-glass { background: var(--atp-glass-2); }
}

.atp-mono { font-family: var(--atp-f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--atp-teal); }
.atp-kick { display: inline-flex; align-items: center; gap: 10px; }
.atp-kick::before { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, var(--atp-teal), var(--atp-lime)); }
.atp-grad { background: linear-gradient(100deg, var(--atp-teal) 10%, var(--atp-lime) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.atp-btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--atp-f-body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--atp-line-2); background: var(--b); color: var(--atp-ink);
  transition: transform .25s var(--atp-ease), box-shadow .25s var(--atp-ease), background .25s, border-color .25s, color .25s;
}
.atp-btn:hover { transform: translateY(-2px); color: var(--atp-ink); border-color: rgba(185,243,108,.5); }
.atp-btn--lime { background: linear-gradient(110deg, var(--atp-teal), var(--atp-lime)); color: #04130f; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(140, 240, 160, .55); }
.atp-btn--lime:hover { color: #04130f; box-shadow: 0 16px 40px -12px rgba(160, 250, 170, .7); }
.atp-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.atp-btn--block { width: 100%; }
.atp-btn svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.atp-hdr { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.atp-hdr.is-stuck { background: rgba(7, 17, 15, .78); border-color: var(--atp-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.atp-hdr__in { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.atp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--atp-ink); text-decoration: none; font: 600 18px/1 var(--atp-f-head); letter-spacing: -.01em; }
.atp-brand img { width: 32px; height: 32px; border-radius: 9px; }
.atp-brand:hover { color: var(--atp-ink); }
.atp-nav { display: flex; gap: 4px; margin-left: auto; }
.atp-nav a { color: var(--atp-mute); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; transition: color .2s, background .2s; }
.atp-nav a:hover { color: var(--atp-ink); background: rgba(255,255,255,.05); }
.atp-hdr__cta { display: flex; gap: 10px; }
.atp-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--atp-line-2); background: transparent; color: var(--atp-ink); cursor: pointer; }
.atp-burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform .25s; }
.atp-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.atp-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- hero ---------- */
.atp-hero { position: relative; padding: 56px 0 72px; }
.atp-stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .7; pointer-events: none; }
.atp-stars line { stroke: rgba(120, 240, 210, .18); stroke-width: 1; }
.atp-stars circle { fill: #8ff5d9; animation: atp-twinkle 5s ease-in-out infinite; }
.atp-stars circle:nth-of-type(3n) { animation-delay: -1.6s; fill: var(--atp-lime); }
.atp-stars circle:nth-of-type(3n+1) { animation-delay: -3.1s; }
@keyframes atp-twinkle { 50% { opacity: .25; } }

.atp-hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.atp-hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 18px 0 20px; font-weight: 700; }
.atp-hero h1 em { font-style: normal; }
.atp-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--atp-mute); max-width: 520px; }
.atp-hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.atp-price-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--atp-line); background: rgba(10, 26, 22, .6); font-size: 15px; color: var(--atp-mute); }
.atp-price-pill b { font: 600 18px/1 var(--atp-f-head); color: var(--atp-ink); }
.atp-price-pill .atp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--atp-dim); }
.atp-ai-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; max-width: 520px; font-size: 14px; color: var(--atp-mute); }
.atp-ai-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--atp-coral); }

.atp-stage { position: relative; min-height: 520px; }
.atp-win { position: relative; z-index: 1; width: min(440px, 100%); overflow: hidden; }
.atp-win__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--atp-line); }
.atp-ava { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #1b6f63, #2bb39d); position: relative; }
.atp-ava svg { width: 20px; height: 20px; color: #eafff7; }
.atp-ava::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--atp-lime); border: 2px solid #0f201c; }
.atp-win__who { display: grid; line-height: 1.25; font-weight: 600; font-size: 15px; }
.atp-win__who small { font-weight: 400; color: var(--atp-mute); font-size: 12.5px; }
.atp-tag { margin-left: auto; font-family: var(--atp-f-mono); font-size: 11px; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,154,126,.4); color: var(--atp-coral); }
.atp-log { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 330px; max-height: 420px; overflow-y: auto; scroll-behavior: smooth; }
.atp-msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: atp-pop .45s var(--atp-ease) both; }
.atp-msg--bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--atp-line); border-bottom-left-radius: 6px; }
.atp-msg--me { align-self: flex-end; background: linear-gradient(120deg, rgba(63,224,197,.22), rgba(185,243,108,.18)); border: 1px solid rgba(185,243,108,.25); border-bottom-right-radius: 6px; }
.atp-msg--sys { align-self: center; max-width: 100%; text-align: center; font-family: var(--atp-f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--atp-coral); background: rgba(255,154,126,.08); border: 1px dashed rgba(255,154,126,.35); border-radius: 999px; padding: 6px 12px; }
.atp-msg--sys.is-ok { color: var(--atp-lime); background: rgba(185,243,108,.08); border-color: rgba(185,243,108,.35); }
.atp-msg__lbl { display: block; font-family: var(--atp-f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--atp-teal); margin-bottom: 4px; }
.atp-src { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--atp-f-mono); font-size: 11.5px; color: var(--atp-lime); padding: 4px 9px; border-radius: 8px; background: rgba(185,243,108,.08); border: 1px solid rgba(185,243,108,.22); }
.atp-src svg { width: 12px; height: 12px; }
.atp-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.atp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--atp-mute); animation: atp-bounce 1.1s infinite; }
.atp-typing i:nth-child(2) { animation-delay: .15s; }
.atp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes atp-bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes atp-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.atp-compose { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--atp-line); background: rgba(0,0,0,.2); min-height: 48px; font-size: 14.5px; color: var(--atp-mute); }
.atp-compose__txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atp-compose__txt.is-typing { color: var(--atp-ink); }
.atp-compose__txt.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--atp-lime); animation: atp-caret .8s steps(1) infinite; }
@keyframes atp-caret { 50% { opacity: 0; } }
.atp-send { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(120deg, var(--atp-teal), var(--atp-lime)); color: #04130f; border: 0; }
.atp-send svg { width: 16px; height: 16px; }

.atp-ctx { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(290px, 70%); padding: 18px; }
.atp-ctx h2, .atp-ctx h3 { font-size: 16px; margin: 8px 0 12px; }
.atp-kv { display: grid; gap: 0; margin: 0; }
.atp-kv > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--atp-line); font-size: 14px; }
.atp-kv dt { color: var(--atp-mute); }
.atp-kv dd { margin: 0; text-align: right; font-weight: 600; transition: color .3s; }
.atp-kv dd.is-ok { color: var(--atp-lime); }
.atp-kv dd.is-warn { color: var(--atp-coral); }
.atp-ctx__flash { animation: atp-flash .9s var(--atp-ease); }
@keyframes atp-flash { 0% { background: rgba(185,243,108,.18); } 100% { background: transparent; } }
.atp-wire { position: absolute; z-index: 0; left: 38%; top: 30%; width: 50%; height: 60%; pointer-events: none; }
.atp-wire path { fill: none; stroke: url(#atpWireG); stroke-width: 1.5; stroke-dasharray: 4 6; animation: atp-dash 2.4s linear infinite; }
@keyframes atp-dash { to { stroke-dashoffset: -40; } }

/* ---------- band ---------- */
.atp-band { border-block: 1px solid var(--atp-line); background: rgba(10, 24, 21, .55); }
.atp-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding: 20px 0; }
.atp-band__in > span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--atp-mute); }
.atp-band__in svg { width: 18px; height: 18px; color: var(--atp-teal); flex: none; }

/* ---------- sections ---------- */
.atp-sec { padding: 110px 0; position: relative; }
.atp-sec__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 54px; }
.atp-sec__head h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 14px; }
.atp-sec__head p { color: var(--atp-mute); font-size: 18px; }

/* flow / how */
.atp-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; counter-reset: atp; }
.atp-flow__line { position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; z-index: 0; }
.atp-flow__line path { stroke: url(#atpFlowG); stroke-width: 2; fill: none; stroke-dasharray: 6 8; animation: atp-dash 3s linear infinite; }
.atp-step { position: relative; z-index: 1; padding: 26px; }
.atp-step__ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(140deg, rgba(63,224,197,.2), rgba(185,243,108,.12)); border: 1px solid var(--atp-line-2); }
.atp-step__ico svg { width: 30px; height: 30px; color: var(--atp-lime); }
.atp-step h3 { font-size: 21px; margin: 10px 0 10px; }
.atp-step p { color: var(--atp-mute); }

/* demo */
.atp-demo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.atp-demo .atp-win { width: 100%; }
.atp-demo .atp-log { min-height: 360px; max-height: 440px; }
.atp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.atp-chip { font: 500 14px/1.3 var(--atp-f-body); color: var(--atp-ink); background: rgba(63,224,197,.08); border: 1px solid rgba(63,224,197,.3); border-radius: 999px; padding: 9px 14px; cursor: pointer; text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.atp-chip:hover:not(:disabled) { background: rgba(63,224,197,.16); border-color: var(--atp-teal); transform: translateY(-1px); }
.atp-chip:disabled { opacity: .45; cursor: not-allowed; }
.atp-form { display: flex; gap: 8px; margin: 0 14px 14px; }
.atp-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--atp-line-2); background: rgba(0,0,0,.25); color: var(--atp-ink); font: 400 15px var(--atp-f-body); }
.atp-form input::placeholder { color: var(--atp-dim); }
.atp-form button { border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 14px; }
.atp-form button:disabled, .atp-form input:disabled { opacity: .5; cursor: not-allowed; }
.atp-panel { padding: 22px; display: grid; gap: 18px; }
.atp-panel h3 { font-size: 20px; margin-top: 6px; }
.atp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.atp-steps li { position: relative; display: flex; gap: 12px; align-items: center; padding: 9px 0; color: var(--atp-dim); font-size: 14.5px; transition: color .3s; }
.atp-steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--atp-line-2); flex: none; transition: all .3s; }
.atp-steps li.is-done { color: var(--atp-mute); }
.atp-steps li.is-done::before { background: var(--atp-teal); border-color: var(--atp-teal); }
.atp-steps li.is-now { color: var(--atp-ink); font-weight: 600; }
.atp-steps li.is-now::before { background: var(--atp-lime); border-color: var(--atp-lime); box-shadow: 0 0 0 5px rgba(185,243,108,.15); }
.atp-meter { display: grid; gap: 8px; font-size: 13.5px; color: var(--atp-mute); }
.atp-meter__bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.atp-meter__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--atp-teal), var(--atp-lime)); transition: width .5s var(--atp-ease); }
.atp-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.atp-ops .atp-btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
.atp-ops .atp-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.atp-fine { font-size: 13px; color: var(--atp-dim); line-height: 1.5; }

/* features */
.atp-feats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.atp-feat { padding: 28px; overflow: hidden; position: relative; transition: transform .35s var(--atp-ease), border-color .35s; }
.atp-feat:hover { transform: translateY(-4px); border-color: var(--atp-line-2); }
.atp-feat h3 { font-size: 22px; margin: 22px 0 10px; }
.atp-feat p { color: var(--atp-mute); }
.atp-feat__art { height: 120px; border-radius: 14px; border: 1px solid var(--atp-line); background: rgba(0,0,0,.18); display: grid; place-items: center; }
.atp-feat__art svg { width: 100%; height: 100%; }

/* pricing */
.atp-price { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.atp-price h2 { font-size: clamp(32px, 4.4vw, 54px); margin: 14px 0 20px; }
.atp-price__intro p { color: var(--atp-mute); font-size: 18px; }
.atp-lims { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.atp-lims li { padding: 16px; border-radius: var(--atp-r-sm); border: 1px solid var(--atp-line); background: rgba(10,26,22,.5); }
.atp-lims b { display: block; font: 600 24px/1.1 var(--atp-f-head); }
.atp-lims span { font-size: 14px; color: var(--atp-mute); }
.atp-plan { padding: 32px; position: relative; overflow: hidden; }
.atp-plan::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(63,224,197,.7), transparent 40%, transparent 60%, rgba(185,243,108,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.atp-plan__top { display: flex; justify-content: space-between; align-items: center; }
.atp-plan__num { font: 700 64px/1 var(--atp-f-head); letter-spacing: -.03em; margin: 22px 0 6px; }
.atp-plan__num small { font-size: 20px; font-weight: 500; color: var(--atp-mute); letter-spacing: 0; }
.atp-plan__tax { color: var(--atp-mute); font-size: 14.5px; }
.atp-plan ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.atp-plan li { display: flex; gap: 10px; align-items: flex-start; }
.atp-plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--atp-lime); }
.atp-plan__act { display: grid; gap: 10px; }
.atp-renew { margin-top: 18px; padding: 14px; border-radius: var(--atp-r-sm); background: rgba(255,154,126,.07); border: 1px solid rgba(255,154,126,.25); font-size: 14px; color: var(--atp-mute); }
.atp-renew strong { color: var(--atp-ink); }

/* faq */
.atp-faqgrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.atp-faqgrid h2 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 18px; }
.atp-faqgrid > div > p { color: var(--atp-mute); }
.atp-qa { border-bottom: 1px solid var(--atp-line); }
.atp-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 18px/1.35 var(--atp-f-head); }
.atp-qa summary::-webkit-details-marker { display: none; }
.atp-qa summary::after { content: "+"; font-family: var(--atp-f-mono); color: var(--atp-teal); font-size: 22px; line-height: 1; transition: transform .3s; }
.atp-qa[open] summary::after { transform: rotate(45deg); }
.atp-qa p { padding: 0 0 22px; color: var(--atp-mute); max-width: 640px; }

/* final */
.atp-final { padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.atp-final h2 { font-size: clamp(30px, 4.6vw, 56px); max-width: 780px; margin: 16px auto 26px; }
.atp-final .atp-hero__act { justify-content: center; margin-bottom: 0; }

/* ---------- footer ---------- */
.atp-ftr { border-top: 1px solid var(--atp-line); background: rgba(5, 12, 11, .8); padding: 56px 0 28px; margin-top: 60px; font-size: 14.5px; color: var(--atp-mute); }
.atp-ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.atp-ftr h2 { font: 600 12px/1 var(--atp-f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--atp-teal); margin-bottom: 14px; }
.atp-ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.atp-ftr a { color: var(--atp-ink); text-decoration: none; }
.atp-ftr a:hover { color: var(--atp-lime); text-decoration: underline; }
.atp-ftr address { font-style: normal; line-height: 1.7; }
.atp-ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--atp-line); font-size: 13px; color: var(--atp-dim); }

/* ---------- modal ---------- */
.atp-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(2, 8, 7, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.atp-modal[hidden] { display: none; }
.atp-modal.is-open { opacity: 1; }
.atp-modal__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; background: #0e1f1b; transform: translateY(14px) scale(.98); transition: transform .3s var(--atp-ease); }
.atp-modal.is-open .atp-modal__box { transform: none; }
.atp-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.atp-modal h2 { font-size: 24px; margin-top: 8px; }
.atp-x { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--atp-line-2); background: transparent; color: var(--atp-ink); font-size: 20px; cursor: pointer; }
.atp-x:hover { border-color: var(--atp-lime); }
.atp-sum { margin: 22px 0; display: grid; }
.atp-sum > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--atp-line); font-size: 14.5px; }
.atp-sum dt { color: var(--atp-mute); }
.atp-sum dd { margin: 0; }
.atp-sum__total { font: 700 26px/1.1 var(--atp-f-head); }
.atp-modal .atp-fine { margin-top: 14px; }

/* ---------- legal pages ---------- */
.atp-doc { padding: 56px 0 40px; }
.atp-doc__head { max-width: 760px; margin-bottom: 40px; }
.atp-doc__head h1 { font-size: clamp(36px, 5vw, 58px); margin: 14px 0 14px; }
.atp-doc__head p { color: var(--atp-mute); }
.atp-doc__grid { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.atp-toc { position: sticky; top: 92px; padding: 20px; }
.atp-toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: t; }
.atp-toc li { counter-increment: t; }
.atp-toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--atp-mute); text-decoration: none; font-size: 14.5px; }
.atp-toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--atp-f-mono); font-size: 12px; color: var(--atp-teal); padding-top: 2px; }
.atp-toc a:hover { background: rgba(255,255,255,.05); color: var(--atp-ink); }
.atp-art { padding: 10px 36px; }
.atp-art section { padding: 26px 0; border-top: 1px solid var(--atp-line); scroll-margin-top: 90px; }
.atp-art section:first-child { border-top: 0; }
.atp-art h2 { font-size: 22px; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.atp-art h2 span { font: 500 12px var(--atp-f-mono); color: var(--atp-teal); }
.atp-art p, .atp-art li { color: #c9dbd4; }
.atp-art p + p, .atp-art p + ul, .atp-art ul + p { margin-top: 10px; }
.atp-art ul { padding-left: 20px; margin: 10px 0 0; }
.atp-art li + li { margin-top: 6px; }
.atp-art strong { color: var(--atp-ink); }
.atp-call { margin-top: 12px; padding: 14px 16px; border-radius: var(--atp-r-sm); border: 1px solid rgba(185,243,108,.28); background: rgba(185,243,108,.06); }
.atp-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.atp-404 b { font: 700 clamp(90px, 18vw, 180px)/1 var(--atp-f-head); }

/* ---------- reveal ---------- */
.atp-rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--atp-ease), transform .8s var(--atp-ease); }
.atp-rv.is-in { opacity: 1; transform: none; }
.atp-no-js .atp-rv { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .atp-hero__grid, .atp-price, .atp-faqgrid, .atp-demo { grid-template-columns: 1fr; }
  .atp-sec__head { grid-template-columns: 1fr; gap: 16px; }
  .atp-feats { grid-template-columns: 1fr 1fr; }
  .atp-feats > :first-child { grid-column: 1 / -1; }
  .atp-stage { min-height: 0; padding-bottom: 0; }
  .atp-win { width: 100%; }
  .atp-ctx { position: relative; width: auto; margin: -40px 18px 0 auto; max-width: 320px; }
  .atp-wire { display: none; }
  .atp-doc__grid { grid-template-columns: 1fr; }
  .atp-toc { position: static; }
  .atp-ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .atp-burger { display: block; }
  .atp-nav { display: none; position: absolute; left: 16px; right: 16px; top: 74px; flex-direction: column; padding: 12px; border-radius: 18px; background: #0e1f1b; border: 1px solid var(--atp-line-2); box-shadow: 0 30px 60px -20px #000; }
  .atp-nav.is-open { display: flex; }
  .atp-nav a { padding: 12px 14px; font-size: 16px; }
  .atp-hdr__cta .atp-btn--ghost-hide { display: none; }
  .atp-hdr__in { gap: 10px; }
  .atp-flow { grid-template-columns: 1fr; }
  .atp-flow__line { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .atp-hero { padding: 28px 0 48px; }
  .atp-sec { padding: 72px 0; }
  .atp-feats, .atp-lims, .atp-ftr__grid { grid-template-columns: 1fr; }
  .atp-ctx { margin: 12px 0 0; max-width: none; }
  .atp-hero__act .atp-btn { width: 100%; }
  .atp-plan, .atp-final { padding: 24px 18px; }
  .atp-plan__num { font-size: 52px; }
  .atp-art { padding: 4px 18px; }
  .atp-sum > div { grid-template-columns: 1fr; gap: 2px; }
  .atp-modal__box { padding: 20px; }
  .atp-msg { max-width: 92%; }
  .atp-brand span { font-size: 16px; }
  .atp-hdr__cta .atp-btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .atp-rv { opacity: 1; transform: none; }
}
