/* =============================================================================
   BoardSnap landing — dark neon aesthetic
   ============================================================================= */

:root {
  --bg: #05060a;
  --bg-soft: #0b0d14;
  --ink: #f2f4f8;
  --ink-muted: #a3a9b8;
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #00E5FF;
  --magenta: #FF2DD0;
  --violet: #7C5CFF;
  --radius: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --grad: linear-gradient(135deg, var(--cyan), var(--magenta));
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

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

/* -----------------------------------------------------------------------------
   Ambient background
   ----------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.blob-cyan {
  background: var(--cyan);
  top: -15%;
  left: -10%;
}

.blob-magenta {
  background: var(--magenta);
  bottom: -20%;
  right: -15%;
  animation-delay: -6s;
}

@keyframes blobFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vw, -3vw, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 2vw, 0) scale(0.96); }
}

/* -----------------------------------------------------------------------------
   Nav
   ----------------------------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.brand-name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-cta {
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.nav-cta:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */

main {
  position: relative;
  z-index: 2;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  margin-bottom: 24px;
}

.title {
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

/* Notify form */

.notify {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-bottom: 14px;
}

.notify input {
  flex: 1;
  padding: 15px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.notify input::placeholder {
  color: #565c6d;
}

.notify input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.notify button {
  padding: 15px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #04060b;
  background: var(--grad);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.notify button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 45, 208, 0.35);
}

.notify button:active {
  transform: translateY(0);
}

.notify-msg {
  min-height: 20px;
  font-size: 13px;
  color: var(--cyan);
}

/* Badges */

.badges {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.badge-pill.on-dark {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.06);
}

/* -----------------------------------------------------------------------------
   Phone mockup + animation
   ----------------------------------------------------------------------------- */

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(160deg, #1a1d28 0%, #0c0e16 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 60px rgba(124, 92, 255, 0.15);
  transform: rotateY(-6deg) rotateX(4deg);
  animation: phoneFloat 8s ease-in-out infinite alternate;
}

@keyframes phoneFloat {
  from { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
  to   { transform: rotateY(-6deg) rotateX(4deg) translateY(-14px); }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #050609;
  border-radius: 999px;
  z-index: 5;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #08090e;
  border-radius: 36px;
  overflow: hidden;
}

/* Phase base */

.phase {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: none;
}

/* 8s total loop: each phase ~2.67s visible + crossfades */

.phase-1 { animation: fadePhase1 9s ease-in-out infinite; }
.phase-2 { animation: fadePhase2 9s ease-in-out infinite; }
.phase-3 { animation: fadePhase3 9s ease-in-out infinite; }

@keyframes fadePhase1 {
  0%, 28%   { opacity: 1; transform: scale(1); }
  33%, 95%  { opacity: 0; transform: scale(1.04); }
  100%      { opacity: 1; transform: scale(1); }
}

@keyframes fadePhase2 {
  0%, 30%   { opacity: 0; transform: scale(1.04); }
  35%, 58%  { opacity: 1; transform: scale(1); }
  63%, 100% { opacity: 0; transform: scale(0.98); }
}

@keyframes fadePhase3 {
  0%, 60%   { opacity: 0; transform: scale(1.04); }
  65%, 92%  { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(0.98); }
}

/* Phase 1 — viewfinder */

.shot {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
}

.shot-viewfinder {
  position: absolute;
  inset: 0;
}

.board-photo {
  position: absolute;
  inset: 12%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 8px,
      transparent 8px,
      transparent 16px
    ),
    linear-gradient(180deg, #e8ede4 0%, #d4dcd0 100%);
  transform: perspective(800px) rotateX(12deg) rotateY(-4deg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.board-photo::before {
  content: '';
  position: absolute;
  top: 18%;
  left: 14%;
  right: 14%;
  height: 2px;
  background: #2c353c;
  box-shadow:
    0 18px 0 0 #2c353c,
    0 36px 0 0 #2c353c;
  opacity: 0.55;
}

.board-photo::after {
  content: 'Q2 →';
  position: absolute;
  top: 58%;
  left: 20%;
  font-family: 'Brush Script MT', cursive;
  font-size: 36px;
  color: #1e4a8a;
  font-weight: 700;
  opacity: 0.7;
  transform: rotate(-3deg);
}

.quad {
  position: absolute;
  inset: 10% 10% 12% 10%;
  border: 2.5px solid #FFDD00;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 221, 0, 0.35);
  animation: quadPulse 1.4s ease-in-out infinite;
  pointer-events: none;
}

.quad::before, .quad::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2.5px solid #FFDD00;
  background: rgba(255, 221, 0, 0.15);
}

.quad::before {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
}

.quad::after {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
}

@keyframes quadPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.capture-hint {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.shutter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 60%, transparent 60%);
  background-size: 44px 44px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
  animation: shutterTap 9s ease-in-out infinite;
}

@keyframes shutterTap {
  0%, 22%       { transform: translateX(-50%) scale(1); }
  24%           { transform: translateX(-50%) scale(0.88); background: radial-gradient(circle, #FFDD00 60%, transparent 60%); background-size: 44px 44px; background-repeat: no-repeat; background-position: center; }
  27%, 100%     { transform: translateX(-50%) scale(1); }
}

/* Phase 2 — scan */

.board-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0c13;
}

.board-thumb {
  position: absolute;
  inset: 8% 8%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 24px
    ),
    linear-gradient(180deg, #e8ede4 0%, #d4dcd0 100%);
  border-radius: 6px;
  box-shadow:
    0 0 0 1.5px var(--cyan),
    0 0 20px rgba(0, 229, 255, 0.3),
    0 0 60px rgba(0, 229, 255, 0.15);
  overflow: hidden;
}

.board-thumb::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: #2c353c;
  box-shadow:
    0 22px 0 0 #2c353c,
    0 44px 0 0 #2c353c,
    0 66px 0 0 #2c353c;
  opacity: 0.55;
}

.scan-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px rgba(0, 229, 255, 0.6);
  animation: scanSweep 2.2s ease-in-out infinite;
  z-index: 3;
}

@keyframes scanSweep {
  0%   { top: 10%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 88%; opacity: 0; }
}

.chip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.chip::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: chipPulse 1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes chipPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Phase 3 — insight card */

.insight-card {
  position: absolute;
  inset: 20px;
  padding: 22px 20px;
  background: linear-gradient(180deg, #0f111a 0%, #0a0c14 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.2);
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
}

.insight-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.head-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.summary-line {
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  margin-bottom: 8px;
  opacity: 0;
  animation: lineIn 0.4s var(--ease) forwards;
}

.w-90 { width: 90%; animation-delay: 0.1s; }
.w-75 { width: 75%; animation-delay: 0.25s; }
.w-60 { width: 60%; animation-delay: 0.4s; margin-bottom: 18px; }

@keyframes lineIn {
  to { opacity: 1; }
}

.divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 16px;
}

.todo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  animation: todoIn 0.5s var(--ease) forwards;
}

.t1 { animation-delay: 0.6s; }
.t2 { animation-delay: 0.8s; }
.t3 { animation-delay: 1s; }

@keyframes todoIn {
  to { opacity: 1; transform: translateY(0); }
}

.check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-muted);
}

