/* wisar.app — tokens from docs/design/portfolio.svg */
:root {
  --bg: #0F1115;
  --surface: #1A1D24;
  --fg: #E8EAED;
  --muted: #8A8F98;
  --accent: #BB86FC;
  --divider: #2A2F3A;
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

/* Nav */
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
/* Language picker */
.lang {
  position: relative;
  display: inline-flex;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--muted);
}

.lang-caret {
  color: var(--muted);
  font-size: 12px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  min-width: 208px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 20;
}

.lang:hover .lang-menu,
.lang:focus-within .lang-menu {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--fg);
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-menu a[aria-current="page"] {
  font-weight: 600;
  color: var(--accent);
}

.flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 80px 0;
}

/* Policy hero shares the policy column measure */
.hero-policy {
  max-width: 760px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

/* Apps */
.apps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 80px 120px;
}

.apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.apps-head h2 {
  font-size: 18px;
  font-weight: 600;
}

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

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.15s ease;
}

a.app-card:hover {
  transform: translateY(-2px);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.app-mark-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--divider);
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
}

.app-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.app-title h3 {
  font-size: 22px;
  font-weight: 600;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.app-desc {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.app-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.app-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.app-arrow {
  font-size: 16px;
  color: var(--accent);
}

.app-card-empty {
  border: 1.5px dashed var(--divider);
  background: transparent;
}

.app-card-empty .app-title h3 {
  color: var(--muted);
}

.app-card-empty .app-desc {
  margin-top: 20px;
}

/* Policy */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 80px 64px;
  line-height: 1.6;
  font-size: 16px;
  color: var(--fg);
}

.policy h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 8px;
}

.policy p {
  margin: 0 0 16px;
}

.policy-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px !important;
}

.policy-lang {
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px !important;
  line-height: 1.9;
}

.policy-lang a {
  color: var(--muted);
}

.policy-lang a:hover {
  color: var(--fg);
}

.policy-lang [aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

/* Footer */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 80px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.footer-brand {
  font-weight: 600;
}

.footer-tag {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .nav,
  .hero,
  .hero-policy,
  .policy,
  .apps,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .lang-btn-name {
    display: none;
  }
 

  .nav {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .lede {
    font-size: 17px;
  }

  .apps {
    padding-top: 56px;
    padding-bottom: 80px;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}
