/* Reset / normalise */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button, a.cta {
  font: inherit;
  cursor: pointer;
}

/* Layout — mobile-first */
.site-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main {
  flex: 1;
  padding: 2rem 1.25rem 3rem;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.headline {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.tagline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 28ch;
}

.tagline-line {
  display: inline-block;
  position: relative;
  padding: 0.65em 1em 0.75em 1em;
  border-radius: 1.25em 1.25em 1.25em 0.35em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  align-self: flex-start;
}

/* Speech bubble tail — clean triangle via clip-path */
.tagline-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75em;
  width: 20px;
  height: 14px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: translateY(calc(100% - 1px));
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}

.tagline-line:nth-child(1) {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  border-color: rgba(102, 126, 234, 0.6);
}

.tagline-line:nth-child(1)::after {
  background: rgba(102, 126, 234, 0.95);
}

.tagline-line:nth-child(2) {
  margin-left: 1rem;
  border-radius: 1.25em 1.25em 0.35em 1.25em;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.95) 0%, rgba(79, 172, 254, 0.95) 100%);
  border-color: rgba(240, 147, 251, 0.6);
}

.tagline-line:nth-child(2)::after {
  left: auto;
  right: 0.75em;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  background: rgba(79, 172, 254, 0.95);
}

.tagline-line--highlight {
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.98) 0%, rgba(255, 165, 0, 0.98) 100%);
  border-color: rgba(255, 180, 0, 0.8);
  color: #1a1a1a;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.45);
}

.tagline-line--highlight::after {
  background: rgba(255, 215, 0, 0.98);
}

.tagline-line:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #ff8e53 100%);
  border: none;
  border-radius: 16px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
  filter: brightness(1.1);
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus {
  outline: 3px solid rgba(255, 107, 107, 0.5);
  outline-offset: 3px;
}

.site-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  font-size: 0.875rem;
  color: #4a5568;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-text {
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-year::before {
  content: " \00a0·\00a0 ";
}

/* Desktop breakpoint */
@media (min-width: 640px) {
  .site-header {
    padding: 1.25rem 2rem;
  }

  .main {
    padding: 3rem 2rem 4rem;
  }

  .headline {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }

  .tagline {
    font-size: 1.125rem;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
  }

  .cta {
    min-width: auto;
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }

  .site-footer {
    padding: 1.25rem 2rem;
  }
}

@media (min-width: 960px) {
  .headline {
    font-size: 2.5rem;
  }
}
