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

:root {
  --bg: #0f1726;
  --bg-alt: #111b2e;
  --panel: #16223a;
  --text: #eef3f8;
  --muted: #a7b3c8;
  --accent: #ff9f1c;
  --accent-2: #2ec4b6;
  --accent-3: #d0f4de;
  --outline: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 45px rgba(5, 10, 25, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1f2c4a 0%, var(--bg) 45%) fixed;
  min-height: 100vh;
}

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

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

header {
  position: relative;
  overflow: hidden;
  padding: 80px 6vw 60px;
  background: linear-gradient(140deg, rgba(46, 196, 182, 0.15), rgba(255, 159, 28, 0.15));
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 159, 28, 0.2), transparent 55%);
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

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

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  position: relative;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1205;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.secondary {
  background: rgba(46, 196, 182, 0.2);
  color: var(--text);
  border: 1px solid rgba(46, 196, 182, 0.5);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.hero-card {
  background: rgba(22, 34, 58, 0.85);
  border: 1px solid var(--outline);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

main {
  padding: 0 6vw 80px;
}

section {
  margin-top: 70px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title span {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.section-title::before {
  content: "";
  width: 36px;
  height: 4px;
  background: var(--accent-2);
  border-radius: 999px;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--outline);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(5, 10, 25, 0.35);
}

.panel h3 {
  margin-top: 0;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.6;
}

.lifecycle-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lifecycle-diagram {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.5);
  border: 1px solid var(--outline);
  padding: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--muted);
  overflow: hidden;
  border-radius: 16px;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--outline);
  text-align: left;
}

.table thead {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.2);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.screenshot {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.callout {
  border-left: 4px solid var(--accent-2);
  padding: 14px 16px;
  background: rgba(46, 196, 182, 0.12);
  color: var(--muted);
  border-radius: 12px;
}

.code {
  background: #0b1220;
  border: 1px solid var(--outline);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9rem;
  color: #d7e3f7;
  overflow-x: auto;
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
  font-family: "Fraunces", serif;
  margin-top: 28px;
}

.doc-content p,
.doc-content li {
  color: var(--muted);
  line-height: 1.7;
}

.doc-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9em;
}

.doc-content pre {
  background: #0b1220;
  border: 1px solid var(--outline);
  padding: 16px 18px;
  border-radius: 12px;
  color: #d7e3f7;
  overflow-x: auto;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.9rem;
}

footer {
  padding: 50px 6vw 70px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--outline);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

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

@media (max-width: 720px) {
  header {
    padding: 60px 6vw 40px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .table {
    display: block;
    overflow-x: auto;
  }
}
