/* ============================================================
   Touch API — Landing styles
   ============================================================ */
:root {
  --bg: #0a0b12;
  --bg-2: #0f1120;
  --panel: rgba(255,255,255,.04);
  --panel-2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.18);
  --text: #f3f5fb;
  --muted: #9aa3b8;
  --muted-2: #6f7791;
  --brand: #3b85fc;
  --brand-2: #6d4bff;
  --wa: #25d366;
  --tg: #2aabee;
  --accent: #ffmep;
  --grad: linear-gradient(135deg,#3b85fc 0%,#6d4bff 55%,#c04bff 100%);
  --grad-soft: linear-gradient(135deg,rgba(59,133,252,.18),rgba(109,75,255,.18));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  --maxw: 1200px;
  --font: 'Inter','Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --mono: 'JetBrains Mono','SF Mono',ui-monospace,Menlo,Consolas,monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(109,75,255,.4); }

/* Background glow */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content:''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35;
}
.bg-glow::before { width: 60vw; height: 60vw; background: #3b85fc; top: -20vw; left: -10vw; }
.bg-glow::after { width: 50vw; height: 50vw; background: #6d4bff; bottom: -20vw; right: -10vw; opacity: .25; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,11,18,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.site.scrolled { border-bottom-color: var(--border); background: rgba(10,11,18,.9); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.nav .logo .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; display:grid; place-items:center; }
.nav .logo .dot::after { content:''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.nav .links { display: flex; gap: 26px; margin-left: auto; }
.nav .links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav .links a:hover { color: var(--text); }
.nav .actions { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -8px rgba(59,133,252,.7); }
.btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(109,75,255,.85); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text); background: var(--panel); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255,255,255,.3); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 10px; }

.lang-switch { position: relative; }
.lang-switch .current { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 10px; font-size: 13.5px; background: var(--panel); }
.lang-switch .menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #14162a; border: 1px solid var(--border-2);
  border-radius: 12px; padding: 6px; min-width: 170px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; z-index: 10;
}
.lang-switch.open .menu { opacity: 1; visibility: visible; transform: none; }
.lang-switch .menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.lang-switch .menu a:hover, .lang-switch .menu a.active { background: var(--panel-2); color: var(--text); }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border-2); background: var(--panel); font-size: 13px; color: var(--muted); font-weight: 500;
}
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.6)} 70%{box-shadow:0 0 0 10px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 20px; }
h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 540px; margin-bottom: 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 18px; color: var(--muted-2); font-size: 13.5px; }

.stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.stats .st .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stats .st .l { font-size: 13px; color: var(--muted-2); }

/* Hero visual: chat mock + code */
.hero-visual { position: relative; }
.phone {
  background: linear-gradient(160deg,#161a2e,#0d0f1c); border: 1px solid var(--border-2);
  border-radius: 28px; padding: 18px; box-shadow: var(--shadow); position: relative; z-index: 2;
  max-width: 420px; margin-left: auto;
}
.phone .topbar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.phone .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 16px; }
.phone .who { font-weight: 600; font-size: 14px; }
.phone .status { font-size: 12px; color: var(--wa); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; margin-bottom: 10px; line-height: 1.45; }
.msg.in { background: var(--panel-2); border-bottom-left-radius: 4px; }
.msg.out { background: var(--grad); margin-left: auto; border-bottom-right-radius: 4px; color: #fff; }
.msg.typing { width: 54px; display: flex; gap: 4px; background: var(--panel-2); }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.4s infinite; }
.msg.typing i:nth-child(2){ animation-delay:.2s } .msg.typing i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.3} 30%{opacity:1} }

