/* ===== Grace Love Jar — Website Styles ===== */

:root {
  --primary: #d34ddb;       /* App primary brand */
  --secondary: #694ddb;     /* App secondary brand */
  --bg: #060608;
  --bg-soft: #0d0d10;
  --card: rgba(26, 26, 26, 0.65);
  --card-solid: #1a1a1a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --grad: linear-gradient(135deg, var(--primary), var(--secondary));
  --grad-h: linear-gradient(90deg, var(--primary), var(--secondary));
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-glow: 0 0 30px rgba(211, 77, 219, 0.35);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; position: relative; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--primary { background: var(--grad-h); color: #000; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(211, 77, 219, 0.4); }

.btn--small { padding: 9px 22px; font-size: 0.9rem; }

.btn--appstore {
  padding: 16px 30px;
  font-size: 1.05rem;
  text-align: left;
  gap: 14px;
}
.btn__icon { width: 26px; height: 30px; }
.btn--appstore span { line-height: 1.15; font-size: 0.92rem; font-weight: 500; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav__logo { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: #000; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(211, 77, 219, 0.28), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(105, 77, 219, 0.28), transparent 50%),
    var(--bg);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent, rgba(0,0,0,0.5) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 760px;
}
.hero__logo-wrap {
  width: 120px; height: 120px;
  margin: 0 auto 28px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(211, 77, 219, 0.5), 0 10px 30px rgba(0,0,0,0.5);
}
.hero__logo { width: 100%; height: 100%; object-fit: cover; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #fff 30%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.hero__sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero__actions { margin-bottom: 18px; }
.hero__note { color: var(--text-dim); font-size: 0.88rem; }

.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-dim);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; top: 8px; }
  50% { opacity: 1; top: 22px; }
}

/* ===== Quote ===== */
.quote {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--text);
}
.quote__sub { color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ===== Section Head ===== */
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section__desc { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Features ===== */
.features { background: var(--bg-soft); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 77, 219, 0.4);
  box-shadow: var(--shadow-glow);
}
.feature-card--wide { grid-column: span 4; text-align: center; max-width: 760px; margin: 0 auto; }
.feature-card__icon { font-size: 2.4rem; margin-bottom: 18px; }
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ===== Screenshots ===== */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.screen-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 4 / 3;
}
.screen-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(211, 77, 219, 0.2), 0 20px 50px rgba(0,0,0,0.6);
}
.screen-card img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Ritual ===== */
.ritual { background: var(--bg-soft); }
.ritual__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ritual__text .section__title { text-align: left; margin-bottom: 20px; }
.ritual__text > p { color: var(--text-muted); margin-bottom: 24px; }
.ritual__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ritual__list li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.check {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ritual__visual { display: flex; justify-content: center; }
.streak-demo {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
}
.streak-demo__circle {
  width: 150px; height: 150px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid transparent;
  background-clip: padding-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-glow);
}
.streak-demo__circle::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.streak-demo__emoji { font-size: 2.6rem; line-height: 1; }
.streak-demo__num { font-size: 2rem; font-weight: 800; }
.streak-demo__label { font-size: 0.78rem; letter-spacing: 1px; color: var(--text-muted); }

.week-tracker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.week-day { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.week-day span { font-size: 0.72rem; font-weight: 700; color: var(--text-dim); }
.week-day.today span { color: var(--primary); }
.week-day i {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}
.week-day i.filled {
  background: var(--grad);
  border: none;
  box-shadow: 0 0 10px rgba(211, 77, 219, 0.5);
  position: relative;
}
.week-day i.filled::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 700;
}
.week-day i.today-ring {
  border: 2px solid var(--primary);
  background: transparent;
}

/* ===== Blessing Cards ===== */
.blessings { background: var(--bg); }
.card-themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.blessing-card {
  border-radius: 20px;
  padding: 28px 24px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blessing-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.6); }
.blessing-card__top { text-align: center; margin-bottom: auto; }
.blessing-card__thanks {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  display: block;
}
.heart { font-size: 0.85rem; display: block; margin-top: 4px; }
.blessing-card__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-top: 8px;
  opacity: 0.8;
}
.sparkle { font-size: 1.6rem; display: block; }
.blessing-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 20px 0;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.blessing-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.6;
}
.blessing-card__foot img { width: 20px; height: 20px; border-radius: 5px; }

.blessing-card--classic { background: #fff; color: #000; }
.blessing-card--classic .blessing-card__foot { border-top-color: rgba(0,0,0,0.1); }

.blessing-card--amethyst { background: var(--grad); color: #fff; }

.blessing-card--sunset {
  background: linear-gradient(135deg, rgba(242,115,115,1), var(--primary));
  color: #fff;
}

.blessing-card--midnight {
  background: linear-gradient(135deg, rgba(20,20,30,1), rgba(8,8,13,1));
  color: #fff;
  border: 1px solid rgba(211, 77, 219, 0.3);
}

/* ===== Download ===== */
.download {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(211, 77, 219, 0.15), transparent 60%),
    var(--bg-soft);
}
.download__inner { max-width: 620px; margin: 0 auto; }
.download__logo {
  width: 90px; height: 90px;
  margin: 0 auto 28px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.download .section__title { margin-bottom: 12px; }
.download > .container > p { color: var(--text-muted); margin-bottom: 32px; }
.download .btn { margin: 0 auto; }
.download__note { color: var(--text-dim); font-size: 0.88rem; margin-top: 20px; }

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 50px 0;
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__logo { width: 30px; height: 30px; border-radius: 8px; }
.footer__line { color: var(--text-muted); font-style: italic; font-family: var(--serif); }
.footer__copy { color: var(--text-dim); font-size: 0.82rem; }

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
  .card-themes { grid-template-columns: repeat(2, 1fr); }
  .ritual__inner { grid-template-columns: 1fr; gap: 40px; }
  .ritual__text .section__title { text-align: center; }
  .ritual__text { text-align: center; }
  .ritual__list { align-items: center; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 75%;
    max-width: 320px;
    flex-direction: column;
    justify-content: center;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(20px);
    gap: 28px;
    transition: right 0.4s ease;
    padding: 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  }
  .nav__links.open { right: 0; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .screen-grid { grid-template-columns: 1fr; }
  .card-themes { grid-template-columns: 1fr; }
  .hero__content { padding-top: 100px; }
}