/* Structured.app inspired styling - Pastel & Soft */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Light theme (default) - Structured.app inspired */
:root {
  --bg: #f7eaea;
  /* Pastel pink background like structured.app */
  --panel: #FFFFFF;
  --card: #FFFFFF;
  --text: #3d4d63;
  /* Dark blue-gray text */
  --muted: #6b7280;
  /* Muted text */
  --brand: #F2781D;
  /* Remy Care orange */
  --brand-2: #6BA9E2;
  /* Light blue */
  --accent: #4A90E2;
  /* Soft blue accent */
  --accent-green: #79DA7F;
  --accent-purple: #B291E8;
  --danger: #FF5555;
  --success: #79DA7F;
  --warning: #FFC800;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.1);
  --border: rgba(0, 0, 0, 0.08);
  --border-light: #E0E0E0;
  --support-email: support@remycare.org;
  --research-bg: #F0F4F8;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0f172a;
  --panel: #0b1224;
  --card: #111936;
  --text: #e5e7eb;
  --muted: #9aa3b2;
  --brand: #F2781D;
  --brand-2: #38bdf8;
  --accent: #f59e0b;
  --accent-green: #22c55e;
  --accent-purple: #B291E8;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, .5);
  --border: rgba(255, 255, 255, .08);
  --border-light: rgba(255, 255, 255, .12);
}

/* System theme detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f172a;
    --panel: #0b1224;
    --card: #111936;
    --text: #e5e7eb;
    --muted: #9aa3b2;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, .5);
    --border: rgba(255, 255, 255, .08);
    --border-light: rgba(255, 255, 255, .12);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(247, 234, 234, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] header {
  background: rgba(10, 16, 35, 0.95);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) header {
    background: rgba(10, 16, 35, 0.95);
  }
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.space {
  flex: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand svg {
  width: 28px;
  height: 28px;
}

nav a {
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  opacity: .9;
  transition: all 0.2s;
  font-size: 15px;
  text-transform: lowercase;
  white-space: nowrap;
}

nav a:hover {
  background: var(--border);
  opacity: 1;
}

@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  nav a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 99;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 8px;
}

.mobile-nav a {
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  text-transform: lowercase;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--border);
  border-color: var(--border-light);
}

.mobile-download-link {
  margin-top: 8px;
  background: var(--brand);
  color: #FFFFFF !important;
  font-weight: 700;
  text-align: center;
}

.mobile-download-link:hover {
  background: var(--brand);
  opacity: 0.9;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hide desktop nav on mobile, show mobile toggle */
@media (max-width: 768px) {
  .desktop-nav,
  .desktop-download-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  header .container.row {
    position: relative;
  }
}

