:root {
  color-scheme: light;
  --ink: #18221f;
  --muted: #5d6b65;
  --paper: #f7f8f4;
  --green: #97F9FB;
  --green-dark: #89F9FB;
  --line: #e1e7e1;
  --header-bg: rgba(247, 248, 244, 0.94);
  --card: #f3f4f4;
  --strong: #000;
  --band: #edf2eb;
  --on-muted: #fff;
  --glow: rgba(180, 211, 185, 0.48);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eeec;
  --muted: #a7b3ae;
  --paper: #12171a;
  --line: #2a3338;
  --header-bg: rgba(18, 23, 26, 0.94);
  --card: #1c2327;
  --strong: #fff;
  --band: #181e21;
  --on-muted: #12171a;
  --glow: rgba(67, 247, 251, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
}

nav {
  display: flex;
  margin-left: auto;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.hero {
  padding: 104px 0 112px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 35%, var(--glow), transparent 40%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--muted);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.hero-logo img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin-inline: auto;
}

.hero-logo {
  max-width: none;
}

.hero-copy {
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid var(--muted);
  border-radius: 7px;
  background: var(--muted);
  color: var(--on-muted);
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--ink);
}

section {
  padding: 76px 0;
  scroll-margin-top: 76px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-heading p,
.about-copy {
  color: var(--muted);
}

.owners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.owner {
  min-height: 320px;
  padding: 44px 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  text-align: center;
}

.owner-head {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  image-rendering: pixelated;
}

h3 {
  margin-bottom: 2px;
  font-size: 1.5rem;
}

.owner-role {
  display: block;
  margin-bottom: 10px;
  color: var(--strong);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.owner p {
  margin-bottom: 0;
  color: var(--muted);
}

.about .eyebrow,
.contact .eyebrow {
  color: var(--muted);
}

.about {
  background: var(--band);
}

.about-copy {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.contact {
  padding-bottom: 88px;
}

footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .footer-links {
  display: flex;
  gap: 18px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--ink);
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.rules-content {
  max-width: 820px;
}

.rules-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.rules-list li {
  position: relative;
  padding: 24px 28px 24px 76px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  counter-increment: rules;
}

.rules-list li::before {
  content: counter(rules);
  position: absolute;
  top: 25px;
  left: 26px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #18221f;
  font-size: 0.85rem;
  font-weight: 800;
}

.rules-list h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.rules-list p,
.rules-note {
  margin-bottom: 0;
  color: var(--muted);
}

.rules-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: var(--band);
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1080px);
  }

  .nav {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    padding: 76px 0 84px;
  }

  .owners {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  footer .container {
    flex-direction: column;
    gap: 4px;
  }

  .rules-list li {
    padding: 22px 20px 22px 66px;
  }

  .rules-list li::before {
    left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.theme-toggle {
  position: relative;
  flex: none;
  width: 64px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.theme-toggle:hover { border-color: var(--muted); }

.theme-toggle .ico {
  position: absolute;
  top: 8px;
  width: 18px;
  height: 18px;
}

.theme-toggle .sun { left: 8px; }
.theme-toggle .moon { right: 8px; }

.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  transition: transform 0.3s;
}

:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(30px); }