:root {
  --bg-color-start: #1A1624;
  --bg-color-end: #0D0E15;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-color: #fce7f3; 
  --text-gradient-start: #ffffff;
  --text-gradient-end: #94a3b8;
  --highlight-color: #ffffff;
  --btn-bg: #ffffff;
  --btn-text: #0f111a;
  --btn-hover-bg: #e2e8f0;
  --pill-bg: rgba(255, 255, 255, 0.05);
  --pill-text: #e2e8f0;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color-start);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Ambient Video Background */
.ambient-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0.6; /* Increased visibility for emotional vibe */
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 3rem;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

a {
  color: var(--highlight-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* Header & Nav */
header {
  padding: 2rem 0;
  width: 100%;
  z-index: 10;
  position: relative;
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links.glass-capsule {
  display: flex;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05), 0 4px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.nav-links.glass-capsule a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--btn-hover-bg);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

.pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background-color: var(--pill-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--pill-text);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.pill.outline {
  background: rgba(255, 255, 255, 0.05); /* Liquid glass base */
  border: 1px solid rgba(255, 255, 255, 0.18); /* Solid glassy border */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* Main Content Area */
main {
  flex: 1;
}

/* Hero */
.hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem; /* Ensures cards have more breathing room above the footer */
}

.feature-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 5s ease;
}

.feature-card:hover .feature-bg {
  transform: scale(1.05);
}

.feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(16, 12, 24, 0.95) 0%, rgba(16, 12, 24, 0.3) 50%, rgba(16, 12, 24, 0) 100%);
  pointer-events: none;
}

.feature-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
}

.feature-content h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
}

.feature-content p {
  font-size: 1rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Layout Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 6rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 4rem; }
.mb-4 { margin-bottom: 6rem; }

/* Subpage Settings (Terms / Privacy) */
.subpage-header {
  padding-top: 4rem;
  padding-bottom: 3rem;
  max-width: 800px;
}

.subpage-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 4rem;
  margin-bottom: 4rem;
}

.subpage-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subpage-content h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.subpage-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.subpage-content ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.subpage-content li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.subpage-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #a5b4fc;
}

.subpage-content li strong {
  color: var(--text-primary);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

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

.logo-small {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

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

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.125rem; }
  
  .nav-links { display: none; }
  
  .subpage-content { padding: 2rem; }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
