:root {
  --sunset-1: #ff7e5f;
  --sunset-2: #feb47b;
  --lagoon: #06b6a8;
  --ink: #1f2a37;
  --card-bg: #fffaf3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--sunset-1), var(--sunset-2) 45%, var(--lagoon));
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--lagoon);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.subtitle {
  color: #52606d;
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.signup-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d8dee4;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: #52606d;
}

button {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--sunset-1), var(--lagoon));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.92;
}

.errors {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #9c2b25;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: white;
  font-weight: 600;
}

.site-footer a.footer-highlight {
  font-size: 1.1rem;
}

.card.policy {
  max-width: 680px;
  text-align: left;
}

.card.policy h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.card.policy p {
  color: #52606d;
  line-height: 1.6;
}

.consent a {
  color: var(--lagoon);
  font-weight: 600;
}

.card.policy.wide {
  max-width: 760px;
}

.architecture {
  margin: 2rem 0 2.5rem;
}

.architecture h2 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.architecture .hint {
  font-size: 0.85rem;
  color: #52606d;
  margin: 0 0 1.25rem;
}

.diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.node {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #d8dee4;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.node:hover,
.node:focus-visible,
.node.is-active {
  transform: translateY(-2px);
  border-color: var(--lagoon);
  box-shadow: 0 8px 20px rgba(6, 182, 168, 0.25);
}

.node-agent {
  background: linear-gradient(120deg, var(--sunset-1), var(--lagoon));
  color: white;
  border: none;
  font-size: 1.05rem;
  animation: node-pulse 2.4s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 168, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(6, 182, 168, 0);
  }
}

.connector {
  width: 2px;
  height: 26px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--lagoon) 0,
    var(--lagoon) 6px,
    transparent 6px,
    transparent 12px
  );
  background-size: 2px 24px;
  animation: connector-flow 0.8s linear infinite;
}

@keyframes connector-flow {
  from {
    background-position-y: 0;
  }
  to {
    background-position-y: 24px;
  }
}

.branches {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 560px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.branches .node {
  max-width: 170px;
  font-size: 0.85rem;
  padding: 0.75rem 0.6rem;
}

.diagram-detail {
  margin-top: 1.5rem;
  background: #f4f8f7;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  min-height: 4.5rem;
  text-align: left;
}

.diagram-detail h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}

.diagram-detail p {
  margin: 0;
  color: #52606d;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .node-agent,
  .connector {
    animation: none;
  }
}
