/* ============================
   Tarzoon — AI for Digital Agencies
   Lovable-inspired vibrant design
   ============================ */

:root {
  /* Lovable-inspired palette */
  --pink: #ff5fa2;
  --pink-soft: #ff8fc1;
  --coral: #ff6b6b;
  --orange: #ff9966;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --violet: #8b5cf6;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --teal: #14b8a6;

  /* Gradient strings */
  --gradient-hero: linear-gradient(135deg, #ff5fa2 0%, #a855f7 50%, #6366f1 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ff5fa2 50%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, #fef3f8 0%, #f3e8ff 50%, #e0e7ff 100%);

  /* Neutrals */
  --white: #ffffff;
  --bg: #fffafd;
  --ink: #1a1033;
  --ink-soft: #4a4068;
  --muted: #7a728f;
  --line: rgba(168, 85, 247, 0.12);
  --line-strong: rgba(168, 85, 247, 0.22);

  /* Sizing */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 6px rgba(168, 85, 247, 0.08);
  --shadow: 0 8px 28px rgba(168, 85, 247, 0.12);
  --shadow-lg: 0 18px 50px rgba(168, 85, 247, 0.18);
  --shadow-glow: 0 0 60px rgba(255, 95, 162, 0.25);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ============================
   Animated background blobs
   ============================ */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 22s ease-in-out infinite;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  top: -180px; left: -120px;
  animation-delay: 0s;
}
.blob-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: 40px; right: -150px;
  animation-delay: -7s;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  bottom: -120px; left: 30%;
  animation-delay: -14s;
  opacity: 0.4;
}
.blob-4 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: 50%; left: 55%;
  animation-delay: -3s;
  opacity: 0.35;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 30px) scale(0.95); }
}

/* ============================
   Header
   ============================ */
.site-header {
  position: relative;
  z-index: 10;
  padding: 22px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
}
.logo-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}
.btn-beta {
  background: var(--gradient-hero);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 4px 14px rgba(255, 95, 162, 0.35);
}
.btn-beta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(255, 95, 162, 0.5);
}

/* ============================
   Hero — vertically centered like Lovable
   ============================ */
.hero {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  padding: 32px 0 64px;
  text-align: center;
}
.hero .container {
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 10px var(--pink);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.028em;
  margin: 0 auto 26px;
  padding-bottom: 6px;
  max-width: 880px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.7s ease-out;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.55;
  animation: fadeUp 0.7s ease-out 0.1s both;
}

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

/* ============================
   AI Chat Box — taller, textarea-like (Lovable style)
   ============================ */
.ai-chat-box {
  max-width: 720px;
  margin: 0 auto 36px;
  animation: fadeUp 0.7s ease-out 0.2s both;
}
.chat-input-wrap {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 130px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.chat-input-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: var(--gradient-hero);
  opacity: 0.18;
  z-index: -1;
  filter: blur(14px);
}
.chat-input-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(168, 85, 247, 0.25), var(--shadow-glow);
}
.chat-input-area {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  text-align: left;
  overflow: hidden;
}
.chat-placeholder-wrap {
  width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.chat-placeholder-text {
  display: inline;
  color: var(--muted);
  font-weight: 400;
}
.chat-placeholder-typed {
  color: var(--muted);
  font-weight: 400;
}
.chat-cursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--purple);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.chat-send {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
  margin-bottom: -2px;
}
.chat-send:hover {
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.55);
}

/* ============================
   Platform Tags
   ============================ */
.platforms {
  margin-top: 18px;
  animation: fadeUp 0.7s ease-out 0.3s both;
}
.platform-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: default;
}
.platform-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

/* ============================
   Modal
   ============================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.modal.is-open {
  display: block;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 51, 0.55);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  max-width: 420px;
  width: calc(100% - 32px);
  margin: 8vh auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-lg);
  animation: modalUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: rgba(168, 85, 247, 0.08); color: var(--ink); }
.modal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-subtitle {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-bottom: 20px;
}
.beta-form .form-group { margin-bottom: 14px; text-align: left; }
.beta-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.beta-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.beta-form input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}
.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--gradient-hero);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35);
}
.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(168, 85, 247, 0.5);
}
.form-divider {
  position: relative;
  text-align: center;
  margin: 16px 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  z-index: -1;
}
.form-divider span {
  background: white;
  padding: 0 12px;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-google:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15);
  transform: translateY(-1px);
}

/* ============================
   Thank you page
   ============================ */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 5;
}
.thankyou-card {
  max-width: 520px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.thankyou-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4);
}
.thankyou-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.thankyou-card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 22px;
}
.thankyou-card .btn-beta {
  display: inline-block;
  padding: 11px 22px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .hero { padding: 24px 0 48px; min-height: calc(100vh - 78px); }
  .hero-title { font-size: 30px; margin-bottom: 18px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 32px; }
  .chat-input-wrap { min-height: 110px; padding: 18px 20px; }
  .chat-input-area { font-size: 14.5px; }
  .chat-send { width: 38px; height: 38px; }
  .platform-tag { font-size: 11.5px; padding: 5px 10px; }
  .blob { filter: blur(60px); }
  .blob-1, .blob-2 { width: 320px; height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
