@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #1a1a2e;
  --primary-foreground: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-600: #e11d48;
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-600: #7c3aed;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-600: #0d9488;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f7f7f7;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--gray-900);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--gray-800);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.nav-link {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: white;
  background: var(--gray-800);
}

.nav-link.active {
  background: white;
  color: var(--gray-900);
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background: var(--gray-900);
  border-top: 1px solid var(--gray-800);
  padding: 0.75rem 1rem;
}

.mobile-menu.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mobile-menu a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--gray-800);
}

.mobile-menu a.active {
  background: white;
  color: var(--gray-900);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    padding: 0.375rem 0.75rem;
  }
  .nav-logo span {
    display: inline;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  background: var(--gray-900);
  color: white;
  margin-top: -3.5rem;
  padding-top: 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800), var(--gray-900));
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: rgba(75, 85, 99, 0.2);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero-logo {
  width: 12rem;
  height: auto;
  margin-bottom: 1.5rem;
  border: 3px solid #d4af37;
  border-radius: 50%;
  padding: 0.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 sup {
  font-size: 1.5rem;
  vertical-align: super;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gray-300);
  max-width: 32rem;
  margin: 1.5rem auto;
  line-height: 1.6;
}

.hero-description {
  max-width: 48rem;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.hero-description p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero-description p.italic {
  font-style: italic;
  color: var(--gray-500);
}

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: white;
  color: var(--gray-900);
  transform: scale(1.05);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-500);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
  .hero h1 sup { font-size: 2rem; }
  .hero-tagline { font-size: 1.5rem; }
  .hero-logo { width: 16rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 6rem; }
  .hero h1 sup { font-size: 2.5rem; }
  .hero-logo { width: 18rem; }
}

/* Sections */
.section {
  padding: 6rem 1rem;
  scroll-margin-top: 5rem;
}

.section-container {
  max-width: 56rem;
  margin: 0 auto;
}

.section-wide {
  max-width: 72rem;
  margin: 0 auto;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading.white {
  color: white;
}

.section-text {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.section-text.large {
  font-size: 1.25rem;
}

.section-text.light {
  font-weight: 300;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--gray-50), white);
  border-left: 4px solid var(--gray-900);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 1rem 1rem 0;
  font-size: 1.125rem;
  color: var(--gray-700);
  font-style: italic;
}

/* Divider */
.divider {
  max-width: 12rem;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

/* Pattern Section */
.pattern-section {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  margin: 3rem 1rem;
  padding: 6rem 2rem;
  backdrop-filter: blur(8px);
  border: 1px solid white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Four Gates */
.gates-section {
  background: linear-gradient(180deg, var(--gray-50), white);
}

.gates-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.gate-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gate-card:hover {
  transform: translateY(-5px);
}

.gate-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gray-900);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
}

