/* Longevity International CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0F172A; /* Slate 900 */
  --primary-light: #1E293B; /* Slate 800 */
  --accent: #10B981; /* Emerald 500 */
  --accent-hover: #059669; /* Emerald 600 */
  --secondary: #0EA5E9; /* Sky 500 */
  --text-dark: #334155; /* Slate 700 */
  --text-light: #F8FAFC; /* Slate 50 */
  --text-muted: #64748B; /* Slate 500 */
  --bg-main: #F8FAFC; 
  --bg-white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn {
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.23);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-light {
  background-color: var(--bg-white);
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--bg-main);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(255,255,255,0) 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-inline: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-link:hover {
  color: var(--accent-hover);
  gap: 12px;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-text {
  color: #94A3B8;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  color: var(--bg-white);
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Page Header (Inner pages) */
.page-header {
  padding: 140px 0 80px;
  background: var(--primary);
  color: var(--bg-white);
  text-align: center;
}

.page-header h1 {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  color: #CBD5E1;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Content Layout */
.content-layout {
  display: flex;
  gap: 40px;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
}

.sidebar-menu {
  position: sticky;
  top: 100px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--text-dark);
  font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

/* Horizontal Scroll Menu & Arrows */
.scroll-wrapper {
  position: sticky !important;
  top: 80px;
  z-index: 900;
  background: var(--bg-white);
  padding: 15px 0;
  margin-top: -15px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.scroll-btn {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
  pointer-events: none;
}

.horizontal-menu {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 40px;
}
.horizontal-menu::-webkit-scrollbar {
  height: 6px;
}
.horizontal-menu::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}
.horizontal-menu::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.horizontal-menu::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.horizontal-menu a {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 30px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.horizontal-menu a:hover, .horizontal-menu a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.main-content {
  flex-grow: 1;
}

.content-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  border: 1px solid rgba(0,0,0,0.05);
}

.content-section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--primary);
}

.content-section h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--primary-light);
}

.content-section p {
  margin-bottom: 16px;
}

.content-section ul {
  list-style: none;
  margin-bottom: 20px;
}

.content-section ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.content-section ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  margin-right: 8px;
  margin-bottom: 8px;
}

.hook-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: white;
  padding: 40px;
  text-align: center;
  border-radius: var(--radius);
  margin: 40px 0;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Media Queries for Navigation */
@media (max-width: 1250px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .content-section {
    padding: 24px;
  }
  .section {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .content-layout {
    flex-direction: column;
    gap: 20px;
  }
  .sidebar {
    width: 100%;
  }
  .sidebar-menu {
    position: static;
  }
}

.mobile-menu-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--bg-white);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-overlay a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 500;
  font-size: 1.1rem;
}

.mobile-menu-overlay .nav-actions {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 15px;
}

.mobile-menu-overlay .nav-actions .btn {
  width: 100%;
}
