/* ==========================================
   VIBEWHAT — PLAYFUL GEOMETRIC DESIGN SYSTEM
   ========================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors — Punchy, high-saturation */
  --bg: #FFFDF5;
  --fg: #1E293B;
  --muted: #F1F5F9;
  --muted-fg: #64748B;
  --accent: #8B5CF6;
  --accent-fg: #FFFFFF;
  --secondary: #F472B6;
  --tertiary: #FBBF24;
  --quaternary: #34D399;
  --border: #E2E8F0;
  --border-dark: #1E293B;
  --card: #FFFFFF;
  --ring: #8B5CF6;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Borders */
  --border-w: 2px;

  /* Hard Shadows */
  --shadow: 4px 4px 0px 0px var(--border-dark);
  --shadow-hover: 6px 6px 0px 0px var(--border-dark);
  --shadow-active: 2px 2px 0px 0px var(--border-dark);
  --shadow-soft: 8px 8px 0px 0px var(--border);
  --shadow-accent: 6px 6px 0px 0px var(--accent);
  --shadow-pink: 6px 6px 0px 0px var(--secondary);

  /* Transitions */
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.3s var(--bounce);

  /* Spacing */
  --section-py: 96px;
  --container: 1140px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  /* Dot grid background */
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

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

.text-secondary {
  color: var(--secondary);
}

.text-tertiary {
  color: var(--tertiary);
}

.text-quaternary {
  color: var(--quaternary);
}

/* Squiggle underline */
.squiggle {
  position: relative;
  display: inline-block;
}

.squiggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q12.5 0 25 5 Q37.5 10 50 5 Q62.5 0 75 5 Q87.5 10 100 5' fill='none' stroke='%238B5CF6' stroke-width='3'/%3E%3C/svg%3E") repeat-x;
  background-size: 50px 8px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 253, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-w) solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 3px 3px 0px var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-logo:hover .logo-icon {
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0px var(--border-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-fg);
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--tertiary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform 0.3s var(--bounce);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: var(--border-w) solid var(--border-dark);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: var(--border-w) solid var(--border-dark);
  box-shadow: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--tertiary);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 3px 3px 0px var(--border-dark);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border-dark);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: var(--border-w) solid var(--border-dark);
  background: var(--card);
  box-shadow: 3px 3px 0px var(--border-dark);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--quaternary);
  border: 1px solid var(--border-dark);
  animation: blink 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--muted-fg);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  z-index: 1;
}

/* Giant yellow circle behind hero */
.hero-circle {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--tertiary);
  opacity: 0.25;
  top: 50%;
  left: -80px;
  transform: translateY(-50%);
  z-index: 0;
}

/* Hero decorative shapes on the right */
.hero-deco {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.deco-shape {
  position: absolute;
  border: var(--border-w) solid var(--border-dark);
  transition: var(--transition);
}

.deco-shape:hover {
  transform: rotate(0deg) scale(1.05) !important;
}

.deco-card-main {
  width: 85%;
  top: 8%;
  left: 8%;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 3;
}

.deco-card-main .mock-title {
  height: 14px;
  width: 60%;
  background: var(--fg);
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.deco-card-main .mock-line {
  height: 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  background: var(--border);
}

.deco-card-main .mock-line:nth-child(2) {
  width: 90%;
}

.deco-card-main .mock-line:nth-child(3) {
  width: 75%;
}

.deco-card-main .mock-line:nth-child(4) {
  width: 85%;
}

.deco-card-main .mock-tags {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.deco-card-main .mock-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  border: var(--border-w) solid var(--border-dark);
}

.deco-card-main .mock-tag:nth-child(1) {
  background: var(--accent);
  color: white;
}

.deco-card-main .mock-tag:nth-child(2) {
  background: var(--tertiary);
}

.deco-card-main .mock-tag:nth-child(3) {
  background: var(--quaternary);
}

.deco-circle-1 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--secondary);
  top: -5%;
  right: 2%;
  z-index: 4;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow);
}

.deco-triangle {
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 78px solid var(--tertiary);
  bottom: 5%;
  left: -3%;
  z-index: 2;
  border-top: none;
  border-left-color: transparent;
  border-right-color: transparent;
  animation: float 8s ease-in-out infinite 2s;
  /* override the generic border */
  border-color: transparent transparent var(--tertiary) transparent;
  filter: drop-shadow(4px 4px 0px var(--border-dark));
}

