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

:root {
  color-scheme: light;
  --ink: #0b0b11;
  --paper: #f8f4ee;
  --accent: #ff4f5a;
  --accent-2: #1f6bff;
  --accent-3: #ff9f1c;
  --muted: #5b5b6a;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(17, 20, 32, 0.1);
  --shadow: 0 24px 60px rgba(14, 14, 28, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fef7f1 0%, #f8f4ee 40%, #f1efe8 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(40px);
  opacity: 0.5;
  border-radius: 50%;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  background: radial-gradient(circle, rgba(255, 79, 90, 0.85), transparent 60%);
  top: -160px;
  left: -120px;
}

.orb-b {
  background: radial-gradient(circle, rgba(31, 107, 255, 0.65), transparent 60%);
  right: -160px;
  top: 20%;
  animation-delay: 4s;
}

.orb-c {
  background: radial-gradient(circle, rgba(255, 159, 28, 0.6), transparent 60%);
  left: 10%;
  bottom: -180px;
  animation-delay: 8s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.35;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 8vw 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.pill {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

main {
  padding: 0 8vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  padding: 40px 0 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 79, 90, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 26px;
}


.signal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(255, 79, 90, 0.3);
  animation: pulse 2s infinite;
}


.section {
  padding: 40px 0;
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.section h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.feature-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.yaml-block {
  background: #f7f5ef;
  color: #1d1f2a;
  border-radius: 16px;
  padding: 16px 16px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  border: 1px solid rgba(17, 20, 32, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yaml-block pre {
  margin: 0;
  overflow: auto;
  flex: 1;
}

.yaml-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6c6f7c;
  font-weight: 600;
}

.yaml-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #ffc857;
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.3);
}

/* YAML Structure */
.schema-subheading {
  font-size: 1.1rem;
  margin: 28px 0 16px;
}

.schema-subheading:first-child {
  margin-top: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schema-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}

.schema-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.schema-table code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: rgba(17, 20, 32, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Demo cards */
.demo-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  display: grid;
  gap: 10px;
}

.demo-card + .demo-card {
  margin-top: 28px;
}

.demo-card h3 {
  font-size: 1.15rem;
}

.demo-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.demo-content {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.yaml-demo {
  min-height: auto;
  flex-shrink: 0;
}

.graph-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(17, 20, 32, 0.08);
  background: #f8f9fa;
  padding: 10px 8px;
}

.graph-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.graph-panel .mermaid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.graph-panel svg {
  max-width: 100%;
  height: auto;
}

.graph-panel .nodeLabel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  font-size: 16px;
}

.demo-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.demo-playground-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: opacity 0.2s ease;
}

.demo-playground-link:hover {
  opacity: 0.75;
}

footer {
  padding: 24px 8vw 40px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

section, header, footer, .feature-item, .demo-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.reveal, header.reveal, footer.reveal, .feature-item.reveal, .demo-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

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

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 24px 6vw 16px;
  }

  main {
    padding: 0 6vw 70px;
  }

  .demo-card {
    padding: 18px;
  }

  .demo-content {
    flex-direction: column;
  }

}
