:root {
  --vintage-grape: #493548ff;
  --dusty-grape: #4b4e6dff;
  --air-force-blue: #6a8d92ff;
  --muted-teal: #80b192ff;
  --light-green: #a1e887ff;

  --bg: #101417;
  --bg-soft: #141b1e;
  --panel: #141a1d;
  --panel-alt: #1a2126;
  --text: #edf3ee;
  --text-soft: rgba(237, 243, 238, 0.72);
  --line: rgba(174, 194, 181, 0.12);
  --muted: rgba(237, 243, 238, 0.52);
  --accent: var(--light-green);
  --accent-soft: rgba(161, 232, 135, 0.08);
  --secondary: var(--air-force-blue);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", "Menlo", monospace;
  background: var(--bg);
  color: var(--text);
}

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

img {
  max-width: 100%;
  display: block;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  background: rgba(16, 20, 23, 0.454);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
  border-radius: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--muted-teal);
  border: 1px solid rgba(128, 177, 146, 0.3);
  color: #111820;
  font-weight: 700;
  font-size: 0.92rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-soft);
}

.nav a {
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.button-3d,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border-radius: 0;
}

.button-3d {
  background: var(--light-green);
  color: #111820;
  border-color: transparent;
}

.button-3d:hover,
.button-3d:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(161, 232, 135, 0.08);
  border-color: rgba(161, 232, 135, 0.2);
  color: var(--text);
}

.button-3d.small,
.button-ghost.small {
  min-height: 38px;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
}

.button-ghost {
  background: transparent;
  color: var(--text);
}

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: end;
  padding-bottom: 28px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

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


.section-block {
  padding-top: 72px;
}

.section-heading {
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.section-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

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

.video-card {
  min-width: 0;
  margin: 0;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #090b0c;
}

.video-card figcaption {
  padding-top: 10px;
  color: var(--text-soft);
  font-size: 1rem;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.box-panel {
  background: rgba(20, 26, 29, 0.4);
  border: 1px solid var(--line);
  min-height: 190px;
  padding: 18px 18px 16px;
}

.contribution-grid > div {
  min-height: 190px;
}

.contribution-grid h4 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  letter-spacing: -0.05em;
}

.contribution-grid p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.tools-layout {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.tools-layout.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-block {
  min-height: 200px;
}

.tool-block h4 {
  margin: 0 0 18px;
  font-size: 1.18rem;
}

.tool-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
}

.tool-block li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}

.tool-block li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted-teal);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1280px, calc(100% - 48px));
  margin: 42px auto 0;
  padding: 22px 0 20px;
  border-top: 1px solid var(--line);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.copy-button {
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero,
  .tools-layout,
  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .contribution-grid > div,
  .tool-block {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .page-shell {
    width: calc(100% - 24px);
  }
}

@media (max-width: 640px) {
  .page-shell,
  .site-footer {
    width: calc(100% - 24px);
  }

  .topbar {
    padding: 16px 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-3d,
  .button-ghost {
    width: 100%;
  }

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