:root {
  --ink: #161616;
  --paper: #fff7ed;
  --cream: #fffdf8;
  --line: #1e1e1e;
  --muted: #655f58;
  --orange: #ff4500;
  --red: #c51f13;
  --aqua: #087f8c;
  --shadow: 7px 7px 0 #161616;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 69, 0, 0.18) 0 3px, transparent 4px),
    var(--paper);
  background-size: 34px 34px;
  font-family: "Segoe UI", Candara, Calibri, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 74px);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 247, 237, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  font-weight: 750;
}

nav a:hover {
  color: var(--orange);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(48px, 8vw, 108px) clamp(18px, 5vw, 74px) 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.9;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.96;
}

.lead,
.section p {
  color: #504943;
  font-size: 19px;
  line-height: 1.58;
}

.lead {
  max-width: 680px;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
  box-shadow: var(--shadow);
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #161616;
}

.button.primary {
  color: white;
  background: var(--orange);
}

.button.secondary {
  background: #f6d365;
}

.terminal-card,
.code-panel,
.steps article,
.feature-strip article {
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.terminal-card {
  overflow: hidden;
  background: #181818;
  color: #f7f7f7;
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #232323;
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
}

.terminal-top span:nth-child(2) {
  background: #f6d365;
}

.terminal-top span:nth-child(3) {
  background: var(--aqua);
}

.terminal-label {
  margin: 20px 20px 0;
  color: #ffb39b;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-card pre,
.code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.65;
}

.approval {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 20px 20px;
  padding: 14px;
  border-radius: 7px;
  background: rgba(255, 69, 0, 0.14);
}

.approval span {
  color: rgba(255, 255, 255, 0.72);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 74px) clamp(54px, 7vw, 90px);
}

.feature-strip article,
.steps article {
  padding: 24px;
  background: var(--cream);
}

.feature-strip span,
.steps span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--orange);
  font-weight: 950;
}

.feature-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.feature-strip p,
.steps p {
  margin-bottom: 0;
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 74px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.code-panel {
  position: relative;
  overflow: hidden;
  background: #181818;
  color: #f7f7f7;
}

.code-panel pre {
  padding-top: 56px;
}

.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-weight: 900;
}

.oauth-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  background: #fffdf8;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

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

.dark {
  color: white;
  background: #161616;
}

.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.dark .eyebrow {
  color: #ffb39b;
}

.dark-button {
  color: white;
  background: var(--orange);
  box-shadow: 7px 7px 0 #000;
}

.orange {
  background: #2a130c;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 74px);
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 6px;
  color: white;
  background: #161616;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .oauth-section,
  .feature-strip,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 48px;
  }

  .terminal-card pre,
  .code-panel pre {
    font-size: 13px;
  }
}
