/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #0ed54d;
  --green-dark: #24950b;
  --green-glow: #6cef44;
  --dark: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #1A1A1A;
  --dark-4: #222222;
  --gray: #888;
  --gray-light: #AAA;
  --white: #F5F5F5;
  --gold: #F59E0B;
  --green: #22C55E;
  --yellow: #EAB308;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Saira', serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.logo-icon {
  font-size: 1.3rem;
}

.accent {
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-ghost {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-primary {
  padding: 0.6rem 1.2rem;
  background: var(--dark-3);
  border: 1px solid var(--green);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 0 25px rgba(220, 38, 38, 0.4);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  text-align: center;
  display: block;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.8);
  transform: scale(1.05);
  animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1.05) translate(0, 0);
  }

  100% {
    transform: scale(1.12) translate(-1%, -0.5%);
  }
}

/* Radial fade — edges dissolve to dark */
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 35% 50%, transparent 20%, rgba(10, 10, 10, 0.5) 55%, rgba(10, 10, 10, 0.92) 80%, #0A0A0A 100%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, transparent 20%, transparent 70%, #0A0A0A 100%);
}

/* === BOARD OVERLAY ANIMATIONS === */
.board-overlays {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Torq pin flashes — like someone just pinned something */
.pin-flash {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.9), rgba(220, 38, 38, 0) 70%);
  opacity: 0;
  animation: pinPulse 4s ease-in-out infinite;
}

.pf1 {
  top: 28%;
  left: 32%;
  animation-delay: 0s;
}

.pf2 {
  top: 42%;
  left: 48%;
  animation-delay: 1.5s;
}

.pf3 {
  top: 22%;
  left: 55%;
  animation-delay: 3s;
}

@keyframes pinPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  15% {
    opacity: 1;
    transform: scale(1.8);
  }

  30% {
    opacity: 0.6;
    transform: scale(1);
  }

  45% {
    opacity: 0;
  }
}

/* Yarn glow — strings light up like connections being made */
.yarn-glow {
  position: absolute;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.6), transparent);
  animation: yarnTrace 5s ease-in-out infinite;
}

.yg1 {
  top: 35%;
  left: 18%;
  width: 25%;
  transform: rotate(8deg);
  animation-delay: 0.5s;
}

.yg2 {
  top: 48%;
  left: 30%;
  width: 20%;
  transform: rotate(-5deg);
  animation-delay: 2.5s;
}

@keyframes yarnTrace {

  0%,
  100% {
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  40% {
    opacity: 0;
  }
}

/* Sticky notes — subtle shift like someone just placed them */
.sticky-note {
  position: absolute;
  padding: 4px 8px;
  background: rgba(254, 250, 100, 0.15);
  color: rgba(254, 250, 100, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  border-radius: 2px;
  opacity: 0;
  animation: stickyAppear 6s ease-in-out infinite;
}

.sn1 {
  top: 30%;
  left: 42%;
  transform: rotate(-3deg);
  animation-delay: 1s;
}

.sn2 {
  top: 18%;
  left: 52%;
  transform: rotate(2deg);
  animation-delay: 3.5s;
}

@keyframes stickyAppear {

  0%,
  100% {
    opacity: 0;
    transform: translateY(5px) rotate(-3deg);
  }

  15% {
    opacity: 0.7;
    transform: translateY(0) rotate(-3deg);
  }

  35% {
    opacity: 0.7;
  }

  50% {
    opacity: 0;
  }
}

/* Photo shift — photos nudge like being rearranged */
.photo-shift {
  position: absolute;
  width: 50px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: photoNudge 7s ease-in-out infinite;
}

.ps1 {
  top: 38%;
  left: 22%;
  animation-delay: 0.8s;
}

.ps2 {
  top: 25%;
  left: 38%;
  animation-delay: 4s;
}

@keyframes photoNudge {

  0%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    opacity: 0.3;
  }

  25% {
    opacity: 0.3;
    transform: translate(8px, -4px) rotate(2deg);
  }

  40% {
    opacity: 0;
    transform: translate(8px, -4px) rotate(2deg);
  }
}

/* === HOVER INTERACTIONS — swift game-like motion === */


}