.gate-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.gate-card .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.gate-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.gates-summary {
  display: grid;
  gap: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.gates-summary h4 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.gates-summary p {
  color: var(--gray-600);
}

@media (min-width: 768px) {
  .gates-grid { grid-template-columns: repeat(2, 1fr); }
  .gates-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gates-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Community Section */
.community-section {
  background: var(--gray-900);
  color: white;
}

.community-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.community-card {
  background: var(--gray-800);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-700);
  transition: transform 0.3s ease;
}

.community-card:hover {
  transform: translateY(-5px);
}

.community-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.community-card ul {
  list-style: none;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.community-card li {
  margin-bottom: 0.5rem;
}

.community-quote {
  text-align: center;
  border-top: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
  padding: 2rem 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

.community-quote p {
  font-size: 1.25rem;
  color: var(--gray-300);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.community-quote cite {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-style: normal;
}

@media (min-width: 768px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .community-quote p { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .community-grid { grid-template-columns: repeat(4, 1fr); }
}

/* CPL Section */
.cpl-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.cpl-image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.cpl-hero-image {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(217, 119, 6, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cpl-section .section-heading {
  color: white;
}

.section-subheading {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 48rem;
  margin: -1rem auto 2rem;
  font-style: italic;
}

.cpl-section .section-text {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.cpl-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.cpl-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.cpl-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.cpl-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.cpl-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.cpl-cta {
  text-align: center;
  margin-top: 3rem;
}

.cpl-button {
  display: inline-block;
  background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.cpl-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

@media (min-width: 768px) {
  .cpl-grid { grid-template-columns: repeat(2, 1fr); }
  .section-subheading { font-size: 1.375rem; }
}

@media (min-width: 1024px) {
  .cpl-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Explore Cards */
.explore-grid {
  display: grid;
  gap: 2rem;
}

.explore-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease;
  display: block;
}

.explore-card:hover {
  transform: translateY(-8px);
}

.explore-card.rose {
  background: linear-gradient(135deg, var(--rose-50), #faf5ff);
  border-color: var(--rose-100);
}

.explore-card.violet {
  background: linear-gradient(135deg, var(--violet-50), #eef2ff);
  border-color: var(--violet-100);
}

.explore-card.teal {
  background: linear-gradient(135deg, var(--teal-50), #ecfeff);
  border-color: var(--teal-100);
}

.explore-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

.explore-card.rose .explore-icon { background: var(--rose-100); color: var(--rose-600); }
.explore-card.rose:hover .explore-icon { background: #fecdd3; }
.explore-card.violet .explore-icon { background: var(--violet-100); color: var(--violet-600); }
.explore-card.violet:hover .explore-icon { background: #ddd6fe; }
.explore-card.teal .explore-icon { background: var(--teal-100); color: var(--teal-600); }
.explore-card.teal:hover .explore-icon { background: #99f6e4; }

.explore-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.explore-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.explore-card .link {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.explore-card:hover .link { gap: 0.75rem; }
.explore-card.rose .link { color: var(--rose-600); }
.explore-card.violet .link { color: var(--violet-600); }
.explore-card.teal .link { color: var(--teal-600); }

@media (min-width: 768px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Join Section */
.join-section {
  padding: 8rem 1rem;
  background: var(--primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.1;
}

.join-section::after {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

.join-content {
  position: relative;
  z-index: 10;
  max-width: 32rem;
  margin: 0 auto;
}

.join-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.join-section > .join-content > p {
  font-size: 1.125rem;
  opacity: 0.8;
  max-width: 28rem;
  margin: 0 auto 2.5rem;
}

.join-section .disclaimer {
  margin-top: 2rem;
  font-size: 0.875rem;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .join-section h2 { font-size: 3rem; }
  .join-section > .join-content > p { font-size: 1.25rem; }
}

/* Footer */
.footer {
  background: var(--gray-950);
  color: var(--gray-500);
  padding: 3rem 1rem;
  border-top: 1px solid var(--gray-900);
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: 0.05em;
}

.footer h4 {
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--gray-300);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Page Headers */
.page-header {
  background: var(--gray-900);
  color: white;
  padding: 8rem 1rem 4rem;
  text-align: center;
  margin-top: -3.5rem;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 4rem; }
}

/* Content Sections for Inner Pages */
.content-section {
  padding: 4rem 1rem;
}

.content-container {
  max-width: 48rem;
  margin: 0 auto;
}

.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.content-section p {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-section ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.content-section li {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* MailerLite Form Container */
.ml-form-container {
  max-width: 28rem;
  margin: 0 auto;
}

/* R Factor Section */
.rfactor-section {
  background: #1a4a4f;
  color: white;
}

.rfactor-image {
  width: 12rem;
  height: 12rem;
  object-fit: contain;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .rfactor-image {
    width: 16rem;
    height: 16rem;
  }
}

.rfactor-subhead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.rfactor-section .section-text.white-text {
  color: rgba(255, 255, 255, 0.9);
}

.rfactor-quote {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid rgba(255, 255, 255, 0.6);
  margin-top: 2rem;
}

.rfactor-quote p {
  color: white;
  font-weight: 500;
  font-style: italic;
  margin: 0;
}

/* Grace Section */
.grace-section {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.7), rgba(251, 113, 133, 0.6), rgba(244, 63, 94, 0.7));
}

.grace-images {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.grace-img {
  width: 100%;
  max-width: 14rem;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  background: #000;
  padding: 1rem;
}

@media (min-width: 768px) {
  .grace-img {
    max-width: 18rem;
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .grace-img {
    max-width: 22rem;
    padding: 1.5rem;
  }
}

.section-heading.dark {
  color: #1f2937;
}

.grace-subhead {
  font-size: 1.125rem;
  color: #374151;
  font-weight: 400;
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.section-text.dark-text {
  color: #4b5563;
}

.grace-phases {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.grace-phase {
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
}

.grace-phase.discovery {
  background: rgba(253, 230, 138, 0.8);
}

.grace-phase.deprogramming {
  background: rgba(167, 243, 208, 0.8);
}

.grace-phase.integration {
  background: rgba(191, 219, 254, 0.8);
}

.grace-phase.cultivation {
  background: rgba(233, 213, 255, 0.8);
}

.grace-phase h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.grace-phase p {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
}

@media (min-width: 768px) {
  .grace-phases {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grace-phases {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Community Buttons */
.community-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.community-btn.primary {
  background: white;
  color: #1f2937;
}

.community-btn.primary:hover {
  background: #f3f4f6;
}

.community-btn.secondary {
  background: #374151;
  color: white;
  border: 1px solid #4b5563;
}

.community-btn.secondary:hover {
  background: #4b5563;
}

/* Members Section */
.members-section {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: white;
}

.members-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.signout-btn {
  padding: 0.5rem 1rem;
  background: #374151;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.signout-btn:hover {
  background: #4b5563;
}

.members-grid {
  display: grid;
  gap: 1.5rem;
}

.member-card {
  background: rgba(55, 65, 81, 0.5);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #4b5563;
  transition: all 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  border-color: #6b7280;
}

.member-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

.member-icon.blue { color: #60a5fa; }
.member-icon.green { color: #34d399; }
.member-icon.yellow { color: #fbbf24; }
.member-icon.purple { color: #a78bfa; }
.member-icon.rose { color: #fb7185; }
.member-icon.cyan { color: #22d3ee; }

.member-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.member-card p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.doc-link:hover {
  color: #93c5fd;
}

.coming-soon {
  font-size: 0.875rem;
  font-weight: 500;
}

.coming-soon.blue { color: #60a5fa; }
.coming-soon.green { color: #34d399; }
.coming-soon.yellow { color: #fbbf24; }
.coming-soon.purple { color: #a78bfa; }
.coming-soon.rose { color: #fb7185; }
.coming-soon.cyan { color: #22d3ee; }

@media (min-width: 768px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 24rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #4b5563;
}

.modal-icon {
  width: 4rem;
  height: 4rem;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #4b5563;
}

.modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-content > p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.modal-content input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.modal-content input[type="password"]:focus {
  outline: none;
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

.error-text {
  color: #ef4444;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.signin-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
}

.signin-btn:hover {
  background: #374151;
}
