@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=DM+Sans:wght@400;500;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg-main: #fef8f0;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-elevated: rgba(254, 245, 233, 0.94);
  --bg-hover: rgba(245, 235, 221, 0.86);
  --border: rgba(232, 219, 209, 0.92);
  --border-strong: rgba(218, 200, 182, 0.95);
  --text-primary: #17120c;
  --text-secondary: #5f5448;
  --text-tertiary: #9a8975;
  --accent: #485c11;
  --accent-strong: #5a7015;
  --warm-soft: rgba(218, 160, 56, 0.16);
  --card-shadow: 0 28px 90px rgba(54, 44, 28, 0.08);
  --panel-shadow: 0 18px 42px rgba(54, 44, 28, 0.06);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Crimson Text", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 14% 18%, rgba(218, 160, 56, 0.14), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(72, 92, 17, 0.11), transparent 20%),
    radial-gradient(circle at 78% 78%, rgba(218, 160, 56, 0.1), transparent 18%),
    linear-gradient(180deg, #fef8f0 0%, #fcf4e8 52%, #f8eee1 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(72, 92, 17, 0.18);
  color: var(--text-primary);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.75;
}

.ambient-left {
  top: 3rem;
  left: -9rem;
  background: rgba(234, 215, 165, 0.75);
}

.ambient-right {
  top: 18rem;
  right: -8rem;
  background: rgba(167, 190, 121, 0.28);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(54, 44, 28, 0.06);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 1px solid rgba(218, 160, 56, 0.3);
  background:
    linear-gradient(135deg, rgba(218, 160, 56, 0.2), rgba(72, 92, 17, 0.08)),
    rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-mark {
  font-size: 1.95rem;
  line-height: 1;
  font-family: var(--font-sans);
}

.eyebrow,
.section-eyebrow,
.metric-label,
.feature-kicker,
.command-label,
.resource-kicker,
.note-label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.68rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.72);
}

.nav-cta {
  background: linear-gradient(135deg, #485c11 0%, #5a7015 100%);
  color: #fff6e8 !important;
  box-shadow:
    0 16px 32px rgba(72, 92, 17, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-primary);
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  padding: 1.1rem 0 0;
}

.surface {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(254, 245, 233, 0.94)),
    var(--bg-surface);
  box-shadow: var(--card-shadow);
}

.surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(218, 160, 56, 0.12), transparent 26%),
    radial-gradient(circle at left center, rgba(72, 92, 17, 0.06), transparent 22%);
}

.surface > * {
  position: relative;
  z-index: 1;
}

.hero-grid,
.split-grid {
  display: grid;
  gap: 1.45rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.hero-panel,
.terminal-panel,
.overview-panel,
.workflow-panel,
.quickstart-panel,
.command-panel,
.security-panel,
.storage-panel,
.resources-panel,
.cta-panel {
  padding: clamp(1.35rem, 2vw, 1.85rem);
}

.hero-panel {
  min-height: 0;
}

.hero-panel h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero-panel h1 {
  max-width: 24ch;
  font-size: clamp(3.4rem, 8vw, 6rem);
  text-wrap: balance;
}

.hero-copy,
.section-heading p,
.metric-card p,
.feature-card p,
.workflow-step p,
.quickstart-note,
.command-card p,
.security-card p,
.storage-list p,
.resource-card p,
.cta-panel > p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-copy {
  max-width: 80rem;
  margin-top: 1.4rem;
  font-size: 1.06rem;
}

.chip-row,
.hero-actions,
.hero-metrics,
.feature-grid,
.workflow-list,
.code-stack,
.command-grid,
.security-grid,
.resource-grid,
.storage-list {
  display: grid;
  gap: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-secondary);
  box-shadow: 0 12px 30px rgba(54, 44, 28, 0.05);
}