.deco-square {
  width: 60px;
  height: 60px;
  background: var(--quaternary);
  border-radius: var(--radius-sm);
  bottom: 15%;
  right: -2%;
  z-index: 2;
  transform: rotate(15deg);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite 1s;
}

.deco-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 60%;
  left: -8%;
  z-index: 1;
  background-image: radial-gradient(circle, var(--accent) 2px, transparent 2px);
  background-size: 14px 14px;
  opacity: 0.4;
  border: none;
}

/* --- Section Shared --- */
section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: var(--border-w) solid var(--accent);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--muted-fg);
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

/* --- Section Divider (Squiggle) --- */
.section-divider {
  width: 100%;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24'%3E%3Cpath d='M0 12 Q15 0 30 12 Q45 24 60 12 Q75 0 90 12 Q105 24 120 12 Q135 0 150 12 Q165 24 180 12 Q195 0 210 12 Q225 24 240 12 Q255 0 270 12 Q285 24 300 12 Q315 0 330 12 Q345 24 360 12 Q375 0 390 12 Q405 24 420 12 Q435 0 450 12 Q465 24 480 12 Q495 0 510 12 Q525 24 540 12 Q555 0 570 12 Q585 24 600 12 Q615 0 630 12 Q645 24 660 12 Q675 0 690 12 Q705 24 720 12 Q735 0 750 12 Q765 24 780 12 Q795 0 810 12 Q825 24 840 12 Q855 0 870 12 Q885 24 900 12 Q915 0 930 12 Q945 24 960 12 Q975 0 990 12 Q1005 24 1020 12 Q1035 0 1050 12 Q1065 24 1080 12 Q1095 0 1110 12 Q1125 24 1140 12 Q1155 0 1170 12 Q1185 24 1200 12' fill='none' stroke='%23E2E8F0' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x center;
}

/* --- Features Section --- */
.features {
  background: var(--muted);
  background-image: none;
  position: relative;
}

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

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: visible;
}

.feature-card:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Colored top bar */
.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 6px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card:nth-child(1)::before {
  background: var(--accent);
}

.feature-card:nth-child(2)::before {
  background: var(--secondary);
}

.feature-card:nth-child(3)::before {
  background: var(--tertiary);
}

.feature-card:nth-child(4)::before {
  background: var(--quaternary);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 3px 3px 0px var(--border-dark);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  animation: wiggle 0.5s ease;
}

.feature-card:nth-child(1) .feature-icon {
  background: rgba(139, 92, 246, 0.15);
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(244, 114, 182, 0.15);
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(251, 191, 36, 0.15);
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(52, 211, 153, 0.15);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* --- Preview Section --- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.preview-card {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
}

.preview-card:hover {
  transform: rotate(-1deg) translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Featured card (middle) gets pink shadow */
.preview-card:nth-child(2) {
  box-shadow: var(--shadow-pink);
}

.preview-card:nth-child(2):hover {
  box-shadow: 8px 8px 0px 0px var(--secondary);
}

.preview-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--muted);
  overflow: hidden;
  border-bottom: var(--border-w) solid var(--border-dark);
}

.preview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.preview-card:hover .preview-card-image img {
  transform: scale(1.05);
}

.preview-card-body {
  padding: 20px;
}

.preview-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 1.5px solid var(--border-dark);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
}

.tag.pink {
  background: rgba(244, 114, 182, 0.1);
  color: var(--secondary);
}

.tag.yellow {
  background: rgba(251, 191, 36, 0.15);
  color: #B45309;
}

.tag.green {
  background: rgba(52, 211, 153, 0.1);
  color: #059669;
}

.preview-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.preview-card-desc {
  font-size: 0.85rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin-bottom: 16px;
}

.preview-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: var(--border-w) solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: white;
}

.preview-card:nth-child(1) .preview-card-avatar {
  background: var(--accent);
}

.preview-card:nth-child(2) .preview-card-avatar {
  background: var(--secondary);
}

.preview-card:nth-child(3) .preview-card-avatar {
  background: var(--quaternary);
}

.preview-card-creator {
  font-size: 0.8rem;
  color: var(--muted-fg);
  font-weight: 600;
}

/* --- For Builders Section --- */
.builders {
  background: var(--muted);
  background-image: none;
}

.builders-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.builders-text .section-description {
  margin-bottom: 28px;
}

.builders-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.builders-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted-fg);
}

.builders-perks .perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 2px 2px 0px var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.builders-perks li:nth-child(1) .perk-icon {
  background: rgba(139, 92, 246, 0.15);
}

