/* LEPTAG LTD — site styles. No external requests: system fonts only. */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #2f6bff;
  --accent-hover: #1f58ec;
  --accent-soft: rgba(47, 107, 255, 0.1);
  --on-accent: #ffffff;
  --band: #1d1d1f;
  --band-ink: #f5f5f7;
  --band-muted: #a1a1a6;
  --nav-bg: rgba(251, 251, 253, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.12);
  --tile-shadow: 0 1px 1px rgba(0, 0, 0, 0.05), 0 14px 28px -14px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #111113;
    --surface-2: #1a1a1d;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-soft: rgba(91, 140, 255, 0.16);
    --band: #161618;
    --band-ink: #f5f5f7;
    --band-muted: #a1a1a6;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --tile-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span { font-weight: 650; font-size: 17px; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-2); font-size: 14px; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-links .hide-sm { display: none; }
@media (min-width: 640px) { .nav-links .hide-sm { display: list-item; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  font: inherit; font-size: 16px; font-weight: 550; letter-spacing: -0.01em;
  background: var(--accent); color: var(--on-accent);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 34px; padding: 0 16px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; min-height: 44px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }

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

.hero { padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 96px 0 112px; } }

.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; font-size: 14px; font-weight: 550; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 650; }

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
h1 .soft { color: var(--muted); }

.lead {
  margin: 24px 0 0; max-width: 34ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.012em;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }

/* App-tile composition */
.tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.4vw, 16px);
  width: min(100%, 400px); margin: 0 auto;
}
.tile {
  aspect-ratio: 1; border-radius: 23%;
  display: grid; place-items: center;
  box-shadow: var(--tile-shadow);
  color: #fff;
  position: relative;
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
}
.tile svg { width: 44%; height: 44%; }
.tile.ghost {
  background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--muted);
}
.tile.ghost::after { display: none; }
.tile.ghost svg { opacity: 0.55; }
.t-blue   { background: linear-gradient(150deg, #6b97ff, #2f55f5); }
.t-amber  { background: linear-gradient(150deg, #ffbe6b, #ff7b3a); }
.t-green  { background: linear-gradient(150deg, #5ad9ae, #15a173); }
.t-violet { background: linear-gradient(150deg, #c79bff, #7a4cf6); }
.t-ink    { background: linear-gradient(150deg, #3a3a3e, #121214); }
.t-ink svg { width: 52%; height: 52%; }

@media (prefers-reduced-motion: no-preference) {
  .tile.float { animation: float 6s ease-in-out infinite; }
  .tile.float.d2 { animation-delay: -2s; }
  .tile.float.d3 { animation-delay: -4s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.section-head { max-width: 640px; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }

h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
}
.section-head p:not(.kicker) { margin: 16px 0 0; font-size: 19px; color: var(--muted); letter-spacing: -0.01em; }

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .chip {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px;
}
.card .chip svg { width: 22px; height: 22px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* Principles */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } .split .section-head { margin-bottom: 0; position: sticky; top: 104px; align-self: start; } }

.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li {
  counter-increment: p;
  display: grid; grid-template-columns: 48px 1fr; gap: 0 12px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.principles li:first-child { border-top: 0; padding-top: 0; }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px;
}
.principles p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* Company details */
.facts {
  margin: 0; display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding: 22px 28px; border-top: 1px solid var(--line); min-width: 0; }
.facts div:first-child { border-top: 0; }
@media (min-width: 640px) {
  .facts div:nth-child(2) { border-top: 0; }
  .facts div:nth-child(odd) { border-right: 1px solid var(--line); }
}
.facts dt { font-size: 13px; font-weight: 550; color: var(--muted); letter-spacing: 0.01em; }
.facts dd { margin: 6px 0 0; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }

/* Contact band */
.band {
  background: var(--band); color: var(--band-ink);
  border-radius: 28px; padding: 48px 28px; text-align: center;
  position: relative; overflow: hidden;
}
@media (min-width: 640px) { .band { padding: 72px 48px; } }
.band::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.band > * { position: relative; }
.band h2 { color: var(--band-ink); }
.band p { margin: 14px auto 0; max-width: 40ch; color: var(--band-muted); font-size: 19px; }
.band .btn { margin-top: 32px; }
.band .mail { display: block; margin-top: 14px; font-size: 15px; color: var(--band-muted); }

/* ---------- Footer ---------- */

.footer { padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--ink-2); }

/* ---------- Document pages (privacy) ---------- */

.doc { padding: 56px 0 88px; }
@media (min-width: 900px) { .doc { padding: 88px 0 120px; } }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.doc .updated { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.doc .intro { margin: 28px 0 0; font-size: 19px; color: var(--ink-2); letter-spacing: -0.01em; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); }
.doc .box {
  margin: 20px 0 0; padding: 20px 24px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.doc .box p:first-child { margin-top: 0; }

/* 404 */
.lost { min-height: calc(100vh - 56px - 120px); display: grid; place-items: center; text-align: center; padding: 72px 0; }
.lost p { margin: 16px 0 28px; color: var(--muted); font-size: 19px; }