.hero-actions {
  display: flex;
  grid-auto-flow: column;
  justify-content: flex-start;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff7eb;
  background: linear-gradient(135deg, #485c11 0%, #5a7015 50%, #485c11 100%);
  box-shadow:
    0 18px 36px rgba(72, 92, 17, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(54, 44, 28, 0.06);
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.85rem;
}

.metric-card,
.feature-card,
.workflow-step,
.command-card,
.security-card,
.resource-card,
.storage-list article,
.note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--panel-shadow);
}

.metric-card,
.feature-card,
.command-card,
.security-card,
.resource-card,
.storage-list article,
.note-card {
  padding: 1.15rem 1.2rem;
}

.metric-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.metric-card p {
  margin-bottom: 0;
}

.terminal-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(29, 26, 21, 0.96), rgba(17, 15, 12, 0.98)),
    #17120c;
  color: #f8efe3;
}

.terminal-panel::after {
  background:
    radial-gradient(circle at top right, rgba(218, 160, 56, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(104, 130, 49, 0.16), transparent 22%);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.terminal-tabs {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.terminal-tab {
  padding: 0.48rem 0.78rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 245, 233, 0.66);
}

.terminal-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff6e8;
}

.example-panel {
  display: none;
  flex: 1;
  padding-top: 1rem;
}

.example-panel.active {
  display: block;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.terminal-panel .code-toolbar {
  color: rgba(255, 245, 233, 0.6);
}

.copy-button {
  padding: 0.52rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

pre {
  margin: 0;
  overflow: auto;
  padding: 1.1rem 1rem;
  border-radius: 1.3rem;
  background: rgba(13, 12, 10, 0.82);
  font-size: 0.88rem;
  line-height: 1.75;
}

.quickstart-panel pre {
  background: rgba(25, 21, 17, 0.92);
  color: #f8efe3;
}

.section-heading {
  max-width: 52rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}

.section-heading p {
  margin: 0.95rem 0 0;
}

.overview-panel .feature-grid,
.command-grid,
.security-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.feature-card h3,
.command-card h3,
.security-card h3,
.resource-card h3,
.workflow-step h3 {
  margin: 0.45rem 0 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.feature-card p,
.command-card p,
.security-card p,
.resource-card p {
  margin-bottom: 0;
}

.split-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.workflow-list {
  margin-top: 1.6rem;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
}

.workflow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--warm-soft);
  color: var(--accent);
  font-weight: 800;
}

.workflow-step p,
.workflow-step h3 {
  margin-top: 0;
}

.quickstart-panel .code-stack {
  margin-top: 1.35rem;
}

.quickstart-note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.storage-list code {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.9rem;
  background: rgba(72, 92, 17, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.storage-panel {
  display: flex;
  flex-direction: column;
}

.storage-list {
  margin-top: 1.4rem;
}

.storage-list article p {
  margin-bottom: 0;
}

.note-card {
  margin-top: 1rem;
  background: rgba(72, 92, 17, 0.08);
}

.resource-card {
  display: block;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(54, 44, 28, 0.09);
}

.cta-panel {
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-top: 0.5rem;
}

.cta-panel > p {
  max-width: 48rem;
  margin: 1rem auto 0;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.4rem 0.4rem 0;
  color: var(--text-secondary);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--text-tertiary);
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.reveal {
  animation: rise-in 650ms ease both;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
  transition: opacity 550ms ease, transform 550ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .split-grid,
  .overview-panel .feature-grid,
  .command-grid,
  .security-grid,
  .resource-grid,
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .terminal-panel {
    min-height: 26rem;
  }
}

@media (min-width: 1121px) {
  .terminal-panel {
    min-height: 32rem;
  }
}

@media (max-width: 780px) {
  .site-shell {
    width: min(100% - 20px, 1440px);
  }

  .topbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 0.25rem;
  }

  .nav-links.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-links a {
    text-align: center;
  }

  .hero-panel h1 {
    max-width: none;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-actions {
    grid-auto-flow: row;
  }

  .overview-panel .feature-grid,
  .command-grid,
  .security-grid,
  .resource-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .resource-card,
  .nav-links a,
  .reveal {
    transition: none;
  }
}
