/* AIMOO site. Calm and plain like a product page, with chat bubbles as in a messenger. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-card: #f7f7f8;
  --text: #0d0d0d;
  --text-2: #5d5d66;
  --text-3: #8e8e96;
  --line: rgba(0, 0, 0, 0.08);
  --brand-1: #ff7a45;
  --brand-2: #f5365c;
  --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --accent: #f0464f;
  --tg-blue: #3390ec;
  --bubble-in: #ffffff;
  --bubble-out: #e3fbd3;
  --chat-bg: #cfe3c6;
  --chat-pattern: rgba(70, 110, 60, 0.10);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
  --radius: 22px;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --btn-dark: #0d0d0d;
  --btn-dark-text: #ffffff;
  --ok: #1f9d55;
  --warn: #c2410c;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-soft: #141416;
    --bg-card: #161618;
    --text: #f2f2f3;
    --text-2: #a6a6ad;
    --text-3: #75757d;
    --line: rgba(255, 255, 255, 0.09);
    --bubble-in: #212d3b;
    --bubble-out: #2b5278;
    --chat-bg: #0e1621;
    --chat-pattern: rgba(120, 160, 210, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 40px rgba(0, 0, 0, 0.35);
    --nav-bg: rgba(11, 11, 12, 0.72);
    --btn-dark: #f2f2f3;
    --btn-dark-text: #0b0b0c;
    --ok: #4ade80;
    --warn: #fb923c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; font-size: 18px; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; }
.logo .mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 560; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn.dark { background: var(--btn-dark); color: var(--btn-dark-text); }
.btn.dark:hover { opacity: .86; }
.btn.brand { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(245, 54, 92, 0.28); }
.btn.brand:hover { opacity: .92; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.big { height: 54px; padding: 0 26px; font-size: 16px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 69, 0.22), rgba(245, 54, 92, 0.10) 55%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 520;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 680;
  margin: 22px 0 20px;
}
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); margin: 0 0 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* Chat mock */
.phone {
  border-radius: 34px; background: var(--chat-bg); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; position: relative;
}
.phone::before {
  content: ""; position: absolute; inset: 0; opacity: 1; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, var(--chat-pattern) 0 6px, transparent 7px),
    radial-gradient(circle at 70% 60%, var(--chat-pattern) 0 4px, transparent 5px),
    radial-gradient(circle at 45% 85%, var(--chat-pattern) 0 5px, transparent 6px);
  background-size: 90px 90px, 70px 70px, 110px 110px;
}
.phone-head {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.phone-head .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.phone-head .ava svg { width: 24px; height: 24px; }
.phone-head b { display: block; font-size: 15px; font-weight: 620; }
.phone-head span { font-size: 13px; color: var(--text-3); }
.chat { position: relative; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 8px; min-height: 380px; }
.bubble {
  max-width: 84%; padding: 9px 13px 10px; border-radius: 18px; font-size: 15px; line-height: 1.42;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); position: relative;
  opacity: 0; transform: translateY(8px); animation: rise .5s ease forwards;
}
.bubble.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 6px; }
.bubble time { float: right; margin: 6px 0 -4px 10px; font-size: 11.5px; color: var(--text-3); }
.bubble .src {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px 5px 8px; border-radius: 10px;
  background: rgba(51, 144, 236, 0.12); color: var(--tg-blue); font-size: 13px; font-weight: 560; text-decoration: none;
}
.bubble .src::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--tg-blue); }
.bubble:nth-child(1) { animation-delay: .2s; }
.bubble:nth-child(2) { animation-delay: 1.1s; }
.bubble:nth-child(3) { animation-delay: 2.2s; }
.bubble:nth-child(4) { animation-delay: 3.1s; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 1; transform: none; }
  .typing i { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.028em; font-weight: 660; margin: 0 0 16px; }
