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

:root {
  --peach: #FF8C55;
  --peach-dark: #e0703a;
  --pink: #FF6B9D;
  --pink-light: #FFD6E8;
  --lavender: #C9B8FF;
  --cream: #FFF8F2;
  --soft-bg: #FFF0E8;
  --card-bg: #ffffff;
  --text: #2D1B0E;
  --text-soft: #8B6B5A;
  --shadow: 0 8px 32px rgba(255,140,85,0.18);
  --shadow-hover: 0 16px 48px rgba(255,140,85,0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,107,157,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255,140,85,0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201,184,255,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── floating decorations ── */
.floaty {
  position: fixed;
  font-size: 1.5rem;
  opacity: 0.18;
  pointer-events: none;
  animation: floatAround linear infinite;
  z-index: 0;
}
.floaty:nth-child(1) { top: 10%; left: 5%;  animation-duration: 14s; font-size: 1.2rem; }
.floaty:nth-child(2) { top: 70%; left: 92%; animation-duration: 18s; animation-delay: -4s; }
.floaty:nth-child(3) { top: 40%; left: 2%;  animation-duration: 22s; animation-delay: -9s; font-size: 1rem; }
.floaty:nth-child(4) { top: 85%; left: 50%; animation-duration: 16s; animation-delay: -2s; }
.floaty:nth-child(5) { top: 20%; left: 80%; animation-duration: 20s; animation-delay: -7s; font-size: 1.1rem; }

@keyframes floatAround {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-20px) rotate(5deg); }
  50%  { transform: translateY(0px) rotate(0deg); }
  75%  { transform: translateY(20px) rotate(-5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ── nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255,248,242,0.85);
  border-bottom: 1.5px solid rgba(255,140,85,0.15);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: var(--peach);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--peach); }

/* ── hero ── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.hero-badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-cat {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  animation: catBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(255,107,157,0.3));
}

@keyframes catBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero h1 .accent  { color: var(--peach); }
.hero h1 .accent2 { color: var(--pink); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 2.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--peach) 0%, var(--pink) 100%);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,157,0.35);
}
.hero-cta:hover  { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,107,157,0.45); }
.hero-cta:active { transform: scale(0.97); }

/* ── layout ── */
.section {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.card {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1.5px solid rgba(255,140,85,0.1);
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); }

/* ── mode chips ── */
.mode-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(255,140,85,0.25);
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-soft);
  transition: all 0.18s;
}
.chip:hover  { border-color: var(--peach); color: var(--peach); }
.chip.active {
  background: linear-gradient(135deg, var(--peach), var(--pink));
  border-color: transparent;
  color: white;
}

/* ── inputs ── */
.field-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
  display: block;
}

textarea, .output-box {
  width: 100%;
  border-radius: 14px;
  border: 2px solid rgba(255,140,85,0.15);
  padding: 1rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--soft-bg);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}
textarea:focus { border-color: var(--peach); }

.output-box {
  min-height: 80px;
  font-weight: 700;
  color: var(--peach-dark);
  word-break: break-word;
}
.output-box.empty { color: var(--text-soft); font-weight: 400; font-style: italic; }

.converter-arrow {
  text-align: center;
  font-size: 1.6rem;
  margin: 0.5rem 0;
  animation: arrowPulse 1.5s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}

/* ── buttons ── */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 2px solid rgba(255,140,85,0.3);
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: all 0.18s;
}
.btn:hover  { border-color: var(--peach); color: var(--peach); background: rgba(255,140,85,0.06); }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--peach), var(--pink));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(255,107,157,0.3);
}
.btn-primary:hover { color: white; box-shadow: 0 6px 22px rgba(255,107,157,0.45); transform: translateY(-2px); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-whatsapp::before { content: ''; display: inline-block; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center/contain; }
.btn-whatsapp:hover { color: white; box-shadow: 0 6px 22px rgba(37,211,102,0.5); transform: translateY(-2px); }

.toast {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--pink);
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 800;
}
.toast.show { opacity: 1; }

/* ── phrase cards ── */
.phrases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 0.5rem;
}

.phrase-card {
  background: var(--soft-bg);
  border: 2px solid rgba(255,140,85,0.12);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}
.phrase-card:hover {
  border-color: var(--peach);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,140,85,0.15);
}

.phrase-original { font-size: 0.78rem; color: var(--text-soft); font-weight: 600; margin-bottom: 2px; }
.phrase-meow     { font-size: 0.95rem; font-weight: 800; color: var(--peach-dark); }

/* ── dictionary ── */
.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 0.5rem;
}

.dict-item { background: var(--soft-bg); border-radius: 12px; padding: 0.6rem 0.9rem; border: 1.5px solid rgba(255,140,85,0.1); }
.dict-word { font-size: 0.8rem; color: var(--text-soft); font-weight: 600; }
.dict-meow { font-size: 0.9rem; font-weight: 800; color: var(--pink); }

/* ── section headings ── */
.section-title { font-family: 'Pacifico', cursive; font-size: 1.6rem; color: var(--text); margin-bottom: 0.4rem; }
.section-title .accent { color: var(--peach); }
.section-desc  { font-size: 0.9rem; color: var(--text-soft); font-weight: 600; margin-bottom: 1.2rem; }

/* ── footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

footer .heart { color: var(--pink); animation: heartbeat 1.2s ease-in-out infinite; display: inline-block; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

/* ── scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 600px) {
  nav { padding: 0.75rem 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 3.5rem 1rem 2rem; }
  .card { padding: 1.3rem; }
}
