:root {
  --bg: #0a1114;
  --bg-2: #0e181c;
  --surface: #121e23;
  --surface-2: #17262c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9f2f0;
  --muted: #94a8a4;
  --mint: #6ee7d2;
  --mint-2: #2fb8a3;
  --teal-deep: #0d3a3a;
  --danger: #ff7a7a;
  --radius: 22px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Navigatsiya ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 17, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: #062421; }
.btn-primary:hover { background: #8af0de; }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(110, 231, 210, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(47, 184, 163, 0.12), transparent 60%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(110, 231, 210, 0.08);
  border: 1px solid rgba(110, 231, 210, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
}

h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  margin: 22px 0 20px;
}
.display em { font-style: italic; color: var(--mint); }

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 560px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Telefon maketlari ---------- */

.phones {
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  width: 270px;
  height: 560px;
  border-radius: 46px;
  background: #05090b;
  border: 10px solid #1d2a2f;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.phone-front { right: 30px; top: 10px; z-index: 2; }
.phone-back { right: 230px; top: 50px; transform: rotate(-6deg); opacity: 0.92; }

.screen-unlock {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 22px 24px;
  background: linear-gradient(180deg, #0c1216, #062221);
  text-align: center;
}
.screen-unlock .shield { width: 40px; height: 40px; color: var(--mint); }
.screen-unlock .app-name { font-weight: 700; font-size: 22px; margin-top: 8px; }
.screen-unlock .hint { color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.screen-unlock svg.pattern { width: 100%; height: auto; }
.screen-unlock .links { margin-top: auto; color: rgba(233, 242, 240, 0.5); font-size: 11px; line-height: 2; }

.pattern-line {
  fill: none;
  stroke: var(--mint);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw 4.5s ease-in-out infinite;
}
@keyframes draw {
  0% { stroke-dashoffset: 520; }
  45%, 75% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.screen-gallery { height: 100%; background: #0d1417; padding: 48px 10px 10px; }
.screen-gallery .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  padding: 0 6px 10px;
}
.screen-gallery .search {
  background: #1a262b;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
  margin: 0 4px 10px;
}
.screen-gallery .chips { display: flex; gap: 6px; margin: 0 4px 10px; font-size: 11px; }
.screen-gallery .chip { background: #1a262b; border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.screen-gallery .chip.on { background: var(--mint); color: #062421; font-weight: 600; }
.screen-gallery .day { font-size: 12px; font-weight: 600; margin: 0 6px 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.grid3 span { aspect-ratio: 1; border-radius: 3px; }
.t1 { background: linear-gradient(160deg, #f6b26b, #c2185b); }
.t2 { background: linear-gradient(160deg, #4fc3f7, #1a237e); }
.t3 { background: linear-gradient(160deg, #aed581, #2e7d32); }
.t4 { background: linear-gradient(160deg, #ffe082, #ef6c00); }
.t5 { background: linear-gradient(160deg, #b39ddb, #4527a0); }
.t6 { background: linear-gradient(160deg, #80deea, #00695c); }
.t7 { background: #e9ecef; position: relative; }
.t7::after { content: "PDF"; position: absolute; inset: 0; display: grid; place-items: center; color: #c62828; font-size: 11px; font-weight: 800; }
.t8 { background: linear-gradient(160deg, #ffab91, #6d4c41); }
.t9 { background: linear-gradient(160deg, #90caf9, #f48fb1); }

/* ---------- Ishonch qatori ---------- */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  color: var(--muted);
  font-size: 15px;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* ---------- Bo'limlar ---------- */

section { padding: 96px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); }
.section-head h2 em { color: var(--mint); }
.section-head p { color: var(--muted); font-size: 19px; margin: 16px 0 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.card h3 { font-size: 20px; margin: 18px 0 10px; letter-spacing: -0.01em; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(110, 231, 210, 0.1);
  color: var(--mint);
}
.card .icon svg { width: 24px; height: 24px; }

.pro-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--mint);
  color: #062421;
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------- Xavfsizlik ---------- */

.security { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 4px;
}

.flow {
  margin: 40px auto 0;
  max-width: 900px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.8;
}
.flow b { color: var(--mint); font-weight: 600; }

.honest {
  margin-top: 40px;
  border: 1px solid rgba(255, 122, 122, 0.25);
  background: rgba(255, 122, 122, 0.05);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.honest h3 { font-size: 20px; margin-bottom: 12px; }
.honest ul { margin: 0; padding-left: 20px; color: var(--muted); }
.honest li { margin: 6px 0; }

/* ---------- Taqqoslash ---------- */

.compare {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 16px;
}
.compare th, .compare td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--muted); font-weight: 500; font-size: 14px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 24%; }
.compare .yes { color: var(--mint); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ---------- Narxlar ---------- */

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { padding: 36px; }
.plan.featured {
  border-color: rgba(110, 231, 210, 0.45);
  background: linear-gradient(180deg, rgba(110, 231, 210, 0.08), var(--surface) 55%);
}
.plan .name { font-weight: 700; font-size: 18px; }
.plan .price { font-family: var(--serif); font-size: 56px; line-height: 1; margin: 16px 0 6px; }
.plan .price small { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; }
.plan li { padding: 8px 0 8px 30px; position: relative; color: var(--text); font-size: 16px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--mint);
  border-bottom: 2.5px solid var(--mint);
  transform: rotate(-45deg);
}
.plan .options { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* ---------- Yakuniy CTA va footer ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(110, 231, 210, 0.18), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 68px); margin-bottom: 18px; }
.cta p { color: var(--muted); margin: 0 0 30px; font-size: 19px; }

footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- Matnli sahifalar (Privacy, Terms, Support) ---------- */

.doc { padding: 72px 0 96px; }
.doc .container { max-width: 780px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 64px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #c8d6d3; }
.doc ul { padding-left: 22px; }
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 12px;
  padding: 18px 22px;
}

/* ---------- Moslashuvchanlik ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone-front { right: 50%; transform: translateX(78%); }
  .phone-back { right: 50%; transform: translateX(-8%) rotate(-6deg); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav .lang { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 48px; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .phones { height: 520px; }
  .phone-back { display: none; }
  .phone-front { transform: translateX(50%); }
  .compare th, .compare td { padding: 12px 8px; font-size: 14px; }
  .nav .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pattern-line { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}

/* ---------- Yapon tili: serif sarlavhalar uchun mos shrift, so'z o'rtasidan bo'lmaslik ---------- */

:lang(ja) .display,
:lang(ja) .section-head h2,
:lang(ja) .cta h2,
:lang(ja) .doc h1,
:lang(ja) .tool-page h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
:lang(ja) .display { font-size: clamp(36px, 5.2vw, 64px); }
:lang(ja) .section-head h2, :lang(ja) .cta h2 { font-size: clamp(30px, 4vw, 48px); }
:lang(ja) .tool-page h1, :lang(ja) .doc h1 { font-size: clamp(30px, 4.5vw, 48px); }
:lang(ja) body { word-break: normal; line-break: strict; }