/* Brand Visual (Top Image) */
.brand-visual-container {
  margin: 24px 0 0;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.brand-visual-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .brand-visual-image {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .brand-visual-image {
    max-height: 250px;
  }
}

/* Hero Section */
.hero {
  padding: 40px 0 60px;
  /* Reduced padding */
  position: relative;
  overflow: hidden;
}

/* Hero background overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(247, 234, 234, 0.7) 0%, rgba(247, 234, 234, 0.4) 100%);
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero::after {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-visual {
  text-align: center;
  margin-bottom: 30px;
  /* Reduced margin */
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  margin: 0 auto;
  display: block;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  background: linear-gradient(135deg, var(--research-bg) 0%, var(--card) 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}

.hero-lottie-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-lottie-fallback lottie-player {
  width: 400px;
  height: 400px;
}

.hero-features {
  background: transparent;
  border: none;
  padding-left: 0;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.hero-list li {
  padding: 8px 0;
  color: var(--text);
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}

.hero-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  /* Above the overlay */
}

/* Hero Background Decoration - Additional decorative elements */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(247, 234, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* Section Images/Illustrations */
.section-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  display: block;
}

.section-image-large {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px auto;
  display: block;
}

.image-placeholder {
  width: 100%;
  max-width: 600px;
  min-height: 400px;
  background: linear-gradient(135deg, var(--research-bg) 0%, var(--card) 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  margin: 40px auto;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
}

.image-placeholder .placeholder-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.image-placeholder .placeholder-text {
  font-size: 16px;
  margin-top: 8px;
}

.image-placeholder .placeholder-subtext {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

/* Apps Section Visual */
.apps-visual {
  margin: 60px 0;
  text-align: center;
}

.app-grid-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.app-visual-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.app-visual-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.app-icon-placeholder {
  width: 80px;
  height: 80px;
  background: var(--research-bg);
  border-radius: 18px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* Research Section Visual */
.research-visual {
  margin: 60px 0;
  text-align: center;
}

.research-illustration {
  max-width: 700px;
  margin: 40px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: .9rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin: 20px 0 16px;
  color: var(--text);
  font-weight: 700;
}

.lead {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 24px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: none;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--border);
}

@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .cta {
    flex-direction: column;
  }

  .cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Card - Removed for cleaner look, keeping class for layout structure but removing visual box */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: none;
  transform: none;
}

.soft-shadow {
  box-shadow: none;
}

/* Feature Highlights - Cleaner look */
.feature-highlight {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 40px;
  box-shadow: none;
}

.app-visual-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.app-visual-card:hover {
  transform: none;
  box-shadow: none;
}

/* Lottie Animation */
.remy-animation {
  width: 100%;
  max-width: 250px;
  height: 250px;
  margin: 0 auto;
}

lottie-player {
  width: 100%;
  height: 100%;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.apps {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .apps {
    padding: 40px 0;
  }

  .team-section,
  .research-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .apps {
    padding: 30px 0;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.app-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-title {
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
  font-size: 24px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: .75rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.store:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.support {
  padding: 80px 0;
}

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

details:hover {
  background: var(--card);
  box-shadow: var(--shadow-hover);
}

summary {
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 16px;
}

summary::before {
  content: "▼";
  font-size: 12px;
  transition: transform .2s;
}

details[open] summary::before {
  transform: rotate(180deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(121, 218, 127, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(121, 218, 127, 0.35);
  font-weight: 500;
}

[data-theme="dark"] .pill {
  background: rgba(34, 197, 94, .15);
  color: #86efac;
  border-color: rgba(34, 197, 94, .35);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.foot a {
  opacity: .9;
  transition: opacity 0.2s;
}

.foot a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  footer {
    padding: 30px 0;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .foot .space {
    display: none;
  }

  .foot span {
    display: none;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 24px 0;
  }
}

/* Utility Classes */
.tiny {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  font-size: .95rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}

.img-rounded-sm {
  border-radius: 6px;
}

.brand-highlight {
  color: var(--brand);
}

.text-small-muted {
  font-size: .85rem;
  color: var(--muted);
}

.card-notice {
  font-size: .85rem;
  color: var(--text);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text);
  font-weight: 700;
  margin-bottom: 16px;
}

.coming-soon-pill {
  background: rgba(156, 163, 175, .15);
  color: #9ca3af;
  border-color: rgba(156, 163, 175, .35);
}

.coming-soon-text {
  color: var(--muted);
}

.coming-soon-tag {
  opacity: 0.6;
}

.link-dimmed {
  opacity: 0.6;
}

.card-section {
  padding: 32px;
}

.margin-top-10 {
  margin-top: 10px;
}

.margin-top-16 {
  margin-top: 16px;
}

.gap-10 {
  gap: 10px;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-10px {
  gap: 10px;
}

.margin-bottom-20 {
  margin: 0 0 20px 0;
}

.font-size-20 {
  font-size: 20px;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-16 {
  gap: 16px;
}

.margin-8-0 {
  margin: 8px 0 0 0;
}

.margin-12-0 {
  margin: 0 0 12px 0;
}

.font-size-16 {
  font-size: 16px;
}

.font-weight-600 {
  font-weight: 600;
}

.margin-16-0 {
  margin: 0 0 16px 0;
}

.text-center {
  text-align: center;
}

.justify-center {
  justify-content: center;
}

.width-100 {
  width: 100%;
}

.font-weight-700 {
  font-weight: 700;
}

.cursor-pointer {
  cursor: pointer;
}

.padding-4-0 {
  padding: 4px 0;
}

.gap-24 {
  gap: 24px;
}

.margin-0 {
  margin: 0;
}

.padding-left-20 {
  padding-left: 20px;
}

.margin-bottom-8 {
  margin-bottom: 8px;
}

.margin-0 {
  margin: 0;
}

.margin-top-32 {
  margin-top: 32px;
}

.opacity-70 {
  opacity: 0.7;
}

/* Team and Research Sections */
.team-section,
.research-section {
  padding: 80px 0;
}

/* Ensure section content is above any decorations */
.section>* {
  position: relative;
  z-index: 1;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  border: 4px solid var(--border-light);
  background: var(--research-bg);
  box-shadow: var(--shadow);
}

.profile-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--research-bg);
  border: 4px solid var(--border-light);
  font-size: 64px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.profile-photo-wrapper {
  text-align: center;
}

.profile-photo-placeholder.hidden {
  display: none !important;
}

.profile-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  text-align: center;
}

.profile-title {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 24px;
  text-align: center;
  font-weight: 500;
}

.profile-bio {
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
}

.profile-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.profile-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.research-content {
  max-width: 800px;
  margin: 0 auto;
}

.research-intro {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 40px;
}

.research-details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 32px 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.research-details:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.research-details h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
}

.research-details ul {
  margin: 0;
  padding-left: 24px;
}

.research-details li {
  margin: 12px 0;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.section-subtitle {
  font-size: 22px;
  color: var(--muted);
  margin: 0 0 40px;
  text-align: center;
  font-weight: 400;
  text-transform: lowercase;
}

/* Parallax elements */
.parallax {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero {
    padding: 40px 0 60px;
  }

  .hero-visual {
    margin-bottom: 40px;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-image-placeholder {
    min-height: 300px;
    padding: 40px 20px;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-visual-dynamic {
    margin-top: 20px;
  }

  .floating-card {
    position: relative;
    left: auto;
    right: auto;
    margin: 10px auto;
    width: 200px;
  }

  .card-1 {
    top: auto;
    left: auto;
  }

  .card-2 {
    bottom: auto;
    right: auto;
  }

  .hero-lottie-fallback lottie-player {
    width: 300px !important;
    height: 300px !important;
  }

  .section {
    padding: 80px 0;
  }

  .apps {
    padding: 60px 0;
  }

  .team-section,
  .research-section {
    padding: 60px 0;
  }

  .profile-card {
    padding: 32px;
  }

  .profile-photo,
  .profile-photo-placeholder {
    width: 160px;
    height: 160px;
    font-size: 48px;
  }

  .profile-name {
    font-size: 28px;
  }

  .research-details {
    padding: 32px;
  }

  .research-intro {
    font-size: 18px;
  }

  .team-section .col-6 {
    margin-bottom: 32px;
  }

  .col-4 {
    grid-column: span 6;
  }

  .col-6 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  header .container.row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding: 30px 0 50px;
  }

  .hero-visual {
    margin-bottom: 30px;
  }

  .hero-image-placeholder {
    min-height: 250px;
    padding: 30px 20px;
  }

  .hero-image-container {
    width: 250px;
    height: 250px;
  }

  .floating-card {
    width: 180px;
    padding: 12px;
  }

  .hero-lottie-fallback lottie-player {
    width: 250px !important;
    height: 250px !important;
  }

  .section {
    padding: 60px 0;
  }

  .team-section,
  .research-section {
    padding: 50px 0;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-photo,
  .profile-photo-placeholder {
    width: 140px;
    height: 140px;
    font-size: 42px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-title {
    font-size: 18px;
  }

  .profile-bio {
    font-size: 15px;
  }

  .profile-links {
    flex-direction: column;
    width: 100%;
  }

  .profile-link {
    width: 100%;
    justify-content: center;
  }

  .research-details {
    padding: 24px;
  }

  .section-subtitle {
    font-size: 18px;
  }

  .col-4 {
    grid-column: span 12;
  }

  .title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .section-title {
    font-size: clamp(28px, 5vw, 36px);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Feature Highlights */
.feature-highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.section-margin-bottom {
  margin-bottom: 40px;
}

.feature-title {
  font-size: 32px;
  font-weight: 800;
  margin: 16px 0;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.check-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: bold;
  font-size: 18px;
}

.badge-blue {
  background: rgba(107, 169, 226, 0.15);
  color: var(--brand-2);
  border-color: rgba(107, 169, 226, 0.35);
}

.caregiver-image {
  max-width: 300px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .caregiver-image {
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .caregiver-image {
    max-width: 200px;
  }
}

.bg-soft {
  background: var(--bg);
  border: none;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

.rounded-lg {
  border-radius: 24px;
}

.shadow-lg {
  box-shadow: var(--shadow-hover);
}

.align-center {
  align-items: center;
}

.gap-32 {
  gap: 32px;
}

.text-center {
  text-align: center;
}

.margin-top-24 {
  margin-top: 24px;
}

.padding-right-24 {
  padding-right: 24px;
}

.padding-left-24 {
  padding-left: 24px;
}

@media (max-width: 768px) {
  .padding-right-24,
  .padding-left-24 {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .reverse-mobile {
    flex-direction: column-reverse;
  }

  .feature-highlight {
    padding: 24px;
  }

  .feature-title {
    font-size: 24px;
  }

  .gap-32 {
    gap: 24px;
  }

  .gap-48 {
    gap: 24px;
  }

  .row.gap-32 {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .feature-highlight {
    padding: 20px;
  }

  .gap-32,
  .gap-48 {
    gap: 16px;
  }
}

/* Interactive Loop Section */
.interactive-loop {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
}

.loop-visual {
  flex: 1;
  position: sticky;
  top: 100px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-frame {
  width: 300px;
  height: 600px;
  background: #000;
  border-radius: 40px;
  padding: 0;
  /* Removed padding */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  border: 12px solid #000;
  /* Add border to simulate bezel */
}

.loop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Align to top to prevent cropping header */
  border-radius: 28px;
  /* Adjusted radius to match inner frame */
  transition: opacity 0.3s ease;
  opacity: 1;
  /* Start visible for initial image */
  position: absolute;
  top: 0;
  left: 0;
}

.loop-image.active {
  opacity: 1;
}

.loop-content {
  flex: 1;
  padding-top: 100px;
  /* Offset for first item */
  padding-bottom: 100px;
}

.loop-step {
  min-height: 400px;
  /* Ensure enough scroll space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.5s ease;
  padding: 20px;
}

.loop-step.active {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 16px;
}

.loop-step h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.loop-step p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .interactive-loop {
    flex-direction: column;
  }

  .loop-visual {
    position: relative;
    top: 0;
    height: auto;
    width: 100%;
  }

  .device-frame {
    margin: 0 auto;
    width: 250px;
    height: 500px;
    max-width: 90%;
  }

  @media (max-width: 480px) {
    .device-frame {
      width: 200px;
      height: 400px;
    }
  }

  .loop-content {
    padding-top: 40px;
  }

  .loop-step {
    min-height: auto;
    margin-bottom: 40px;
    opacity: 1;
  }
}

/* Dynamic Hero */
.hero-visual-dynamic {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-container {
  position: relative;
  width: 300px;
}

.phone-mockup-image {
  width: 100%;
  border-radius: 40px;
  box-shadow: var(--shadow-hover);
}

.floating-card {
  position: absolute;
  background: var(--card);
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 220px;
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  left: -60px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  right: -60px;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bg-green {
  background: rgba(121, 218, 127, 0.2);
  color: var(--accent-green);
}

.bg-blue {
  background: rgba(107, 169, 226, 0.2);
  color: var(--brand-2);
}

.text-bold {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.text-tiny {
  font-size: 12px;
  color: var(--muted);
}

/* Research Card Preview */
.research-card-preview {
  background: var(--card);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  box-shadow: var(--shadow);
}

.quote-icon {
  font-size: 80px;
  color: var(--brand);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  left: 20px;
  line-height: 1;
  font-family: serif;
}

.quote-text {
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  color: var(--text);
}

.author-role {
  font-size: 14px;
  color: var(--muted);
}

/* Hero Image Container (Static Asset) */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-image-container {
    max-width: 100%;
    padding: 0 16px;
  }
}