/* Scroll Gambit — landing page styles */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--sg-navy-800);
  color: var(--sg-text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Page-wide checker motif */
.lp-bg-checker {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.012) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.012) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.012) 75%);
  background-size: 80px 80px;
  background-position: 0 0, 40px 40px;
}

.lp-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(40,86,255,0.18), transparent 60%),
    radial-gradient(50% 40% at 90% 80%, rgba(40,86,255,0.10), transparent 60%);
}

/* Layout */
.lp-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.lp-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
}
.lp-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--sg-text-mid);
  font-weight: 500;
}
.lp-nav-links a:hover { color: #fff; }

/* HERO */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0 80px;
}
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(40,86,255,0.14);
  border: 1px solid rgba(40,86,255,0.32);
  font-size: 12.5px;
  font-weight: 600;
  color: #b8c8ff;
  margin-bottom: 28px;
}
.lp-hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--sg-blue-glow);
  box-shadow: 0 0 10px var(--sg-blue-glow);
}

.lp-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.lp-hero h1 .ink {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #a4b5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-hero h1 .blue {
  color: var(--sg-blue-bright);
  white-space: nowrap;
}

.lp-hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--sg-text-mid);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 0 32px;
}

.lp-form {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--sg-line-strong);
  border-radius: 16px;
  padding: 6px;
  max-width: 480px;
  transition: border-color 0.15s, background 0.15s;
}
.lp-form:focus-within {
  border-color: var(--sg-blue);
  background: rgba(40,86,255,0.06);
}
.lp-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font: 500 16px 'Inter', system-ui;
  color: #fff;
  padding: 0 16px;
  letter-spacing: -0.01em;
}
.lp-form input::placeholder { color: rgba(255,255,255,0.4); }
.lp-form button {
  border: 0;
  background: var(--sg-blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 0 20px;
  height: 48px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 6px 20px -6px rgba(40,86,255,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.lp-form button:hover { background: var(--sg-blue-bright); }
.lp-form button:active { transform: scale(0.97); }

.lp-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--sg-text-mid);
}
.lp-avatar-stack { display: flex; }
.lp-avatar-stack > div {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a73ff, #2856ff);
  border: 2px solid var(--sg-navy-800);
  margin-left: -8px;
}
.lp-avatar-stack > div:first-child { margin-left: 0; background: linear-gradient(135deg, #f0c674, #d68b3a); }
.lp-avatar-stack > div:nth-child(2) { background: linear-gradient(135deg, #6dcf94, #2f8a5b); }
.lp-avatar-stack > div:nth-child(3) { background: linear-gradient(135deg, #e88aa6, #b65478); }
.lp-avatar-stack > div:nth-child(4) { background: linear-gradient(135deg, #b8a4ff, #6a52d4); }

/* Hero device */
.lp-hero-device {
  position: relative;
  display: flex;
  justify-content: center;
}
.lp-device-stage {
  width: 402px;
  height: 874px;
  transform: scale(0.66);
  transform-origin: center top;
  margin-bottom: -300px;  /* claw back scaled-down space */
  position: relative;
}
.lp-hero-device::before {
  content: '';
  position: absolute;
  inset: -40px -40px 80px;
  background: radial-gradient(circle at 50% 40%, rgba(40,86,255,0.35), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}

/* Floating pieces around hero device */
.lp-floater {
  position: absolute;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  opacity: 0.92;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* Section */
.lp-section {
  padding: 80px 0;
}
.lp-section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sg-blue-glow);
  margin-bottom: 14px;
}
.lp-section h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 760px;
}
.lp-section-lede {
  font-size: 18px;
  color: var(--sg-text-mid);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 0 48px;
}

/* How it works */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lp-step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.lp-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sg-text-dim);
  margin-bottom: 18px;
}
.lp-step-art {
  height: 140px;
  margin: -10px -10px 18px;
  background: rgba(40,86,255,0.06);
  border-radius: 16px;
  border: 1px solid var(--sg-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.lp-step h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lp-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--sg-text-mid);
  line-height: 1.5;
}

/* Demo board */
.lp-demo {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--sg-line-strong);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.lp-demo > * { min-width: 0; }
.lp-demo-board { display: flex; justify-content: center; min-width: 0; }
.lp-demo-side h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  margin: 14px 0 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lp-prompt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  margin: 18px 0 20px;
  min-height: 76px;
}
.lp-prompt-title { font-size: 14px; font-weight: 600; color: #fff; }
.lp-prompt-body { font-size: 14px; color: var(--sg-text-mid); line-height: 1.5; }
.lp-prompt-body.success { color: var(--sg-success); font-weight: 600; }
.lp-prompt-body.error { color: #ffb1b1; }

.lp-demo-actions { display: flex; gap: 10px; }
.lp-mini-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--sg-line-strong);
  color: #fff;
  font: 500 13.5px Inter, system-ui;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.lp-mini-btn:hover { background: rgba(255,255,255,0.1); }
.lp-mini-btn.primary {
  background: var(--sg-blue);
  border-color: var(--sg-blue);
  box-shadow: 0 4px 16px -4px rgba(40,86,255,0.6);
}
.lp-mini-btn.primary:hover { background: var(--sg-blue-bright); }

/* What it blocks */
.lp-blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.lp-block {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--sg-text-mid);
  font-weight: 500;
  transition: transform 0.15s, border-color 0.15s;
}
.lp-block:hover { transform: translateY(-2px); border-color: var(--sg-line-strong); }
.lp-block.coming {
  background: transparent;
  color: var(--sg-text-dim);
  font-style: italic;
}

/* FAQ */
.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq-item {
  border-top: 1px solid var(--sg-line-strong);
  padding: 22px 0;
}
.lp-faq-item:last-child { border-bottom: 1px solid var(--sg-line-strong); }
.lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  gap: 16px;
}
.lp-faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--sg-text-mid);
  line-height: 1;
  transition: transform 0.2s;
}
.lp-faq-item.open .lp-faq-q::after { transform: rotate(45deg); }
.lp-faq-a {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--sg-text-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding-top: 0;
}
.lp-faq-item.open .lp-faq-a {
  max-height: 400px;
  padding-top: 12px;
}

/* CTA strip */
.lp-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(40,86,255,0.22), rgba(40,86,255,0.04));
  border: 1px solid rgba(40,86,255,0.35);
  border-radius: 32px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(74,115,255,0.35), transparent 60%);
  pointer-events: none;
}
.lp-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  position: relative;
}
.lp-cta p {
  font-size: 17px;
  color: var(--sg-text-mid);
  margin: 0 0 28px;
  position: relative;
}
.lp-cta .lp-form { margin: 0 auto; position: relative; }

