/*
 * Anchor Website Styles
 * Enhanced visual design inspired by Calm and Talkspace
 */

/* Sprat Font */
@font-face {
  font-family: 'Sprat';
  src: url('https://cdn.jsdelivr.net/gh/EthanNakache/Sprat-type@main/fonts/Sprat-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/EthanNakache/Sprat-type@main/fonts/Sprat-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sprat';
  src: url('https://cdn.jsdelivr.net/gh/EthanNakache/Sprat-type@main/fonts/Sprat-Medium.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/EthanNakache/Sprat-type@main/fonts/Sprat-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sprat';
  src: url('https://cdn.jsdelivr.net/gh/EthanNakache/Sprat-type@main/fonts/Sprat-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/EthanNakache/Sprat-type@main/fonts/Sprat-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light mode colors */
  --bg-light-1: rgb(173, 216, 255);
  --bg-light-2: rgb(255, 242, 242);
  --bg-light-3: rgb(216, 216, 255);
  --text-light: rgb(56, 56, 56);
  --text-light-secondary: rgba(56, 56, 56, 0.6);
  --card-light: rgba(255, 255, 255, 0.85);
  --border-light: rgba(255, 255, 255, 0.8);
  --accent-light: rgb(100, 150, 255);

  /* Dark mode colors */
  --bg-dark-1: rgb(38, 46, 64);
  --bg-dark-2: rgb(31, 31, 46);
  --bg-dark-3: rgb(46, 38, 56);
  --text-dark: rgb(240, 240, 240);
  --text-dark-secondary: rgba(240, 240, 240, 0.6);
  --card-dark: rgba(38, 38, 38, 0.85);
  --border-dark: rgba(77, 77, 77, 0.3);
  --accent-dark: rgb(150, 180, 255);
}

:root {
  --bg-1: var(--bg-light-1);
  --bg-2: var(--bg-light-2);
  --bg-3: var(--bg-light-3);
  --text-primary: var(--text-light);
  --text-secondary: var(--text-light-secondary);
  --card-bg: var(--card-light);
  --border-color: var(--border-light);
  --accent: var(--accent-light);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: var(--bg-dark-1);
    --bg-2: var(--bg-dark-2);
    --bg-3: var(--bg-dark-3);
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-dark-secondary);
    --card-bg: var(--card-dark);
    --border-color: var(--border-dark);
    --accent: var(--accent-dark);
  }
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-size: 200% 200%;
  animation: gradientShift 30s ease infinite;
  min-height: 100vh;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Sprat', Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.subline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.large-text {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid #fff;
}

.section-large {
  padding: 8rem 0;
}

/* Navigation - enhanced with logo */
nav {
  padding: 1.5rem 0;
  backdrop-filter: blur(20px);
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-logo {
  font-size: 1.5rem;
  font-family: 'Sprat', Georgia, serif;
  color: var(--text-primary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hero Section - full width image */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero .subline {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

/* Feature Grid - Calm-style icons */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--card-bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.feature-item h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* How It Works - Talkspace-style with phone mockup */
.how-it-works-section {
  padding: 6rem 0;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.how-step:nth-child(even) {
  direction: rtl;
}

.how-step:nth-child(even) > * {
  direction: ltr;
}

.how-step-content {
  padding: 2rem 0;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: Georgia, serif;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-color);
  font-weight: 600;
}

.how-step h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.how-step p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.phone-mockup {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  border: 12px solid var(--text-primary);
  border-radius: 40px;
  padding: 20px 10px;
  background: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  border-radius: 30px;
  display: block;
  background: white;
  min-height: 500px;
  object-fit: cover;
}

.screen-placeholder {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

@media (max-width: 968px) {
  .how-step {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .how-step:nth-child(even) {
    direction: ltr;
  }
}

/* Testimonials */
.testimonials-section {
  padding: 6rem 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  margin: 1rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-minimal {
  background: transparent;
  border: none;
  padding: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.125rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 6rem;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
}

.footer-social {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.social-link svg {
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* Spacing utilities */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mt-6 { margin-top: 6rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.py-4 { padding-top: 4rem; padding-bottom: 4rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-solo {margin-bottom: 0;}
.text-left { text-align: left; }
/* .quote-bg {background-image: url(../assets/quote-bg-2.png);background-position: center center;background-size: cover;padding: 250px 0;} */
.quote-bg {padding: 250px 0;background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.1));}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

a:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Legal pages */
.legal-section {
  text-align: left;
  margin-bottom: 2.5rem;
}

.legal-section h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-section p, .legal-section ul {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-section ul {
  margin-left: 1.5rem;
  margin-top: 0.75rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}