.check.done {
  background: #34C759;
  border-color: #34C759;
  position: relative;
}

.check.done::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check.active {
  background: #FFCC00;
  border-color: #FFCC00;
  position: relative;
}

.check.active::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 1px;
}

/* -----------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------------- */

.section-title {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 20px;
}

.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature {
  padding: 32px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.feature:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  color: var(--cyan);
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Story */

.story {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  text-align: center;
}

.story-sub {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 48px;
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  padding-right: 22px;
}

.marquee-track span {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

.marquee-track span:nth-child(even) {
  color: var(--cyan);
  font-weight: 700;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* -----------------------------------------------------------------------------
   CTA
   ----------------------------------------------------------------------------- */

.cta {
  max-width: 1080px;
  margin: 40px auto 100px;
  padding: 0 40px;
}

.cta-card {
  padding: 64px 48px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 229, 255, 0.15), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 45, 208, 0.15), transparent 55%),
    linear-gradient(180deg, #0d0f17 0%, #08090f 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-sub {
  color: var(--ink-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.notify.big {
  margin: 0 auto;
  max-width: 520px;
}

.notify.big input,
.notify.big button {
  padding: 18px 22px;
  font-size: 16px;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink-muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.foot a:hover { color: var(--cyan); }
.dot-sep { color: var(--line); }

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
    gap: 40px;
    text-align: left;
  }
  .hero-art { transform: scale(0.85); }
  .feature-grid { grid-template-columns: 1fr; }
  .features, .story, .cta { padding-left: 24px; padding-right: 24px; }
  .cta-card { padding: 44px 28px; }
  .nav { padding: 18px 24px; }
  .foot { padding: 30px 24px; flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 560px) {
  .hero-art { display: none; }
  .notify { flex-direction: column; }
  .notify button { width: 100%; }
  .title { font-size: 40px; }
}
