/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: #e5e7eb;
  line-height: 1.7;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at top left, #14b8a6, #0f766e);
  color: #021417;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(20,184,166,0.45);
}

.logo-text {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5f5;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #14b8a6;
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* SECTIONS */
.section {
  padding: 140px 28px;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container { max-width: 1100px; margin: auto; }

/* INTRO */
.intro h1 { font-size: 60px; margin-bottom: 24px; }
.intro p { max-width: 720px; color: #9ca3af; }

/* SEARCH */
.prompt-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 10px;
  display: block;
}

.prompt input {
  max-width: 540px;
  width: 100%;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(2,6,23,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

.prompt input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 6px rgba(20,184,166,0.25);
}

/* CANVAS */
.visual-canvas {
  margin-top: 52px;
  min-height: 460px;
  background: linear-gradient(180deg, #020617, #0f172a);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.visual-canvas.focused {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 60px 140px rgba(0,0,0,0.6);
}

.canvas-placeholder { color: #6b7280; }

/* DIAGRAM */
.diagram {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.node {
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.node.active {
  background: #14b8a6;
  color: #021417;
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(20,184,166,0.45);
}

.connector { color: #6b7280; }

/* DESCRIPTION */
.step-description {
  max-width: 680px;
  text-align: center;
  color: #cbd5f5;
}

/* CONTROLS */
.diagram-controls {
  display: flex;
  gap: 22px;
}

.diagram-controls button {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(20,184,166,0.5);
  background: rgba(2,6,23,0.9);
  color: #fff;
  cursor: pointer;
}

.diagram-controls button:hover {
  background: #14b8a6;
  color: #021417;
}

/* EXAMPLES */
.examples h2 {
  font-size: 36px;
  margin-bottom: 32px;
}

.example-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.example-item {
  padding: 28px;
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(2,6,23,0.9));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.example-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
}

/* FOOTER */
.footer {
  padding: 80px 28px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.social-links {
  display: flex;
  gap: 18px;
  font-size: 20px;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
