/* ==============================
   SPPNode Landing
============================== */

:root {
  --bg: #080a0f;
  --surface: #0e1118;
  --card: #11151d;
  --border: #202631;
  --text: #f5f7fa;
  --muted: #929baa;
  --red: #ef3340;
  --blue: #168cff;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

/* NAV */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 15, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-mark {
  position: relative;
  width: 30px;
  height: 30px;
}

.logo-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.logo-mark span:nth-child(1) { left: 0; top: 11px; background: var(--red); }
.logo-mark span:nth-child(2) { left: 11px; top: 1px; background: var(--blue); }
.logo-mark span:nth-child(3) { left: 11px; bottom: 1px; background: var(--red); }
.logo-mark span:nth-child(4) { right: 0; top: 11px; background: var(--blue); }

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 1px;
  background: #5f6877;
  left: 6px;
  top: 14px;
}

.logo-mark::before { transform: rotate(-30deg); }
.logo-mark::after { transform: rotate(30deg); }

.logo-name {
  background: linear-gradient(90deg, var(--red), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: white;
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: white;
}

/* BUTTONS */

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  color: white;
}

.btn-secondary:hover {
  border-color: var(--blue);
}

/* HERO */

.hero {
  padding: 115px 0 105px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 850px;
  margin: auto;
  font-size: clamp(43px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  max-width: 650px;
  margin: 25px auto 35px;
  color: var(--muted);
  font-size: 19px;
}

/* SECTIONS */

section {
  padding: 90px 0;
}

.soft-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  max-width: 680px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-title .eyebrow {
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 45px);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.section-title p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 16px;
}

/* DEMO */

.video {
  max-width: 950px;
  margin: auto;
  aspect-ratio: 16 / 9;
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.play {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 27px;
  cursor: pointer;
  transition: .2s;
}

.play:hover {
  transform: scale(1.08);
}

.video-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* AGENTS */

.agents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 27px;
  transition: .2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #303847;
}

.icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #171c26;
  font-size: 21px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

/* CASES */

.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.case {
  padding: 27px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 11px;
}

.case h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.case p {
  color: var(--muted);
  font-size: 14px;
}

.case-flow {
  margin-top: 18px;
  font-size: 13px;
  color: #cbd2dc;
}

.case-flow span {
  color: var(--blue);
  font-weight: 700;
}

/* HOW IT WORKS */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  padding: 25px 10px;
  text-align: center;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #171c26;
  border: 1px solid var(--border);
  color: var(--blue);
  font-weight: 700;
}

.step h3 {
  margin-bottom: 7px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

/* PRICING */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.plan.featured {
  border-color: var(--blue);
}

.popular {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.plan h3 {
  font-size: 21px;
}

.plan-description {
  min-height: 45px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin: 25px 0 5px;
  font-size: 39px;
  font-weight: 800;
  letter-spacing: -1px;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.implementation {
  margin-bottom: 22px;
  color: #aeb6c4;
  font-size: 13px;
}

.plan ul {
  list-style: none;
  margin-bottom: 25px;
}

.plan li {
  padding: 7px 0;
  color: #cbd2dc;
  font-size: 14px;
}

.plan li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--blue);
}

.plan .btn {
  width: 100%;
}

.pricing-note {
  max-width: 700px;
  margin: 25px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* CTA */

.cta {
  text-align: center;
  padding: 105px 0;
}

.cta h2 {
  max-width: 700px;
  margin: auto;
  font-size: clamp(35px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.cta p {
  max-width: 600px;
  margin: 18px auto 28px;
  color: var(--muted);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.contact-info p {
  margin-top: 18px;
  color: var(--muted);
}

.contact-form {
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: #cbd2dc;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  background: #090c11;
  color: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.turnstile {
  margin: 20px 0;
}

.form-message {
  display: none;
  margin-top: 15px;
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
}

.form-message.success {
  display: block;
  background: rgba(40,180,100,.1);
  color: #7ce0a8;
}

.form-message.error {
  display: block;
  background: rgba(239,51,64,.1);
  color: #ff8b92;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

/* MOBILE */

@media (max-width: 850px) {
  nav {
    display: none;
  }

  .hero {
    padding: 80px 0;
  }

  .agents,
  .pricing {
    grid-template-columns: 1fr;
  }

  .cases {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  section {
    padding: 70px 0;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons .btn {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
