:root {
  --bg: #0a0e14;
  --bg-soft: #0f141d;
  --fg: #e6edf3;
  --muted: #7d8da3;
  --line: #1c2530;
  --accent: #22d3ee;        /* electric cyan */
  --accent-dim: #0e7490;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  /* faint technical grid + cold glow */
  background-image:
    radial-gradient(70rem 50rem at 80% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(50rem 40rem at -10% 10%, rgba(34, 211, 238, 0.05), transparent 55%),
    linear-gradient(rgba(124, 141, 163, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 141, 163, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(24px, 6vw, 48px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* header */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.logo .dot { color: var(--accent); }
.tag {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.tag::before { content: "["; color: var(--accent); }
.tag::after { content: "]"; color: var(--accent); }

/* hero */
.hero {
  margin-top: clamp(56px, 12vw, 130px);
}
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 22px;
}
.headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.headline .accent {
  color: var(--accent);
  text-shadow: 0 0 32px rgba(34, 211, 238, 0.35);
}
.lead {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
}
.lead strong { color: var(--fg); font-weight: 600; }

/* chat preview */
.chat-preview {
  margin-top: clamp(34px, 5vw, 52px);
}
.chat-preview__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--fg);
  margin-bottom: 16px;
}
.composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.composer:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}
.composer__input {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
}
.composer__input::placeholder { color: var(--muted); }
.composer__send {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.composer__send:hover { transform: translateY(-1px); }
.composer__send:active { transform: translateY(0); }

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover {
  color: var(--fg);
  border-color: var(--accent-dim);
  background: rgba(34, 211, 238, 0.06);
}

/* cta */
.cta {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cta:hover { border-bottom-color: var(--accent); }
.cta--hero {
  margin-top: 34px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(17px, 2.6vw, 22px);
}
.cta--hero:hover { transform: translateX(3px); }

/* principles */
.principles {
  margin-top: clamp(64px, 13vw, 130px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.principle {
  background: var(--bg-soft);
  padding: clamp(26px, 4vw, 40px);
  transition: background 0.2s ease;
  position: relative;
}
.principle:hover { background: #121925; }
.principle .num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.principle h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 14px 0 14px;
}
.principle p {
  color: var(--muted);
  font-size: 16px;
}

/* anti — cosa NON troverai */
.anti {
  margin-top: clamp(64px, 13vw, 130px);
}
.anti-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.02em;
}
.anti-title .strike {
  color: var(--accent);
  font-weight: 600;
}
.anti-list {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.anti-list li {
  padding: 22px 0 22px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  position: relative;
}
.anti-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.anti-key {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 4px;
}

/* promise */
.promise {
  margin-top: clamp(64px, 13vw, 130px);
  border-left: 3px solid var(--accent);
  padding-left: clamp(20px, 4vw, 36px);
}
.promise-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 4.5vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.promise-text em {
  font-weight: 600;
  color: var(--accent);
}

/* contact */
.contact {
  margin-top: clamp(64px, 13vw, 130px);
}
.contact-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 5vw, 40px);
  color: var(--fg);
}
.contact .cta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(19px, 3.4vw, 28px);
}

/* footer */
.foot {
  margin-top: auto;
  padding-top: clamp(56px, 12vw, 110px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* responsive */
@media (max-width: 620px) {
  .principles { grid-template-columns: 1fr; }
}

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