@keyframes photoSwift1 {

  0%,
  100% {
    top: 38%;
    left: 22%;
    opacity: 0;
    transform: rotate(0deg);
  }

  10% {
    opacity: 0.25;
  }

  40% {
    top: 26%;
    left: 38%;
    opacity: 0.25;
    transform: rotate(5deg);
  }

  50% {
    opacity: 0;
  }
}

@keyframes photoSwift2 {

  0%,
  100% {
    top: 30%;
    left: 45%;
    opacity: 0;
    transform: rotate(0deg);
  }

  10% {
    opacity: 0.2;
  }

  40% {
    top: 42%;
    left: 28%;
    opacity: 0.2;
    transform: rotate(-4deg);
  }

  50% {
    opacity: 0;
  }
}

/* === HERO CONTENT === */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  padding: 2rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-bg {
  height: 100%;
  width: 100%;
  padding: 2rem;
  margin-left: auto;
  margin-right: 0%;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--red-glow);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-sub {
  font-size: .05rem;
  color: var(--gray-light);
  max-width: 500px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  display: block;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
}

/* === SECTIONS COMMON === */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* === FEATURES === */
.features {
  background: var(--dark-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
}

/* === DASHBOARD === */
.dashboard-section {
  background: var(--dark);
}

.dashboard-preview {
  display: flex;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  min-height: 500px;
}

.dash-sidebar {
  width: 220px;
  background: var(--dark-3);
  padding: 1.5rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.dash-nav-item {
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.dash-nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.dash-nav-item.active {
  color: var(--white);
  background: rgba(220, 38, 38, 0.1);
  border-left-color: var(--red);
}

.dash-main {
  flex: 1;
  padding: 2rem;
  overflow: hidden;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.dash-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  background: rgba(220, 38, 38, 0.15);
  color: var(--red);
  border-radius: 20px;
  font-weight: 600;
}

.dash-story {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.01);
}

.dash-story:hover {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.03);
}

.dash-story.featured {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.05);
}

.ds-rank {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--red);
  min-width: 30px;
}

.ds-content {
  flex: 1;
}

.ds-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.ds-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.ds-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.ds-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gray-light);
}

.ds-sev {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ds-sev.critical {
  background: rgba(220, 38, 38, 0.2);
  color: var(--red-glow);
}

.ds-sev.high {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold);
}

.ds-time {
  font-size: 0.75rem;
  color: var(--gray);
}

.ds-actions {
  display: flex;
  gap: 0.3rem;
}

.ds-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.ds-btn:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.1);
}

.dash-timeline {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-timeline h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--gray-light);
}

.timeline {
  padding-left: 1rem;
  border-left: 2px solid rgba(220, 38, 38, 0.3);
}

.tl-item {
  padding: 0 0 1.2rem 1.2rem;
  position: relative;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -1.35rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--dark-2);
}

.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.tl-text {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* === NEWSLETTER === */
.newsletter-section {
  background: var(--dark-2);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.newsletter-info p {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.newsletter-perks li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.email-mock {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.email-header {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.email-from {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.3rem;
}

.email-subject {
  font-size: 0.9rem;
  font-weight: 600;
}

.email-body {
  padding: 1.5rem;
}

.email-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.email-headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.email-story {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--gray-light);
  display: flex;
  gap: 0.5rem;
}

.email-rank {
  color: var(--red);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.email-story em {
  color: var(--green);
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.email-fade {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--gray);
  font-style: italic;
}

/* === PRICING === */
.pricing-section {
  background: var(--dark);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  position: relative;
  transition: all 0.3s;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card.popular {
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

.price-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.price-amount span {
  font-size: 1rem;
  color: var(--gray);
  font-family: 'Inter', sans-serif;
}

.price-card ul {
  margin-bottom: 2rem;
}

.price-card li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gray-light);
}

/* === FOOTER === */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    margin: 0 auto;
    text-align: center;
    padding: 6rem 1.5rem 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-bg-fade {
    background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 10%, rgba(10, 10, 10, 0.7) 50%, #0A0A0A 80%), linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, transparent 20%, transparent 60%, #0A0A0A 100%);
  }

  .dashboard-preview {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dash-nav-item {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .dash-nav-item.active {
    border-bottom-color: var(--red);
    border-left-color: transparent;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }
}