* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dce3ec;
  --brand: #1677ff;
  --brand-dark: #0f4fbd;
  --success: #15803d;
  --warning: #9a3412;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.18);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.language-switcher span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
}

.language-switcher a[aria-current="page"] {
  border-color: var(--brand);
  background: #eef6ff;
  color: var(--brand-dark);
  font-weight: 700;
}

.language-switcher a:hover {
  text-decoration: none;
  border-color: #a9c9ff;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px;
}

.hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.card,
.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.content {
  padding: 32px;
}

.card h2,
.content h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.content h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.card p,
.content p,
.content li {
  color: var(--muted);
}

.card p,
.content p {
  margin: 0 0 14px;
}

.content ul {
  margin: 0 0 18px 20px;
  padding: 0;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--brand-dark);
  border-color: #a9c9ff;
}

.button:hover {
  text-decoration: none;
}

.note {
  border-left: 4px solid var(--brand);
  background: #eef6ff;
  padding: 14px 16px;
  border-radius: 6px;
  color: #284564;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.studio-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 42px;
}

.studio-hero {
  text-align: center;
  margin: 0 auto 34px;
}

.studio-hero h1 {
  font-size: 46px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 22px;
  margin: 0 auto;
  width: 100%;
}

.app-tile {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.app-tile img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(22, 119, 255, 0.18);
}

.app-tile h2 {
  margin: 16px 0 6px;
  font-size: 24px;
}

.app-tile p {
  margin: 0;
  color: var(--muted);
}

.button-row.compact {
  justify-content: center;
}

.studio-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-top: 42px;
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 24px;
  }

  .studio-hero h1 {
    font-size: 34px;
  }
}
