/* =========================================================
   THE BEST AGENCY TOOL — styles.css
   ========================================================= */

@font-face {
  font-family: 'Tropicfun';
  src: url('https://fonts.cdnfonts.com/s/94516/Tropicfun.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple:      #5200FF;
  --white:       #FFFFFF;
  --text-body:   rgba(255,255,255,0.88);
  --radius-pill: 10px;
  --radius-md:   18px;
  --nav-height:  72px;
  --font-display: 'Tropicfun', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --transition:   0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--purple);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- BUTTONS ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
  font-family: 'Be Vietnam Pro', sans-serif;
}
.btn-primary:hover { background: #ede8ff; border-color: #ede8ff; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost:hover { text-decoration: none; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 100;
}

.nav-inner {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0 28px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--purple);
  flex-shrink: 0;
  font-weight: 200 !important;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  padding-left: 64px;
  padding-right: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

/* subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(123,63,255,0.4) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.hero-headline span {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.55s forwards;
}
.hero-headline span:nth-child(1) { animation-delay: 0.1s; }
.hero-headline span:nth-child(2) { animation-delay: 0.25s; }
.hero-headline span:nth-child(3) { animation-delay: 0.4s; }

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

.hero-sub {
  color: var(--text-body);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* ----- Bat wrapper --------------------------------------- */
.bat-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  z-index: 1;
}

.bat-mascot {
  width: clamp(140px, 18vw, 220px);
  position: absolute;
  top: 20px;
  right: 174px;
  left: auto;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.3));
  z-index: 2;
}

.flight-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  transform: translateY(-20%);
  width: 28%;
  max-width: 320px;
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-left: 28px;
    padding-right: 28px;
    text-align: center;
  }

  .hero-content { order: 1; }
  .bat-wrapper  { order: 0; height: 280px; }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
}

@media (max-width: 560px) {
  .navbar { width: calc(100% - 24px); top: 10px; }
  .nav-inner { padding: 0 18px; height: 60px; gap: 20px; }
  .nav-links { gap: 20px; }
  .hero-headline { font-size: clamp(3.5rem, 13vw, 5rem); }
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 0, 80, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: #333; }

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 28px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 28px;
}

.optional {
  font-weight: 400;
  color: #999;
}

.form-group input,
.form-group select {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  outline: none;
  color: #222;
  background: #f4f1ff;
  transition: background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder { color: #bbb; }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--purple);
  background: #ede8ff;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
