/* =========================================================
   IA para Creators™ — Coming Soon
   Design System: visual-identity.md
   ========================================================= */

/* --- TOKENS ------------------------------------------- */
:root {
  /* Background */
  --bg-0: #F7F5EF;
  --bg-1: #FFFFFF;

  /* Text */
  --text-0: #0B0D12;
  --text-1: #3B4150;
  --text-2: rgba(59, 65, 80, 0.55);

  /* Stroke */
  --stroke: rgba(11, 13, 18, 0.10);
  --stroke-soft: rgba(11, 13, 18, 0.06);

  /* Glass */
  --glass-0: rgba(255, 255, 255, 0.65);
  --glass-1: rgba(255, 255, 255, 0.82);
  --glass-blur: 18px;
  --glass-border: 1px solid rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 12px 40px rgba(11, 13, 18, 0.08);

  /* Accent — Instagram gradient */
  --accent-0: #FFD600;
  --accent-1: #FF7A00;
  --accent-2: #FF0069;
  --accent-3: #D300C5;
  --accent-4: #7638FA;
  --accent-gradient: linear-gradient(90deg, #FFD600, #FF7A00, #FF0069, #D300C5, #7638FA);
  --accent-gradient-diag: linear-gradient(135deg, #FFD600, #FF7A00, #FF0069, #D300C5, #7638FA);
  --accent-glow: 0 0 24px rgba(255, 0, 105, 0.18);

  /* Radius */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Layout */
  --wrap: 720px;
  --section-y: 80px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-mid: 280ms;
}

/* --- RESET -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }

/* --- BASE --------------------------------------------- */
body {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-0);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(214, 200, 255, 0.07) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --- DOTTED GRID BACKGROUND --------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11,13,18,0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* --- TIME TICKS (signature) --------------------------- */
.time-ticks {
  position: fixed;
  top: 0;
  left: 32px;
  height: 100vh;
  width: 1px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
}
.time-ticks span {
  display: block;
  width: 1px;
  height: 6px;
  background: var(--text-0);
  opacity: 0.14;
  flex-shrink: 0;
}
.time-ticks span:nth-child(5n) {
  height: 10px;
  opacity: 0.22;
}

/* --- WRAPPER ------------------------------------------ */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- HEADER ------------------------------------------- */
.site-header {
  padding: 28px 0 0;
  position: relative;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-0);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

/* --- HERO --------------------------------------------- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 24px;
}
.tag::before,
.tag::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--stroke);
}

/* Build animation container */
.build-animation {
  margin: 0 auto 40px;
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.build-cell {
  border-radius: 4px;
  background: var(--glass-0);
  border: 1px solid var(--stroke);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity var(--dur-mid) var(--ease),
    transform var(--dur-mid) var(--ease),
    background var(--dur-mid) var(--ease),
    border-color var(--dur-mid) var(--ease);
  backdrop-filter: blur(4px);
}

.build-cell.active {
  opacity: 1;
  transform: scale(1);
}

.build-cell.accent {
  background: linear-gradient(135deg, rgba(255,214,0,0.15), rgba(118,56,250,0.15));
  border-color: rgba(255,0,105,0.25);
}

.build-cell.pulse {
  animation: cellPulse 2s ease-in-out infinite;
}

@keyframes cellPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Center icon */
.build-icon {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-1);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow), var(--accent-glow);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.build-icon.visible {
  opacity: 1;
  transform: scale(1);
}
.build-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-0);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Progress bar under animation */
.build-progress-wrap {
  margin: 0 auto 40px;
  width: 120px;
  height: 2px;
  background: var(--stroke-soft);
  border-radius: 2px;
  overflow: hidden;
}
.build-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 100ms linear;
}

/* Headline */
.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-0);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--text-1);
  max-width: 520px;
  margin: 0 auto 12px;
}

.hero-promise {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Accent line divider */
.accent-line {
  width: 48px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 32px auto;
}

/* --- WAITLIST SECTION --------------------------------- */
.waitlist-section {
  padding: 0 0 var(--section-y);
}

.waitlist-card {
  background: var(--glass-0);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient top border */
.waitlist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}

.waitlist-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
  display: block;
}

.waitlist-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-0);
  margin-bottom: 12px;
}

.waitlist-sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
  margin-bottom: 28px;
  max-width: 480px;
}

.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 0, 105, 0.06);
  border: 1px solid rgba(255, 0, 105, 0.15);
  margin-bottom: 28px;
}
.founder-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}
.founder-badge span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-1);
}

/* Iframe wrapper */
.form-iframe-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-1);
}
.form-iframe-wrap iframe {
  display: block;
  width: 100%;
  border: none;
}

/* --- IFRAME FALLBACK ---------------------------------- */
.iframe-fallback {
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-0);
}
.iframe-fallback p {
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 16px;
}
.fallback-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--text-0);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity var(--dur-fast) var(--ease);
}
.fallback-btn:hover { opacity: 0.8; }

/* --- FOOTER ------------------------------------------- */
.site-footer {
  padding: 24px 0 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.site-footer p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

/* --- FADE-IN ANIMATIONS ------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp var(--dur-mid) var(--ease) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0ms; }
.fade-up:nth-child(2) { animation-delay: 80ms; }
.fade-up:nth-child(3) { animation-delay: 160ms; }
.fade-up:nth-child(4) { animation-delay: 240ms; }
.fade-up:nth-child(5) { animation-delay: 320ms; }
.fade-up:nth-child(6) { animation-delay: 400ms; }

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

/* --- RESPONSIVE --------------------------------------- */
@media (max-width: 600px) {
  :root { --section-y: 56px; }

  .time-ticks { display: none; }

  .waitlist-card {
    padding: 28px 20px 24px;
  }

  .build-animation {
    width: 160px;
    height: 160px;
  }
}
