/* ============================================
   SOLOFOLD DESIGN SYSTEM
   Luxury-minimal. Confident. Premium.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- TOKENS --- */
:root {
  --teal: #0F766E;
  --teal-dark: #0A5C56;
  --teal-deep: #074E49;
  --teal-light: #CCFBF1;
  --teal-pale: #F0FDFA;
  --coral: #E76F51;
  --coral-dark: #D4603F;
  --coral-light: #FDEAE5;
  --gold: #E9C46A;
  --gold-dark: #D4B05A;
  --slate: #264653;
  --slate-deep: #1A3640;
  --sage: #87B38D;
  --white: #FAFAF8;
  --off-white: #F5F5F3;
  --text: #2D2D2D;
  --text-light: #555;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --border-light: #F0F0EE;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: 20px; }

.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* --- LAYOUT --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
@media (max-width: 768px) { .section { padding: 60px 0; } .section-sm { padding: 40px 0; } }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--teal);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--teal-dark) !important; color: white !important; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; transition: var(--transition); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: var(--coral-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--teal); color: white; }
.btn-secondary:hover { background: var(--teal-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; }
.btn-gold { background: var(--gold); color: var(--slate); }
.btn-gold:hover { background: var(--gold-dark); color: var(--slate); transform: translateY(-1px); }
.btn-lg { padding: 18px 36px; font-size: 17px; border-radius: 12px; }

/* --- CARDS --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* --- HERO --- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-dark {
  background: linear-gradient(160deg, var(--slate-deep) 0%, var(--teal-deep) 50%, var(--teal-dark) 100%);
  color: white;
}
.hero-dark h1 { color: white; }
.hero-dark p { color: var(--teal-light); }
.hero .overline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 20px; }
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-pattern {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
@media (max-width: 768px) { .hero { padding: 120px 0 60px; } }

/* --- SECTION HEADERS --- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header .overline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-muted); }

/* --- PRODUCT CARDS --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-image .product-label {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: white;
  text-align: center;
  padding: 0 24px;
}
.product-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 22px; margin-bottom: 8px; }
.product-card-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; flex: 1; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--teal); }
.product-price small { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text-muted); font-weight: 400; }

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--teal-pale);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.feature-item:hover { border-color: var(--teal-light); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: white;
}
.feature-item h4 { margin-bottom: 8px; font-size: 18px; }
.feature-item p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: var(--teal-light); font-size: 17px; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-gold { position: relative; z-index: 1; }

/* --- TRUST STRIP --- */
.trust-strip {
  background: var(--off-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
  padding: 12px 0;
}
.trust-item .number {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--teal);
}
.trust-item .label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* --- FOOTER --- */
.footer {
  background: var(--slate-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: white;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--gold); }
.footer-about { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer h4 { color: white; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color var(--transition); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* --- BADGE --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-coral { background: var(--coral-light); color: var(--coral); }
.badge-gold { background: #FEF3C7; color: #92400E; }

/* --- LEGAL PAGES --- */
.legal-page { padding: 140px 0 80px; }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 24px; margin-top: 40px; margin-bottom: 12px; color: var(--teal); }
.legal-page h3 { font-size: 18px; margin-top: 28px; margin-bottom: 8px; }
.legal-page p { margin-bottom: 16px; color: var(--text-light); font-size: 15px; }
.legal-page ul, .legal-page ol { margin-bottom: 16px; padding-left: 24px; color: var(--text-light); font-size: 15px; }
.legal-page li { margin-bottom: 8px; }

/* --- EMAIL SIGNUP --- */
.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}
.email-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  background: white;
  transition: border-color var(--transition);
}
.email-form input:focus { outline: none; border-color: var(--teal); }
@media (max-width: 480px) { .email-form { flex-direction: column; } }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