/* Footer */
.lp-footer {
  padding: 48px 0 60px;
  border-top: 1px solid var(--sg-line);
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--sg-text-dim);
  font-size: 13.5px;
}
.lp-footer-links { display: flex; gap: 24px; }
.lp-footer-links a:hover { color: #fff; }

/* Demo board square click cue */
.lp-board-square {
  cursor: pointer;
}
.lp-board-dot {
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(245,239,222,0.55);
  box-shadow: 0 0 12px rgba(245,239,222,0.4);
  pointer-events: none;
}
.lp-board-capture {
  position: absolute;
  inset: 6%;
  border-radius: 8px;
  border: 3px solid rgba(245,239,222,0.55);
  box-shadow: 0 0 14px rgba(245,239,222,0.3);
  background: transparent;
  pointer-events: none;
}
.lp-board-selected {
  position: absolute; inset: 0;
  background: rgba(255,210,74,0.30) !important;
  pointer-events: none;
}

/* Tweaks panel host */
.lp-tweak-toggle {
  position: fixed;
  right: 20px; bottom: 20px; z-index: 100;
}

/* Responsive */
@media (max-width: 1180px) {
  .lp-shell { padding: 0 24px; }
  .lp-hero { gap: 40px; padding: 40px 0 60px; }
}

@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 40px; }
  .lp-hero-device { order: -1; height: 560px; overflow: hidden; }
  .lp-device-stage { transform: scale(0.62); margin-bottom: -380px; }
  .lp-floater { display: none; }
  .lp-demo { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .lp-demo-side { order: -1; }
  .lp-steps { grid-template-columns: 1fr; gap: 14px; }
  .lp-step { padding: 22px; }
  .lp-step-art { height: 120px; }
  .lp-blocks { grid-template-columns: repeat(3, 1fr); }
  .lp-nav-links { display: none; }
  .lp-cta { padding: 40px 28px; }
  .lp-section { padding: 56px 0; }
}

