:root {
  --black: #050505;
  --ink: #121212;
  --text: #f7f7f7;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, 0.16);
  --chrome: #d9dde0;
  --chrome-dark: #777c80;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.tool-meta,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #767676 42%, #f7f7f7 58%, #1c1c1c);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 255, 255, 0.16);
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover,
.tool-card a:hover,
.links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 124px clamp(18px, 6vw, 82px) 76px;
  border-bottom: 1px solid var(--line);
}

.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 34%);
}

.hero-copy {
  position: relative;
  max-width: 880px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--chrome);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7.2vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p:not(.kicker) {
  max-width: 650px;
  color: #d6d6d6;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  justify-content: center;
  min-width: 190px;
  border-radius: 4px;
  padding: 14px 18px;
  font-weight: 800;
}

.button.primary {
  color: #000;
  background: linear-gradient(135deg, #fff, #aeb4b8 48%, #fff);
}

.button.secondary {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

section:not(.hero) {
  padding: 82px clamp(18px, 6vw, 82px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(260px, 1.15fr);
  gap: 42px;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

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

.tool-section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tool-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tool-section-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #000;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #858b8f 48%, #fff);
  font-size: 0.78rem;
  font-weight: 900;
}

.tool-section-title h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.tool-card,
.prompt-list article,
.rule-grid article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.tool-card {
  min-height: 330px;
  padding: 22px;
}

.tool-meta {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--chrome);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-meta a {
  color: #fff;
  border-bottom: 1px solid var(--chrome-dark);
}

.tool-card strong {
  display: block;
  margin: 22px 0 6px;
  color: #fff;
}

.prompts {
  background: var(--paper);
  color: var(--ink);
}

.prompts p,
.prompts .kicker {
  color: #5f5f5f;
}

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

.prompt-list article {
  background: #f3f3f3;
  border-color: #d8d8d8;
  padding: 22px;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

code {
  color: #111;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.rules {
  background: #080808;
}

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

.rule-grid article {
  padding: 24px;
}

.rule-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--chrome);
  font-weight: 900;
}

.links {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1.2fr);
  gap: 42px;
  background: #fff;
  color: #111;
}

.links p,
.links .kicker {
  color: #5f5f5f;
}

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

.link-columns div {
  border-top: 2px solid #111;
  padding-top: 18px;
}

.links a {
  display: block;
  color: #555;
  padding: 9px 0;
  border-bottom: 1px solid #e0e0e0;
}

.links a:hover {
  color: #000;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 82px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .intro,
  .links {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .rule-grid,
  .link-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 90vh;
    padding: 108px 18px 52px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.94));
  }

  section:not(.hero) {
    padding: 58px 18px;
  }

  .tool-grid,
  .prompt-list,
  .rule-grid,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