.builders-perks li:nth-child(2) .perk-icon {
  background: rgba(244, 114, 182, 0.15);
}

.builders-perks li:nth-child(3) .perk-icon {
  background: rgba(251, 191, 36, 0.15);
}

.builders-perks li:nth-child(4) .perk-icon {
  background: rgba(52, 211, 153, 0.15);
}

/* Builder Profile Mock Card */
.builder-profile-mock {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 8px 8px 0px var(--border);
  position: relative;
}

/* Floating "sticker" label */
.builder-profile-mock::before {
  content: 'Creator Page ✨';
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--tertiary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fg);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 2px 2px 0px var(--border-dark);
  transform: rotate(3deg);
}

.builder-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: var(--border-w) dashed var(--border);
}

.builder-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: 3px 3px 0px var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: white;
}

.builder-meta h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.builder-links {
  display: flex;
  gap: 10px;
}

.builder-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--muted);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition);
}

.builder-link-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--border-dark);
}

.builder-projects-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.builder-project-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  margin-bottom: 8px;
  transition: var(--transition);
  background: var(--card);
}

.builder-project-mini:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.builder-project-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  flex-shrink: 0;
}

.builder-project-mini:nth-child(odd) .builder-project-dot {
  background: var(--accent);
}

.builder-project-mini:nth-child(even) .builder-project-dot {
  background: var(--secondary);
}

.builder-project-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.builder-project-tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--muted-fg);
  padding: 2px 10px;
  background: var(--muted);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* --- Waitlist Section --- */
.waitlist {
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Confetti shapes behind waitlist */
.waitlist-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-shape {
  position: absolute;
  border: var(--border-w) solid var(--border-dark);
  opacity: 0.35;
}

.confetti-shape:nth-child(1) {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  top: 15%;
  left: 8%;
  animation: float 7s ease-in-out infinite;
}

.confetti-shape:nth-child(2) {
  width: 30px;
  height: 30px;
  background: var(--tertiary);
  border-radius: var(--radius-sm);
  top: 20%;
  right: 10%;
  transform: rotate(25deg);
  animation: float 6s ease-in-out infinite 1s;
}

.confetti-shape:nth-child(3) {
  width: 0;
  height: 0;
  border: none;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid var(--quaternary);
  bottom: 25%;
  left: 12%;
  filter: drop-shadow(3px 3px 0px var(--border-dark));
  animation: float 8s ease-in-out infinite 2s;
}

.confetti-shape:nth-child(4) {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  bottom: 20%;
  right: 8%;
  opacity: 0.2;
  animation: float 9s ease-in-out infinite 0.5s;
}

.waitlist-content {
  position: relative;
  z-index: 1;
}

.waitlist .section-description {
  margin: 0 auto 36px;
  text-align: center;
}

.waitlist-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 20px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: var(--border-w) solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  box-shadow: 4px 4px 0px transparent;
  transition: all 0.3s ease;
}

.waitlist-input::placeholder {
  color: var(--muted-fg);
}

.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 4px 4px 0px var(--accent);
}

.waitlist-count {
  font-size: 0.85rem;
  color: var(--muted-fg);
  font-weight: 500;
}

.waitlist-count strong {
  color: var(--accent);
  font-weight: 700;
}

/* Success state */
.waitlist-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-success.show {
  display: flex;
}

.waitlist-success .checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--quaternary);
  border: var(--border-w) solid var(--border-dark);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  animation: popIn 0.5s var(--bounce);
}

.waitlist-success h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.waitlist-success p {
  color: var(--muted-fg);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: var(--border-w) solid var(--border-dark);
  background: var(--card);
  background-image: none;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--fg);
  border-color: var(--border-dark);
  background: var(--tertiary);
  box-shadow: 2px 2px 0px var(--border-dark);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: all 0.6s var(--bounce);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Animations --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(3deg);
  }

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

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-py: 72px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    display: none;
  }

  .hero-circle {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid .preview-card:last-child {
    display: none;
  }

  .builders-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  .nav-links {
    display: none;
  }

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

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

  .preview-grid .preview-card:last-child {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-input {
    width: 100%;
  }

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

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  /* Reduce shadows on mobile */
  :root {
    --shadow: 3px 3px 0px 0px var(--border-dark);
    --shadow-hover: 4px 4px 0px 0px var(--border-dark);
    --shadow-soft: 4px 4px 0px 0px var(--border);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}