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

:root {
  --bg: #f9f0fb;
  --text: #211a1d;
  --accent: #8075ff;
  --btn-bg: #d4a5f7;
  --btn-text: #211a1d;
  --dark-section: #211a1d;
  --dark-text: #f9f0fb;
  --max-width: 1200px;
  --gutter: 4vw;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--text);
}

.cart-icon svg {
  width: 20px;
  height: 20px;
}

/* ===== PRODUCT CARDS (Homepage) ===== */
.products-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.product-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #c084fc, #818cf8, #6366f1);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

/* ===== TAGLINE BANNER ===== */
.tagline-banner {
  position: relative;
  width: 100%;
  padding: 5rem var(--gutter);
  margin: 3rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #818cf8 35%, #a7b8a0 65%, #c4ceb8 100%);
}

.tagline-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 25% 50%, rgba(124, 58, 237, 0.8), transparent),
    radial-gradient(ellipse 50% 70% at 60% 60%, rgba(129, 140, 248, 0.4), transparent),
    linear-gradient(135deg, #c4ceb8 0%, #a7b8a0 50%, #7c3aed 100%);
  z-index: 0;
}

.tagline-banner h2 {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
  font-style: italic;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 4rem var(--gutter);
  text-align: center;
}

.newsletter-section h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  color: #666;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input {
  padding: 1rem 1.25rem;
  border: 1px solid #e0d5e3;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

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

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 2px solid var(--btn-bg);
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  background: #c490e8;
  border-color: #c490e8;
}

/* ===== PRODUCT PAGE HERO ===== */
.product-hero {
  padding: 3rem var(--gutter) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--dark-section);
  border-radius: 24px;
  padding: 3rem;
  overflow: hidden;
}

.product-hero-content {
  color: var(--dark-text);
}

.product-hero-content h1 {
  margin-bottom: 0.25rem;
  color: var(--dark-text);
}

.product-hero-content h2 {
  margin-bottom: 2rem;
  font-style: italic;
}

.product-hero-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.product-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-image img {
  border-radius: 12px;
  max-height: 600px;
  object-fit: contain;
}

/* ===== PRODUCT SIGNUP FORM ===== */
.product-signup {
  margin-top: 2rem;
}

.product-signup .newsletter-form {
  align-items: flex-start;
}

.product-signup .newsletter-form input {
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.product-signup .newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.product-signup .newsletter-form input:focus {
  border-color: var(--accent);
}

.product-signup .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.product-signup .btn-primary:hover {
  background: #6b63e0;
  border-color: #6b63e0;
}

.product-signup .privacy-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

/* ===== PRODUCT QUOTE SECTION ===== */
.product-quote {
  text-align: center;
  padding: 4rem var(--gutter);
  max-width: 900px;
  margin: 0 auto;
}

.product-quote h2 {
  color: var(--text);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* ===== FEATURE CARDS ===== */
.features-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-card-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
  background: #e8dced;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ===== FORM FEEDBACK ===== */
.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-feedback--success {
  color: #4ade80;
}

.form-feedback--error {
  color: #f87171;
}

.newsletter-section .form-feedback--success {
  color: #22c55e;
}

.newsletter-section .form-feedback--error {
  color: #ef4444;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem var(--gutter);
  font-size: 0.8rem;
  color: #999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .product-hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .product-hero-image {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .product-signup .newsletter-form input {
    max-width: 100%;
  }
}