.sub { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0 0 44px; }
h3 { font-size: 19px; letter-spacing: -0.012em; font-weight: 620; margin: 0 0 8px; }
p { margin: 0 0 12px; }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
section.soft .card { background: var(--bg); }
.card p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.card .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 69, .16), rgba(245, 54, 92, .16)); color: var(--accent);
}
.card .ic svg { width: 22px; height: 22px; }
.card.wide { grid-column: span 2; }
.card.feature-big { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }

/* Mini UI pieces inside cards */
.mini { border-radius: 16px; background: var(--chat-bg); padding: 14px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.mini .bubble { animation: none; opacity: 1; transform: none; font-size: 14px; max-width: 92%; }
.mini .note { align-self: center; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .18); color: #fff; }
.wave { display: flex; gap: 2px; align-items: center; height: 22px; }
.wave i { width: 3px; border-radius: 2px; background: var(--tg-blue); }

/* Privacy row */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.points div { border-top: 1px solid var(--line); padding-top: 20px; }
.points p { color: var(--text-2); font-size: 15.5px; }

/* Pricing */
.price-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; padding: 0; overflow: hidden; }
.price-card > div { padding: 36px; }
.price-card > div + div { border-left: 1px solid var(--line); background: var(--bg-soft); }
section.soft .price-card > div + div { background: var(--bg-card); }
.big-num { font-size: 56px; font-weight: 680; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 10px; }
.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15.5px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.3-5.4 6a1 1 0 0 1-1.5 0L5.4 11a1 1 0 1 1 1.5-1.3l1.6 1.8 4.6-5.2a1 1 0 0 1 1.5 1Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.3-5.4 6a1 1 0 0 1-1.5 0L5.4 11a1 1 0 1 1 1.5-1.3l1.6 1.8 4.6-5.2a1 1 0 0 1 1.5 1Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.rows { display: grid; gap: 0; margin-top: 8px; }
.rows .row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows .row:last-child { border-bottom: 0; }
.rows .row span:last-child { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fine { font-size: 13.5px; color: var(--text-3); margin-top: 14px; }

/* Download */
.dl { display: flex; flex-direction: column; gap: 14px; }
.dl .os { display: flex; align-items: center; gap: 14px; }
.dl .os .logo-os { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); }
section.soft .dl .os .logo-os { background: var(--bg-card); }
.dl .os .logo-os svg { width: 26px; height: 26px; }
.dl .meta { font-size: 14px; color: var(--text-3); }
.dl .btn, .dl .tag { align-self: flex-start; margin-top: auto; }
.dl .steps { margin-bottom: 8px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line); }
.steps { margin: 4px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.steps li { margin: 4px 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-size: 17.5px; font-weight: 580; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 300; color: var(--text-3); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 18px; margin: 0; max-width: 680px; }

/* CTA */
.cta { text-align: center; }
.cta .sub { margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14px; color: var(--text-3); }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .disc { margin-top: 22px; max-width: 760px; line-height: 1.6; }

/* Account */
.panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 16px; }
.balance { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.balance .big-num { margin: 4px 0 0; }
.muted { color: var(--text-2); }
.presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.chip {
  height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-weight: 600; color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] { border-color: transparent; background: var(--brand); color: #fff; }
.amount { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.amount input {
  height: 44px; width: 160px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-variant-numeric: tabular-nums;
}
.amount input:focus { outline: 2px solid var(--tg-blue); outline-offset: 1px; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.ledger td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ledger tr:last-child td { border-bottom: 0; }
.plus { color: var(--ok); }
.err { color: var(--warn); font-size: 14.5px; margin-top: 10px; }
.device { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; }
.center { text-align: center; }
.login-box { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 28px; }
.status-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; }
.status-icon svg { width: 34px; height: 34px; }

/* Legal text */
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 48px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal .fill { background: rgba(240, 70, 79, .12); color: var(--accent); padding: 0 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0 56px; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .card.feature-big { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .price-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .points { grid-template-columns: 1fr; gap: 0; }
  .points div { padding: 20px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav-right .ghost { display: none; }
  section { padding: 64px 0; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card, .panel { padding: 22px; }
  .price-card > div { padding: 24px; }
  .chat { min-height: 340px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
