@font-face {
  font-family: 'CinzelDecorative';
  src: url('../fonts/CinzelDecorative-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'CinzelDecorative';
  src: url('../fonts/CinzelDecorative-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'JosefinSlab';
  src: url('../fonts/JosefinSlab-Variable.ttf') format('truetype');
  font-weight: 100 700;
}

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

:root {
  --bg-teal: #c5ece5;
  --bg-teal-light: #daf3ee;
  --bg-white: #f4faf8;
  --heading-dark: #1a3a33;
  --text-body: #2d4f47;
  --text-muted: #5a7a72;
  --accent-yellow: #e8a520;
  --accent-blue: #2d6e8a;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(26, 58, 51, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JosefinSlab', Georgia, serif;
  background: var(--bg-teal);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Hero --- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(170deg, var(--bg-teal-light) 0%, var(--bg-teal) 50%, #a8ddd3 100%);
  position: relative;
  overflow: hidden;
}

.hero-splash {
  width: min(400px, 80vw);
  height: auto;
  margin-bottom: 2rem;
  border-radius: 24px;
  filter: drop-shadow(0 12px 30px rgba(26, 58, 51, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-family: 'CinzelDecorative', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--heading-dark);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-body);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 54px;
}

/* --- Features --- */

.features {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.features h2 {
  font-family: 'CinzelDecorative', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--heading-dark);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 58, 51, 0.1);
}

.feature-card .icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'CinzelDecorative', serif;
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--heading-dark);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Bugs showcase --- */

.bugs-showcase {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg-teal-light);
}

.bugs-showcase h2 {
  font-family: 'CinzelDecorative', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--heading-dark);
}

.bugs-showcase .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.bug-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.bug-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.bug-grid img {
  width: 90px;
  height: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 58, 51, 0.08);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(26, 58, 51, 0.08);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.bug-grid img:hover {
  transform: scale(1.2) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(26, 58, 51, 0.15);
}

/* --- Origin --- */

.origin {
  padding: 4rem 2rem 5rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.origin h2 {
  font-family: 'CinzelDecorative', serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
  color: var(--heading-dark);
}

.origin p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.origin a {
  color: var(--accent-yellow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.origin a:hover {
  border-bottom-color: var(--accent-yellow);
}

/* --- CTA --- */

.cta {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(0deg, #a8ddd3 0%, var(--bg-teal) 100%);
}

.cta h2 {
  font-family: 'CinzelDecorative', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--heading-dark);
}

.cta .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* --- Footer --- */

footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  background: #a8ddd3;
}

footer a {
  color: var(--text-body);
  text-decoration: none;
}
