/* Infinity Interface design system. No external fonts, no third party CSS. */

:root {
  --bg: #070b16;
  --bg-2: #0c1226;
  --surface: #111a33;
  --surface-2: #16203d;
  --line: #243156;
  --line-soft: #1b2542;
  --text: #e9eefb;
  --muted: #9aa8c6;
  --cyan: #2ee6d6;
  --cyan-2: #12b8c4;
  --violet: #9b7bff;
  --gold: #f0b429;
  --ok: #38d39f;
  --err: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(46, 230, 214, 0.16), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(155, 123, 255, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1.05em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: 0 0 0.4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.narrow { max-width: 820px; }

section { position: relative; z-index: 1; }
.section { padding: 74px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: linear-gradient(180deg, rgba(12, 18, 38, 0) 0%, rgba(12, 18, 38, 0.9) 12%, rgba(12, 18, 38, 0.9) 88%, rgba(12, 18, 38, 0) 100%); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.lede { font-size: 1.12rem; color: var(--muted); max-width: 66ch; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 22, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: grid; place-items: center; color: #06121a; font-weight: 900; font-size: 0.95rem;
}
.brand small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--text); font-size: 0.93rem; font-weight: 600; padding: 8px 11px;
  border-radius: 8px; text-decoration: none; opacity: 0.86;
}
.nav a:hover { background: var(--surface); opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--cyan); background: rgba(46, 230, 214, 0.09); }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang-switch a {
  padding: 6px 12px; font-size: 0.8rem; font-weight: 700; color: var(--muted);
  text-decoration: none; letter-spacing: 0.04em;
}
.lang-switch a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.lang-switch a.is-active { background: var(--cyan); color: #06121a; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(120deg, var(--cyan), var(--violet)); color: #06121a; box-shadow: 0 10px 26px rgba(46, 230, 214, 0.22); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding: 78px 0 62px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.16rem; margin-bottom: 28px; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

.hero-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 16px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .pname { font-weight: 650; }
.price-row .pp { font-weight: 800; color: var(--cyan); font-size: 1.05rem; }
.hero-card .foot { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }

.stat-row { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 34px; }
.stat b { display: block; font-size: 1.85rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat span { font-size: 0.84rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0.8em; }
.card ul { color: var(--muted); font-size: 0.93rem; padding-left: 1.05em; }
.card li::marker { color: var(--cyan); }
.card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(46, 230, 214, 0.11); color: var(--cyan); font-weight: 800; font-size: 0.95rem;
  margin-bottom: 14px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em; width: 12px; height: 6px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

/* Plan cards */
.plan {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(46, 230, 214, 0.35), var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; left: 24px; background: linear-gradient(120deg, var(--cyan), var(--violet));
  color: #06121a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { margin-bottom: 4px; }
.plan .tagline { color: var(--muted); font-size: 0.95rem; min-height: 3em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan .price .amount { font-size: 2.5rem; font-weight: 850; letter-spacing: -0.02em; }
.plan .price .per { color: var(--muted); font-size: 0.95rem; }
.plan .value { font-size: 0.86rem; color: var(--gold); font-weight: 650; margin-bottom: 16px; }
.plan ul { flex: 1; }
.plan .btn { margin-top: 18px; }
.plan.featured { position: relative; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 2.1rem; font-weight: 850; color: var(--cyan); opacity: 0.5; margin-bottom: 6px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 15px; font-size: 0.88rem; color: var(--muted); font-weight: 600;
}

/* Quote */
.quote {
  background: var(--surface); border: 1px solid var(--line-soft); border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px;
}
.quote p { color: var(--text); font-size: 0.98rem; margin-bottom: 10px; }
.quote cite { font-style: normal; font-size: 0.86rem; color: var(--muted); }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; }
.faq-item h3 { font-size: 1.04rem; margin-bottom: 6px; }
.faq-item p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Forms */
.form-wrap {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 18px; padding: 30px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.87rem; font-weight: 650; color: var(--muted); }
.field .opt { font-weight: 400; opacity: 0.75; }
.field input, .field select, .field textarea {
  background: #0a1024; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 0.97rem; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, 0.16);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 16px; border-radius: var(--radius-sm); padding: 13px 16px; font-size: 0.94rem; display: none; }
.form-status.ok { display: block; background: rgba(56, 211, 159, 0.12); border: 1px solid rgba(56, 211, 159, 0.4); color: #8ff0cb; }
.form-status.err { display: block; background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffb3b3; }
.form-status.busy { display: block; background: rgba(155, 123, 255, 0.12); border: 1px solid rgba(155, 123, 255, 0.4); color: #cfc0ff; }

/* Callouts */
.callout {
  background: rgba(46, 230, 214, 0.07); border: 1px solid rgba(46, 230, 214, 0.3);
  border-radius: var(--radius); padding: 20px 24px;
}
.callout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.callout p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.callout.gold { background: rgba(240, 180, 41, 0.08); border-color: rgba(240, 180, 41, 0.34); }
.callout.gold h3 { color: var(--gold); }

/* Steps list (checklist) */
.checklist { counter-reset: cl; list-style: none; padding: 0; margin: 0; }
.checklist > li { counter-increment: cl; position: relative; padding-left: 40px; margin-bottom: 14px; color: var(--muted); }
.checklist > li::before {
  content: counter(cl); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px; background: rgba(46, 230, 214, 0.13);
  color: var(--cyan); font-weight: 800; font-size: 0.82rem; display: grid; place-items: center;
}
.checklist > li b { color: var(--text); display: block; margin-bottom: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; background: rgba(255, 255, 255, 0.02); }
td { color: var(--muted); }
td strong { color: var(--text); }
tr:last-child td { border-bottom: 0; }

/* Breadcrumb */
.breadcrumb { font-size: 0.84rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { opacity: 0.6; }

/* Legal */
.legal h2 { margin-top: 38px; font-size: 1.3rem; }
.legal h3 { margin-top: 26px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

/* Download page */
.doc {
  background: #fff; color: #16203d; border-radius: 12px; padding: 46px 52px;
  box-shadow: var(--shadow); max-width: 860px; margin: 0 auto;
}
.doc h1 { font-size: 1.9rem; color: #0b1430; }
.doc h2 { font-size: 1.25rem; margin-top: 32px; color: #0b1430; border-bottom: 2px solid #e4e9f5; padding-bottom: 8px; }
.doc h3 { font-size: 1.02rem; margin-top: 20px; color: #16203d; }
.doc p, .doc li { color: #3c4a6b; }
.doc ul { padding-left: 1.2em; }
.doc .box { border: 1px solid #dfe6f4; border-left: 4px solid #12b8c4; background: #f5f9ff; border-radius: 8px; padding: 14px 18px; margin: 16px 0; }
.doc .box p { margin: 0; }
.doc .doc-head { border-bottom: 3px solid #12b8c4; padding-bottom: 14px; margin-bottom: 8px; }
.doc .doc-head .kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #12b8c4; }
.doc .doc-head h1 { margin: 6px 0 2px; }
.doc .doc-head .sub { color: #6b7896; font-size: 0.92rem; }
.doc .blank { display: inline-block; min-width: 150px; border-bottom: 1px solid #9aa8c6; }
.doc table { min-width: 0; }
.doc th { background: #eef3fb; color: #3c4a6b; }
.doc td { color: #3c4a6b; border-bottom: 1px solid #e4e9f5; }
.doc .sign { margin-top: 40px; border-top: 1px solid #dfe6f4; padding-top: 16px; color: #6b7896; font-size: 0.88rem; }

@media print {
  body { background: #fff; }
  body::before { display: none; }
  .site-header, .site-footer, .no-print, .ii-chat-root { display: none !important; }
  .doc { box-shadow: none; border-radius: 0; padding: 0; max-width: 100%; }
  .doc h2 { page-break-after: avoid; }
  .doc section { page-break-inside: avoid; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(7, 11, 22, 0.9); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 48px 0 30px; }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--muted); font-size: 0.93rem; }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { color: var(--muted); font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 18px 0 30px; color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--cyan); color: #06121a;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { width: 100%; margin-left: 0; }
  .doc { padding: 28px 22px; }
  .stat-row { gap: 20px; }
}
