:root {
  color-scheme: light dark;
  --ink: #10243f;
  --muted: #52647a;
  --line: rgba(16, 36, 63, 0.12);
  --surface: rgba(255, 255, 255, 0.9);
  --teal: #0ba8a1;
  --blue: #1878b8;
  --green: #35cf72;
  --shadow: 0 24px 70px rgba(14, 75, 116, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(11, 168, 161, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(24, 120, 184, 0.16), transparent 32rem),
    #f6f9fc;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a { color: #096f9f; }
a:hover { color: #075578; }

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

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

.logo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(12, 115, 151, 0.22);
}

nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--blue); }

.hero {
  padding: 72px 0 44px;
  text-align: center;
}

.hero .logo {
  width: 112px;
  height: 112px;
  border-radius: 27px;
}

.eyebrow {
  margin: 20px 0 8px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; }
h1 { margin: 0; font-size: clamp(2.35rem, 7vw, 4.4rem); letter-spacing: -0.045em; }
h2 { margin-top: 0; font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -0.02em; }
h3 { margin-bottom: 0.35rem; }

.lede {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white;
}

.panel {
  margin: 22px 0;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.card p, .muted { color: var(--muted); }
.card p { margin: 0; }

.document { max-width: 780px; margin: 42px auto; }
.document header { text-align: center; margin-bottom: 34px; }
.document header .logo { width: 84px; height: 84px; border-radius: 21px; }
.document h1 { margin-top: 14px; font-size: clamp(2rem, 6vw, 3.35rem); }
.document h2 { margin-top: 2.2rem; }
.document li + li { margin-top: 0.45rem; }

.notice {
  padding: 16px 18px;
  border-inline-start: 4px solid var(--green);
  border-radius: 10px;
  background: rgba(53, 207, 114, 0.1);
}

.placeholder {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 176, 32, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 52px;
  color: var(--muted);
  font-size: 0.92rem;
}

footer p { margin: 0; }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; }

[dir="rtl"] { font-family: -apple-system, BlinkMacSystemFont, "SF Hebrew", Arial, sans-serif; }

@media (max-width: 680px) {
  .site-header, footer { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef7ff;
    --muted: #aec0d2;
    --line: rgba(222, 240, 255, 0.14);
    --surface: rgba(17, 34, 53, 0.9);
  }

  body {
    background:
      radial-gradient(circle at 8% 0%, rgba(11, 168, 161, 0.2), transparent 34rem),
      radial-gradient(circle at 92% 12%, rgba(24, 120, 184, 0.22), transparent 32rem),
      #081521;
  }

  .card { background: rgba(26, 49, 72, 0.58); }
  a { color: #64c9ee; }
}
