/* BizKey — landing styles */

:root {
  --bg: #fff8f4;
  --bg-elev: #ffffff;
  --bg-soft: #fff1ea;
  --text: #1a1a1f;
  --text-soft: #5b5b66;
  --text-muted: #8a8a96;
  --border: rgba(20, 20, 30, 0.08);
  --accent: #ff5a2b;
  --accent-2: #e63946;
  --accent-soft: rgba(255, 90, 43, 0.12);
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.04), 0 2px 8px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(230, 57, 70, 0.12), 0 2px 8px rgba(20, 20, 30, 0.06);
  --shadow-lg: 0 24px 60px rgba(230, 57, 70, 0.18), 0 8px 24px rgba(20, 20, 30, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --maxw: 1180px;
  --gradient: linear-gradient(135deg, #ff7a3d 0%, #ff5a2b 50%, #e63946 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d0c;
    --bg-elev: #18161a;
    --bg-soft: #1f1c1f;
    --text: #f4f1ee;
    --text-soft: #c2bfbb;
    --text-muted: #8a8780;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #ff7a4a;
    --accent-2: #ff4f5e;
    --accent-soft: rgba(255, 122, 74, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s ease;
}
a:hover { opacity: .8; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-elev);
}

.lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-switch a.active {
  background: var(--accent);
  color: white;
}

@media (max-width: 720px) {
  .nav { gap: 14px; }
  .nav a:not(.lang-switch a) { display: none; }
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -200px -200px auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(255, 90, 43, 0.18), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -200px -200px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.12), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero { padding: 48px 0 24px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-soft);
  margin: 0 0 32px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.btn-ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { opacity: 1; background: var(--bg-soft); }

.appstore-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero phone showcase */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.phone {
  width: 280px;
  border-radius: 44px;
  background: #000;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-3deg);
  transition: transform .4s ease;
}

.phone img {
  border-radius: 36px;
  display: block;
  width: 100%;
}

.phone.secondary {
  position: absolute;
  width: 240px;
  right: -20px;
  top: 30px;
  transform: rotate(7deg);
  opacity: .9;
  z-index: -1;
}

@media (max-width: 980px) {
  .hero-visual { min-height: 520px; }
  .phone.secondary { right: 10%; top: 20px; }
}

@media (max-width: 520px) {
  .phone { width: 240px; }
  .phone.secondary { width: 200px; right: 6%; }
}

/* ── Sections ───────────────────────────────────────── */

section {
  padding: 80px 0;
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 700;
}

.section-header p {
  color: var(--text-soft);
  font-size: 18px;
  margin: 0;
}

/* Features */

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

@media (max-width: 880px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.feature h3 {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Screenshots gallery */

.screenshots {
  background: var(--bg-soft);
}

.shots-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .shots-row { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 520px) {
  .shots-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.shot {
  background: #000;
  padding: 6px;
  border-radius: 36px;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}

.shot:hover { transform: translateY(-4px); }

.shot img { border-radius: 30px; }

/* Privacy callout */

.privacy-callout {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 720px) {
  .privacy-callout {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 20px;
    text-align: center;
  }
}

.privacy-callout .lock {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 720px) {
  .privacy-callout .lock { margin: 0 auto; }
}

.privacy-callout h3 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.015em;
}

.privacy-callout p {
  margin: 0;
  color: var(--text-soft);
}

/* CTA bottom */

.cta-final {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 90, 43, 0.15), transparent 60%);
  z-index: 0;
}

.cta-final .container { position: relative; z-index: 1; }

.cta-final h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.05;
}

.cta-final p {
  font-size: 18px;
  color: var(--text-soft);
  margin: 0 0 32px;
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .links a {
  color: var(--text-soft);
  font-weight: 500;
}

/* ── Legal pages ────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.1;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

.legal p, .legal li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 22px;
}

.legal a { font-weight: 500; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.legal-back:hover { color: var(--accent); opacity: 1; }