.code-card {
  position: absolute; right: -30px; bottom: -30px; z-index: 3; width: 330px;
  background: #0c0e1a; border: 1px solid var(--border-2); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.code-card .head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.code-card .head i { width: 10px; height: 10px; border-radius: 50%; }
.code-card .head i:nth-child(1){background:#ff5f57}.code-card .head i:nth-child(2){background:#febc2e}.code-card .head i:nth-child(3){background:#28c840}
.code-card .head span { margin-left: 8px; font-size: 11px; color: var(--muted-2); font-family: var(--mono); }
.code-card pre { padding: 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: #c7d0e8; overflow-x: auto; }
.tok-k { color: #ff7ab2; } .tok-s { color: #9ae66e; } .tok-n { color: #ffcc66; } .tok-c { color: #5b6480; } .tok-f { color: #6db3ff; }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* Channels strip */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chan {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; background: var(--panel);
  transition: transform .25s, border-color .25s, background .25s;
}
.chan:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.chan .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; font-size: 20px; }
.chan .nm { font-weight: 700; margin-bottom: 4px; }
.chan .ds { font-size: 13px; color: var(--muted-2); }

/* How it works */
.steps3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: s; }
.step { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--panel); overflow: hidden; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 800; color: rgba(255,255,255,.05); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step b { color: var(--text); font-family: var(--mono); font-size: 13px; background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }

/* Features grid */
.feat { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.fcard { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--panel); transition: transform .25s, border-color .25s; }
.fcard:hover { transform: translateY(-5px); border-color: var(--border-2); }
.fcard .icon { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 16px; color: var(--brand); }
.fcard h3 { font-size: 16.5px; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 14px; }
.fcard em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: #9ae66e; }

/* API section */
.api-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.api-wrap > * { min-width: 0; }
.gpt-grid > * { min-width: 0; }
.hero-grid > * { min-width: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0; }
.tabs button { padding: 8px 14px; border-radius: 9px 9px 0 0; font-size: 13px; color: var(--muted); border: 1px solid transparent; border-bottom: none; }
.tabs button.active { color: var(--text); background: #0c0e1a; border-color: var(--border-2); }
.code-box { background: #0c0e1a; border: 1px solid var(--border-2); border-radius: 0 14px 14px 14px; overflow: hidden; max-width: 100%; min-width: 0; }
.code-box .bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.code-box .bar .ep { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.code-box .bar .ep .m { color: var(--wa); font-weight: 700; }
.code-box pre { padding: 20px; font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: #c7d0e8; overflow-x: auto; min-height: 280px; }
.code-box pre .copy { position: absolute; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.mth { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); transition: border-color .2s; }
.mth:hover { border-color: var(--brand); }
.mth code { font-family: var(--mono); font-size: 12.5px; color: var(--brand); white-space: nowrap; }
.mth span { font-size: 13px; color: var(--muted-2); }

/* GPT */
.gpt { background: radial-gradient(1200px 500px at 50% 0%, rgba(109,75,255,.16), transparent 70%); }
.gpt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.gpt ul { list-style: none; margin: 26px 0 30px; display: grid; gap: 14px; }
.gpt li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #d3d9ea; }
.gpt li .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 12px; margin-top: 2px; }
.gpt-demo { position: relative; }
.gpt-demo .bubble { border-radius: 18px; padding: 16px 18px; font-size: 14.5px; box-shadow: var(--shadow); max-width: 86%; }
.gpt-demo .bubble.user { background: var(--panel-2); border: 1px solid var(--border-2); margin-bottom: 14px; }
.gpt-demo .bubble.bot { background: var(--grad); color: #fff; margin-left: auto; }
.gpt-demo .tag { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted-2); margin-top: 8px; font-family: var(--mono); }
.gpt-demo .tag.bot { margin-left: auto; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.case { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--panel); transition: transform .25s, border-color .25s; }
.case:hover { transform: translateY(-5px); border-color: var(--border-2); }
.case .em { font-size: 30px; margin-bottom: 14px; }
.case h3 { font-size: 17px; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 14px; }

/* Compare table */
.cmp { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--panel-2); font-size: 14px; }
.cmp thead th.us { color: var(--brand); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { color: var(--muted); }
.cmp td.us { font-weight: 600; }
.cmp .yes { color: #7ee2a8; } .cmp .no { color: var(--muted-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; align-items: start; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; background: var(--panel); position: relative; transition: transform .25s, border-color .25s; display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-5px); border-color: var(--border-2); }
.plan.popular { border-color: transparent; background: linear-gradient(#0f1220,#0f1220) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 18px; margin-bottom: 4px; }
.plan .from { font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .per { font-size: 12.5px; color: var(--muted-2); margin: 6px 0 18px; }
.plan .feats { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan .feats li { display: flex; gap: 9px; font-size: 13.5px; color: #cdd4e6; }
.plan .feats li::before { content: '✓'; color: var(--brand); font-weight: 700; }
.includes { margin-top: 40px; text-align: center; }
.includes h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.includes .chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.includes .chips span { padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; font-size: 13px; color: var(--muted); background: var(--panel); }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; text-align: left; font-size: 16px; font-weight: 600; }
.faq-item .q-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; transition: transform .3s, background .3s; font-size: 16px; }
.faq-item.open .q-ic { transform: rotate(45deg); background: var(--grad); border-color: transparent; }
.faq-item .a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item .a p { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }

/* CTA band */
.cta-band { border-radius: 28px; padding: 64px 40px; text-align: center; background: radial-gradient(800px 400px at 50% 0%, rgba(59,133,252,.25), transparent 70%), linear-gradient(160deg,#12152a,#0c0e1a); border: 1px solid var(--border-2); position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 60px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted-2); font-size: 14px; max-width: 280px; }
.foot-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; font-weight: 700; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 7px 0; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.foot-bottom .disc { max-width: 640px; font-size: 11.5px; opacity: .7; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
/* no-JS: content is fully visible */
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } .code-card{animation:none} }

/* Floating CTA */
.float-cta { position: fixed; bottom: 22px; right: 22px; z-index: 90; display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feat { grid-template-columns: repeat(2,1fr); }
  .channels { grid-template-columns: repeat(3,1fr); }
  .plans { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav .links, .nav .actions .btn-login { display: none; }
  .burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border-2); border-radius: 10px; margin-left: auto; }
  .hero-grid, .api-wrap, .gpt-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0; }
  .code-card { position: static; width: 100%; margin-top: 20px; animation: none; }
  .phone { margin: 0; max-width: 100%; }
  .steps3 { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .float-cta { display: block; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .foot-col a { padding: 11px 0; min-height: 40px; display: flex; align-items: center; }
  .foot-col h3 { margin-top: 8px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .code-box .bar { flex-wrap: wrap; gap: 8px; }
  .code-box .ep { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ep-name { display: inline-block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .methods { grid-template-columns: 1fr; }
  .mth { min-width: 0; }
  .channels { grid-template-columns: 1fr 1fr; }
  .feat { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cmp { font-size: 13px; overflow-x: auto; }
  .stats { gap: 22px; }
  h1 { font-size: 34px; }
  .cta-band { padding: 40px 22px; }
  .mobile-menu { position: fixed; inset: 0 0 auto 0; top: 68px; background: #0c0e1a; border-bottom: 1px solid var(--border); padding: 20px 24px; display: none; flex-direction: column; gap: 4px; z-index: 99; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
}
