:root {
  --bg: #f7f7fa;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5b6170;
  --line: #e4e5ea;
  --brand: #4a42c4;
  --brand-ink: #ffffff;
  --soft: #ecebfb;
  --kk: #0a5fc2;  --kk-soft: #e6effa;
  --hp: #4a42c4;  --hp-soft: #ecebfb;
  --je: #b4500e;  --je-soft: #f8ece3;
  --radius: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 30px 60px -20px rgba(20, 22, 40, .25), 0 12px 24px -12px rgba(20, 22, 40, .15);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --surface: #15171e;
    --ink: #eef0f5;
    --muted: #9aa0ae;
    --line: #23262f;
    --brand: #8f8aff;
    --brand-ink: #0c0d12;
    --soft: #1c1b33;
    --kk: #4a9dff;  --kk-soft: #12223a;
    --hp: #8f8aff;  --hp-soft: #1c1b33;
    --je: #ff9f4a;  --je-soft: #2e1f12;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--kk), var(--hp) 55%, var(--je)); display: grid; place-items: center; }
.brand .logo svg { width: 20px; height: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; margin-left: 1.75rem; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 6vh 0 8vh; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto 30%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hp) 22%, transparent), transparent 70%),
              radial-gradient(closest-side at 80% 70%, color-mix(in srgb, var(--je) 14%, transparent), transparent 70%);
  filter: blur(10px);
}
.pill { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.5rem; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px color-mix(in srgb, #2fbf71 25%, transparent); }
h1 { font-size: clamp(2.7rem, 6.5vw, 4.8rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 1.25rem; }
.grad { background: linear-gradient(100deg, var(--kk), var(--hp) 50%, var(--je)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 30rem; margin: 0 0 2rem; }
.icons { display: flex; gap: .75rem; align-items: center; }
.icons img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.icons span { color: var(--muted); font-size: .9rem; margin-left: .25rem; }

/* Phones */
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; aspect-ratio: 600 / 1304;
  border-radius: 38px; padding: 9px; background: #0d0e12;
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phones .p1 { left: 0; top: 70px; transform: rotate(-7deg); }
.phones .p2 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phones .p3 { right: 0; top: 70px; transform: rotate(7deg); }

/* App sections */
.apps { padding: 4rem 0 2rem; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .75rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.app { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 3.5rem; margin-bottom: 1.5rem; overflow: hidden; }
.app:nth-child(even) .app-text { order: 2; }
.app-text .head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.app-text .head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.app-text h3 { margin: 0; font-size: 1.7rem; letter-spacing: -.02em; }
.app-text .tag { margin: 0; font-size: .95rem; font-weight: 600; }
.app-text p.desc { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.5rem; }
.app-text ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.app-text li { display: flex; gap: .65rem; align-items: flex-start; }
.app-text li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--c); background: var(--c-soft); padding: .45rem .9rem; border-radius: 999px; }
.app-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.app-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--c-soft); }
.app-visual .phone { position: relative; width: 230px; }
.app.kk { --c: var(--kk); --c-soft: var(--kk-soft); }
.app.hp { --c: var(--hp); --c-soft: var(--hp-soft); }
.app.je { --c: var(--je); --c-soft: var(--je-soft); }
.app .tag { color: var(--c); }

/* Flow */
.flow { padding: 5rem 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--brand); font-weight: 800; margin-bottom: 1.25rem; }
.step h4 { margin: 0 0 .4rem; font-size: 1.2rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); }

/* CTA */
.cta { text-align: center; background: linear-gradient(135deg, var(--kk), var(--hp) 55%, var(--je)); color: #fff; border-radius: 32px; padding: 4rem 2rem; margin: 1rem 0 4rem; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 .75rem; }
.cta p { margin: 0 auto 1.75rem; max-width: 32rem; opacity: .9; }
.cta a { display: inline-block; background: #fff; color: #111318; font-weight: 700; text-decoration: none; padding: .85rem 1.4rem; border-radius: 14px; }

/* Content pages */
.page { max-width: 42rem; padding: 6vh 0 5rem; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.page h2 { font-size: 1.25rem; margin: 2.5rem 0 .5rem; letter-spacing: -.01em; }
.page p { color: var(--muted); }
.mail { display: inline-block; margin-top: .5rem; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; padding: .8rem 1.3rem; border-radius: 12px; }
.mail:hover { opacity: .9; }
.note { background: var(--soft); border-radius: 14px; padding: 1rem 1.25rem; color: var(--ink); }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
footer nav a { color: var(--muted); margin-left: 1.25rem; text-decoration: none; }
footer nav a:first-child { margin-left: 0; }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 3vh; }
  .lead { margin-left: auto; margin-right: auto; }
  .icons { justify-content: center; }
  .phones { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 190px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .app { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .app:nth-child(even) .app-text { order: 0; }
  .app-visual { min-height: 400px; }
  .app-visual::before { width: 280px; height: 280px; }
  .app-visual .phone { width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .top nav a { margin-left: 1rem; }
}
@media (max-width: 420px) {
  .phones { height: 380px; }
  .phone { width: 160px; }
  .phones .p1 { left: -10px; } .phones .p3 { right: -10px; }
}
