/* ========================================
   Get Happy, LLC — Modern Site Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  color: #1d1d1f;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Custom Properties --- */
:root {
  --blue: #007AFF;
  --blue-dark: #0055cc;
  --gray-50: #f9fafb;
  --gray-100: #f2f2f7;
  --gray-200: #e5e5ea;
  --gray-400: #aeaeb2;
  --gray-500: #8e8e93;
  --gray-600: #636366;
  --gray-800: #1c1c1e;
  --gray-900: #0a0a0a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --max-w: 1120px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }
.text-gray { color: var(--gray-600); }
.text-white { color: #fff; }

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--gray-600); line-height: 1.6; max-width: 640px; }
.section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--blue); margin-bottom: 12px;
}

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--gray-600);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(165deg, #007AFF 0%, #5856d6 50%, #636366 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(transparent, rgba(0,0,0,0.08));
}
.hero .container { position: relative; z-index: 1; }
.hero .subtitle { color: rgba(255,255,255,0.85); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text { max-width: 520px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text .subtitle { margin-bottom: 36px; }
.hero-img { position: relative; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* --- Product Hero (landing pages) --- */
.product-hero {
  padding: 80px 0 60px;
  background: linear-gradient(165deg, #007AFF 0%, #5856d6 50%, #636366 100%);
  color: #fff; text-align: center;
}
.product-hero h1 { margin-bottom: 12px; }
.product-hero .subtitle { margin: 0 auto 32px; color: rgba(255,255,255,0.85); max-width: 700px; }
.product-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.product-hero-img {
  max-width: 820px; margin: 0 auto;
  background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(10px);
}
.product-hero-img img { border-radius: var(--radius-sm); margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: #fff; color: var(--blue); }
.btn-primary:hover { background: var(--gray-100); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.25); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: 96px 0; }
.section-dark { background: var(--gray-900); color: #fff; }
.section-dark .subtitle { color: var(--gray-400); }
.section-light { background: var(--gray-100); }
.section-header { margin-bottom: 56px; }

/* --- Feature Cards --- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;
}
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section-light .feature-card { background: #fff; }
.section-dark .feature-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.section-dark .feature-card:hover { background: rgba(255,255,255,0.1); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0,122,255,0.1), rgba(88,86,214,0.1));
}
.section-dark .feature-icon { background: linear-gradient(135deg, rgba(0,122,255,0.25), rgba(88,86,214,0.2)); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.65; }
.section-dark .feature-card p { color: var(--gray-400); }

/* --- Product Cards (homepage) --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.product-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 260px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.03); }
.product-card-body { padding: 28px 32px 32px; }
.product-card-body .product-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-card-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.product-card-body p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.65; }
.product-card-link {
  font-size: 0.92rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.product-card-link:hover { gap: 10px; }
.product-card-link::after { content: '\2192'; }

/* --- Steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), #5856d6); color: #fff;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--gray-600); font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* --- Highlight Section --- */
.highlight {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.highlight-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.highlight-text h2 { margin-bottom: 16px; }
.highlight-text p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.7; margin-bottom: 12px; }
.highlight-img { display: flex; justify-content: center; }
.highlight-img img { max-width: 220px; border-radius: var(--radius); }

/* --- CTA / Contact --- */
.cta {
  padding: 80px 0; text-align: center;
  background: linear-gradient(165deg, #007AFF, #5856d6);
  color: #fff;
}
.cta h2 { margin-bottom: 16px; }
.cta .subtitle { margin: 0 auto 32px; color: rgba(255,255,255,0.8); }

/* --- Bottom Features (dark) --- */
.bottom-features { padding: 80px 0; }
.bottom-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
  text-align: center;
}
.bottom-feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.bottom-feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.bottom-feature p { font-size: 0.88rem; color: var(--gray-400); }

/* --- Footer --- */
.footer {
  padding: 40px 0; background: var(--gray-900); color: var(--gray-500); font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer a { color: var(--blue); transition: color var(--transition); }
.footer a:hover { color: #fff; }

/* --- App Store Badge --- */
.app-store-badge { height: 44px; width: auto; display: inline-block; }

/* --- Privacy link --- */
.privacy-link { font-size: 0.85rem; color: var(--blue); font-weight: 500; }
.privacy-link:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-text .subtitle { margin-left: auto; margin-right: auto; }
  .hero-img { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .highlight-inner { grid-template-columns: 1fr; text-align: center; }
  .highlight-img { order: -1; }
  .btn-group { justify-content: center; }
  .nav-links { gap: 18px; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