/* Tablet small / large phone */
@media (max-width: 720px) {
  .lp-shell { padding: 0 18px; }
  .lp-hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .lp-hero-sub { font-size: 16px; margin-bottom: 24px; }
  .lp-hero-eyebrow { margin-bottom: 20px; font-size: 11.5px; }

  .lp-section { padding: 48px 0; }
  .lp-section h2 { font-size: clamp(28px, 7vw, 38px); }
  .lp-section-lede { font-size: 16px; margin-bottom: 32px; }
  .lp-section-eyebrow { font-size: 11px; letter-spacing: 0.15em; margin-bottom: 10px; }

  .lp-hero-device { height: 520px; }
  .lp-device-stage { transform: scale(0.56); margin-bottom: -420px; }

  .lp-demo { padding: 22px; border-radius: 22px; gap: 24px; }
  .lp-demo-side h2 { font-size: clamp(26px, 6.4vw, 34px); }

  .lp-cta { padding: 36px 22px; border-radius: 22px; }
  .lp-cta h2 { font-size: clamp(26px, 7vw, 36px); }
  .lp-cta p { font-size: 15px; }

  .lp-faq-q { font-size: 16px; }
  .lp-faq-a { font-size: 14.5px; }
}

/* Phones — primary mobile target */
@media (max-width: 560px) {
  .lp-shell { padding: 0 16px; }
  .lp-nav { padding: 18px 0; }
  .lp-brand { font-size: 15.5px; }
  .lp-brand img { width: 30px; height: 30px; border-radius: 9px; }

  .lp-hero { padding: 12px 0 24px; gap: 20px; }
  .lp-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.02;
  }
  .lp-hero h1 br { display: none; }
  .lp-hero-sub { font-size: 15.5px; max-width: none; }
  .lp-hero-meta { font-size: 13px; gap: 12px; flex-wrap: wrap; }

  .lp-form { padding: 5px; border-radius: 14px; flex-direction: column; gap: 6px; }
  .lp-form input { padding: 14px 14px; font-size: 15.5px; }
  .lp-form button { width: 100%; height: 50px; justify-content: center; }

  /* Hero device — slot phone neatly under headline */
  .lp-hero-device { height: 460px; }
  .lp-device-stage {
    transform: scale(0.5);
    margin-bottom: -460px;
    transform-origin: center top;
  }

  /* Step cards */
  .lp-step { padding: 20px; border-radius: 18px; }
  .lp-step h3 { font-size: 19px; }
  .lp-step p { font-size: 14px; }
  .lp-step-art { height: 110px; margin: -6px -6px 16px; }

  /* Demo — make board fit phone width */
  .lp-demo { padding: 18px; border-radius: 20px; }
  .lp-demo-side h2 { font-size: clamp(24px, 6vw, 30px); margin: 8px 0 14px; }
  .lp-demo-board { width: 100%; }
  .lp-prompt { padding: 14px 16px; min-height: 64px; }
  .lp-prompt-title { font-size: 13.5px; }
  .lp-prompt-body { font-size: 13.5px; }

  /* Blocks — 2 columns is plenty for 3 items */
  .lp-blocks {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: none !important;
  }

  /* FAQ */
  .lp-faq-item { padding: 18px 0; }

  /* CTA */
  .lp-cta { padding: 32px 18px; border-radius: 20px; }
  .lp-cta h2 { font-size: clamp(24px, 7vw, 32px); margin-bottom: 10px; }
  .lp-cta p { font-size: 14.5px; margin-bottom: 22px; }

  /* Footer */
  .lp-footer {
    padding: 36px 0 48px;
    margin-top: 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .lp-footer-links { gap: 18px; flex-wrap: wrap; font-size: 13px; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .lp-shell { padding: 0 14px; }
  .lp-hero h1 { font-size: clamp(30px, 10vw, 38px); }
  .lp-hero-device { height: 420px; }
  .lp-device-stage { transform: scale(0.44); margin-bottom: -490px; }
  .lp-demo { padding: 14px; }
  .lp-cta { padding: 26px 16px; }
}
