@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --paper: #f6f1e7;
  --paper-2: #efe6d8;
  --ink: #1b1b1b;
  --muted: #5e564a;
  --accent: #d06b39;
  --accent-2: #2f6f67;
  --accent-3: #2f3f5f;
  --line: #d9ccbb;
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 48px rgba(20, 14, 8, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% -10%, #ffe3c7 0%, rgba(255, 227, 199, 0) 60%),
    radial-gradient(900px 700px at 95% 10%, #d0f0e2 0%, rgba(208, 240, 226, 0) 55%),
    linear-gradient(180deg, #f7f2e8 0%, #f2eadf 45%, #ede5d8 100%);
  line-height: 1.6;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 3rem clamp(1.5rem, 2vw, 3rem) 4rem;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.brand-link {
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-3);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.lang-switch a,
.lang-switch span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.lang-switch a {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch .lang-active {
  background: rgba(47, 63, 95, 0.12);
  color: var(--accent-3);
  border-color: rgba(47, 63, 95, 0.2);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(
      90deg,
      rgba(60, 55, 45, 0.08) 0,
      rgba(60, 55, 45, 0.08) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(60, 55, 45, 0.06) 0,
      rgba(60, 55, 45, 0.06) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin: 0 0 0.75rem 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem 0;
}

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

code,
pre {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(208, 107, 57, 0.3);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-3);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(208, 107, 57, 0.25);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-3);
}

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

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.card-title {
  font-weight: 600;
}

.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 111, 103, 0.15);
  color: var(--accent-2);
  font-size: 0.75rem;
}

.file-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.file {
  display: grid;
  gap: 0.2rem;
}

.file-name {
  font-weight: 600;
}

.file-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--accent-3);
  font-size: 0.88rem;
}

.flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  align-self: center;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
}

.side-nav {
  position: sticky;
  top: 2rem;
  align-self: start;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.side-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-3);
}

.side-nav nav {
  display: grid;
  gap: 0.6rem;
}

.side-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.side-nav a:hover {
  color: var(--accent-3);
}

section {
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px rgba(20, 14, 8, 0.08);
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.steps {
  counter-reset: step;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.step {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(208, 107, 57, 0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.code-card {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  background: #151310;
  color: #f8f4ee;
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(21, 19, 16, 0.2);
}

.code-title {
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #f6c9a8;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.checklist,
.roadmap {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li,
.roadmap li {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.6rem;
  color: var(--accent-2);
  font-weight: 700;
}

.faq[open] summary::before {
  content: "–";
}

.faq p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-copy {
  color: var(--muted);
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .brand {
    grid-template-columns: 1fr;
  }
}

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

  .button,
  [data-reveal] {
    transition: none;
  }
}
