:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --panel: #ffffff;
  --ink: #172027;
  --muted: #68737d;
  --line: #dce1dd;
  --accent: #0f766e;
  --accent-soft: #e4f0ec;
  --shadow: 0 18px 50px rgba(23, 32, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(246, 247, 245, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 40px;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 750;
}

.vpn-entry {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.vpn-entry:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.content {
  width: min(100%, 1120px);
  padding: clamp(36px, 6vw, 72px);
}

.page-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0;
}

.page-head p {
  color: var(--muted);
  font-size: 19px;
}

.panel {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.muted-panel {
  background: #eef4f1;
  box-shadow: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-title span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.tool {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tool + .tool {
  margin-top: 28px;
}

.tool h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.tool-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tool-heading h3 {
  margin-bottom: 0;
}

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

.download-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
}

.download-card h4 {
  margin-bottom: 0;
  font-size: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.local-link {
  justify-self: start;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.local-link:hover {
  color: var(--accent);
}

.vpn-release-link {
  margin-top: 0;
}

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

.steps {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 17px;
}

.steps p,
.muted-panel p {
  margin-bottom: 0;
}

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

.permission-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #cfddd7;
  border-radius: 8px;
  background: #f7faf8;
}

.permission-grid strong {
  font-size: 16px;
}

.permission-grid span {
  color: var(--muted);
  font-size: 14px;
}

.import-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  width: min(100%, 420px);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.import-button:hover {
  background: #0b5953;
}

.import-note {
  width: min(100%, 420px);
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.developer-config {
  width: min(100%, 420px);
  margin: 34px 0 0 auto;
}

.developer-config summary {
  width: fit-content;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.developer-config summary:hover {
  color: var(--accent);
}

.config-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #cfddd7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.config-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.config-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.config-form input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(15, 118, 110, 0.18);
}

.config-form button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.config-form button:hover {
  background: var(--accent);
}

.usage-panel {
  background: #fffdf7;
  box-shadow: none;
}

.usage-list {
  display: grid;
  gap: 10px;
}

.usage-list article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #ece4d2;
}

.usage-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.usage-list article:last-child {
  padding-bottom: 0;
}

.usage-list span {
  color: #a95d1f;
  font-size: 12px;
  font-weight: 850;
}

.usage-list p {
  margin-bottom: 0;
  color: #31363b;
  font-size: 16px;
}

.faq-panel {
  box-shadow: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
}

.faq-list h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.compact-permissions {
  margin-top: 14px;
}

.compact-permissions article {
  background: #fff;
}

.cases-panel {
  box-shadow: none;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf9;
}

.case-card > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.case-card h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.25;
}

.case-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.vpn-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.vpn-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.vpn-copy > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.vpn-copy h2 {
  font-size: 26px;
}

.vpn-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.vpn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.vpn-actions .button {
  min-height: 40px;
}

.vpn-actions .local-link {
  margin-left: 2px;
}

.muted-panel p {
  color: var(--muted);
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav {
    display: flex;
    gap: 4px;
    margin-top: 18px;
    overflow-x: auto;
  }

  .side-nav a {
    white-space: nowrap;
  }

  .vpn-entry {
    margin-top: 12px;
    width: fit-content;
  }

  .content {
    padding: 32px 20px;
  }

  .download-grid,
  .permission-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .vpn-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .vpn-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .split-actions {
    grid-template-columns: 1fr;
  }
}
