/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg: #fdf8f5;
  --clr-text: #1a1a1a;
  --clr-muted: #6b6b6b;
  --clr-accent: #c4956a;
  --clr-accent-dark: #a37852;
  --clr-dark: #1a1a1a;
  --clr-white: #ffffff;
  --clr-card-bg: #ffffff;
  --clr-border: #e8ddd4;
  --clr-badge: #f5ece4;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 2px 24px rgba(0,0,0,0.07);
  --max-w: 680px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--clr-text);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn--primary { background: var(--clr-accent); color: var(--clr-white); }
.btn--primary:hover { background: var(--clr-accent-dark); transform: translateY(-1px); }
.btn--dark { background: var(--clr-dark); color: var(--clr-white); }
.btn--dark:hover { background: #333; transform: translateY(-1px); }

/* ===== SOCIAL ICONS ===== */
.social-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--clr-white); border: 1.5px solid var(--clr-border);
  color: var(--clr-text); text-decoration: none; transition: all 0.2s ease;
}
.social-links a:hover { background: var(--clr-accent); color: var(--clr-white); border-color: var(--clr-accent); transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; }

/* ===== HERO ===== */
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.avatar-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--clr-border);
  background: var(--clr-border); flex-shrink: 0;
}
.avatar { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__name { font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 700; }
.hero__tagline { max-width: 480px; color: var(--clr-muted); font-size: 1rem; line-height: 1.7; }

/* ===== PRODUCTS ===== */
.products { padding: 3rem 0; }
.products__grid { display: flex; flex-direction: column; gap: 1.5rem; }

.product-card {
  background: var(--clr-card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.product-card__img-wrap { width: 100%; background: var(--clr-badge); }
.product-card__img { width: 100%; height: auto; object-fit: contain; display: block; }
.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.product-card__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.product-card__desc { color: var(--clr-muted); font-size: 0.92rem; line-height: 1.6; }

.product-card__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.downloads { font-size: 0.82rem; color: var(--clr-muted); }
.downloads__num { font-weight: 700; color: var(--clr-text); }
.price-wrap { display: flex; align-items: center; gap: 0.4rem; }
.price { font-weight: 700; font-size: 0.95rem; }
.price--old { text-decoration: line-through; color: var(--clr-muted); font-size: 0.85rem; }
.price--new { color: var(--clr-accent-dark); font-size: 1.1rem; }
.launch-badge { background: var(--clr-badge); color: var(--clr-accent-dark); font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 50px; }

/* ===== EMAIL SECTION ===== */
.email-section { padding: 3.5rem 0; background: var(--clr-white); border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); }
.email-section__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.email-section__sub { color: var(--clr-muted); max-width: 360px; font-size: 0.95rem; }
.email-form-wrap { display: flex; gap: 0.75rem; width: 100%; max-width: 420px; flex-wrap: wrap; justify-content: center; }
.email-input { flex: 1; min-width: 220px; padding: 0.75rem 1.2rem; border: 1.5px solid var(--clr-border); border-radius: 50px; font-family: var(--font-sans); font-size: 0.95rem; outline: none; background: var(--clr-bg); color: var(--clr-text); transition: border-color 0.2s; }
.email-input:focus { border-color: var(--clr-accent); }
.email-input::placeholder { color: #aaa; }
.subscribe-msg { font-size: 0.875rem; min-height: 1.2em; color: var(--clr-accent-dark); font-weight: 500; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 4rem 0; text-align: center; }
.cta-section__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta-section__title { font-family: var(--font-serif); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; }
.cta-section__sub { color: var(--clr-muted); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer { padding: 2.5rem 0; background: var(--clr-text); color: var(--clr-white); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer__brand { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; }
.social-links--footer a { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--clr-white); }
.social-links--footer a:hover { background: var(--clr-accent); border-color: var(--clr-accent); }
.footer__copy { color: rgba(255,255,255,0.5); font-size: 0.82rem; }

/* ===== RESPONSIVE ===== */
@media (min-width: 540px) {
  .products__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 420px) {
  .email-form-wrap { flex-direction: column; }
  .email-input { min-width: unset; width: 100%; }
  .btn { width: 100%; text-align: center; }
}
