:root {
  --bg: #f6f8fb;
  --surface: rgba(255,255,255,.88);
  --surface-solid: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --brand: #52707e;
  --brand-dark: #3f5965;
  --line: #e7ebf0;
  --shadow: 0 18px 50px rgba(16, 24, 40, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(91,166,255,.18), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(132,95,255,.12), transparent 34%),
    var(--bg);
  line-height: 1.65;
}

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

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(63,89,101,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(23,32,42,.88), rgba(63,89,101,.68)),
    radial-gradient(circle at 20% 30%, rgba(91,166,255,.45), transparent 35%),
    linear-gradient(120deg,#1f2d35,#557b8c);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.hero::before { width: 760px; height: 760px; top: -520px; right: -150px; }
.hero::after { width: 520px; height: 520px; bottom: -420px; left: -80px; }
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -.045em;
}
.hero p {
  margin: 20px auto 0;
  max-width: 650px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.86);
}

.section { padding: 72px 0; }
.section-title {
  text-align: center;
  margin: 0 0 38px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.03em;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -24px auto 40px;
  color: var(--muted);
}

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 26px;
}
.app-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: center;
}
.app-icon {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(16,24,40,.14);
}
.app-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.025em;
}
.app-card p {
  color: var(--muted);
  margin: 0 0 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.btn.primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.btn:hover { transform: translateY(-1px); }

.content-card {
  width: min(900px, calc(100% - 36px));
  margin: 48px auto 72px;
  padding: 34px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-card h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 26px;
  letter-spacing: -.04em;
}
.content-card h2 {
  margin: 30px 0 8px;
  font-size: 20px;
}
.content-card p, .content-card li { color: #46505c; }
.content-card .small { color: var(--muted); font-size: 14px; }

.page-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.page-hero .app-icon {
  width: 118px;
  margin: 0 auto 18px;
  border-radius: 26px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -.045em;
}
.page-hero p {
  color: var(--muted);
  max-width: 660px;
  margin: 14px auto 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.55);
}
.footer strong { color: var(--text); }
.footer a { color: var(--brand-dark); font-weight: 700; text-decoration: none; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.store-badge {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .18s ease, opacity .18s ease;
}
.store-badge img {
  display: block;
  width: 148px;
  height: auto;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge.pending { opacity: .58; cursor: not-allowed; }

.section .apps {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.section .app-card {
  justify-self: center;
  width: 100%;
}

.page-hero .store-badges {
  justify-content: center;
  width: 100%;
}

body:has(.hero) .app-card {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
}
body:has(.hero) .app-card .app-icon {
  width: 118px;
  border-radius: 24px;
}
body:has(.hero) .app-card .store-badges {
  flex-wrap: nowrap;
  gap: 8px;
}
body:has(.hero) .app-card .store-badge img {
  width: 122px;
}

/* Responsive refinements */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body { overflow-wrap: break-word; }
.nav-inner, .app-card > div, .content-card, .page-hero .container { min-width: 0; }
.store-badge img { max-width: 100%; }

@media (max-width: 1050px) {
  .container { width: min(100% - 32px, 960px); }
  .apps {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  .app-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }
  body:has(.hero) .app-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 680px); }

  .nav-inner {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .brand {
    text-align: center;
    font-size: 17px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  .nav-links a {
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero { min-height: 340px; }
  .hero-content { padding: 58px 0; }
  .hero h1 { font-size: clamp(40px, 11vw, 58px); }

  .section { padding: 54px 0; }
  .section-title { margin-bottom: 30px; }
  .section-subtitle {
    margin-top: -18px;
    margin-bottom: 30px;
  }

  .app-card,
  body:has(.hero) .app-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
    text-align: center;
  }

  .app-icon,
  body:has(.hero) .app-card .app-icon {
    width: 124px;
    margin: 0 auto;
    border-radius: 26px;
  }

  .app-card h3 { font-size: 25px; }
  .actions,
  .store-badges,
  body:has(.hero) .app-card .store-badges {
    justify-content: center;
  }
  body:has(.hero) .app-card .store-badges { flex-wrap: wrap; }

  .page-hero { padding: 48px 0 32px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 52px); }

  .content-card {
    width: calc(100% - 28px);
    margin: 32px auto 54px;
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 24px); }

  .nav-inner { padding: 10px 0; }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 5px;
    line-height: 1.2;
    font-size: 12px;
  }

  .hero { min-height: 310px; }
  .hero-content { padding: 46px 0; }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero h1 { font-size: clamp(36px, 12vw, 48px); }
  .hero p {
    margin-top: 16px;
    font-size: 16px;
  }

  .section { padding: 44px 0; }
  .section-title { font-size: 30px; }

  .app-card,
  body:has(.hero) .app-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .app-icon,
  body:has(.hero) .app-card .app-icon {
    width: 112px;
    border-radius: 23px;
  }

  .app-card h3 { font-size: 23px; }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn {
    width: 100%;
    min-height: 44px;
  }

  .store-badges,
  body:has(.hero) .app-card .store-badges {
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .store-badge {
    flex: 0 1 148px;
    min-width: 0;
  }
  .store-badge img,
  body:has(.hero) .app-card .store-badge img {
    width: 100%;
    max-width: 148px;
  }

  .page-hero { padding: 38px 0 26px; }
  .page-hero .app-icon {
    width: 104px;
    border-radius: 23px;
  }
  .page-hero p { font-size: 15px; }

  .content-card {
    width: calc(100% - 24px);
    margin: 26px auto 44px;
    padding: 22px 18px;
    border-radius: 20px;
  }
  .content-card h1 {
    font-size: 34px;
    margin-bottom: 22px;
  }
  .content-card h2 {
    margin-top: 26px;
    font-size: 19px;
  }

  .footer { padding: 28px 0 36px; }
}

@media (max-width: 360px) {
  .nav-links a {
    font-size: 11px;
    padding-left: 3px;
    padding-right: 3px;
  }
  .app-card,
  body:has(.hero) .app-card {
    padding-left: 14px;
    padding-right: 14px;
  }
  .store-badges,
  body:has(.hero) .app-card .store-badges {
    gap: 6px;
  }
  .store-badge { flex-basis: 136px; }
}

/* SEO/i18n product pages */
.lang-switch { border: 1px solid rgba(255,255,255,.22); }
.product-main { width: min(1120px, calc(100% - 36px)); margin: 0 auto 72px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin: 22px 0 36px; }
.feature-grid article { background:var(--surface-solid); border:1px solid var(--line); border-radius:20px; padding:24px; box-shadow:0 10px 30px rgba(16,24,40,.07); }
.feature-grid h2 { margin:0 0 8px; font-size:21px; }
.feature-grid p { margin:0; color:var(--muted); }
.feature-grid.compact { margin:26px 0 8px; }
.product-content { width:100%; margin:28px 0 0; }
.policy-card h1 { margin-bottom:12px; }
.notice { padding:14px 16px; border:1px solid var(--line); background:var(--bg); border-radius:14px; margin:18px 0 26px; color:var(--muted); }
@media(max-width:820px){ .feature-grid{grid-template-columns:1fr;} }
