/* Font Face Declarations */
@font-face {
  font-family: 'Neue Machina';
  src: url('/NeueMachina-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Machina';
  src: url('/NeueMachina-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Machina';
  src: url('/NeueMachina-Regular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Account for fixed navbar */
}

body {
  margin: 0;
  font-family: 'Neue Machina', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0a0a;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Green gradient glow effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, 
    rgba(16, 185, 129, 0.35) 0%, 
    rgba(6, 78, 59, 0.25) 30%,
    rgba(6, 78, 59, 0.1) 50%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1500;
  padding: 1rem 0;
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1501;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 1.125rem;
  z-index: 1502;
  position: relative;
}

.nav-logo svg {
  color: #10b981;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  z-index: 1502;
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-button:hover {
  color: #10b981;
  transform: scale(1.1);
}

.mobile-menu-button:active {
  transform: scale(0.9);
}

.mobile-menu-close {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link-cta {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
}

.nav-link-cta:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 5.5rem 1.5rem 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2000;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.9);
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  /* Backdrop overlay */
  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }
  
  .nav-links.active::before {
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  .mobile-menu-close:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: scale(1.05);
  }
  
  .mobile-menu-close:active {
    transform: scale(0.95);
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    display: block;
    background: transparent;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: white;
  }
  
  .nav-link:active {
    transform: scale(0.98);
  }
  
  /* Divider before CTA */
  .nav-link-cta::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 1.5rem;
    position: absolute;
    top: -0.75rem;
    left: 0;
  }
  
  .nav-link-cta {
    margin-top: 1.25rem;
    text-align: center;
    padding: 1rem 1.5rem;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    font-weight: 500;
    font-size: 0.9375rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-link-cta:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  }
  
  .nav-link-cta:active {
    transform: translateY(0);
  }
  
  .nav-logo span {
    font-size: 1rem;
  }
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  overflow-x: hidden;
  padding-top: 80px; /* Account for fixed navbar */
}

/* Background effects */
.landing-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 0;
}

/* Hero section blurred dots */
.hero-blur-1,
.hero-blur-2,
.hero-blur-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.hero-blur-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.8) 0%, rgba(16, 185, 129, 0.4) 40%, transparent 70%);
  top: -10%;
  left: -15%;
  animation: float 20s ease-in-out infinite;
}

.hero-blur-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.7) 0%, rgba(16, 185, 129, 0.3) 40%, transparent 70%);
  top: 20%;
  right: -10%;
  animation: float 15s ease-in-out infinite reverse;
}

.hero-blur-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.6) 0%, rgba(16, 185, 129, 0.2) 40%, transparent 70%);
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  animation: float 18s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Font classes */
.font-geist {
  font-family: 'Neue Machina', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-instrument-serif {
  font-family: 'Neue Machina', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
}

/* Utility classes */
.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-2xl {
  max-width: 42rem;
}

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

.mr-auto {
  margin-right: auto;
}

.ml-auto {
  margin-left: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

.pt-14 {
  padding-top: 3.5rem;
}

.pb-12 {
  padding-bottom: 3rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

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

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 1rem;
}

/* Icon sizing */
.h-12 {
  height: 3rem;
}

.w-12 {
  width: 3rem;
}

.h-20 {
  height: 5rem;
}

.w-20 {
  width: 5rem;
}

/* Padding utilities */
.p-6 {
  padding: 1.5rem;
}

.p-12 {
  padding: 3rem;
}

/* Typography extensions */
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

/* Flex utilities */
.flex {
  display: flex;
}

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

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

.items-start {
  align-items: flex-start;
}

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

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.-space-x-3 > * + * {
  margin-left: -0.75rem;
}

/* Avatar styles */
.h-9 {
  height: 2.25rem;
}

.w-9 {
  width: 2.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.ring-2 {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.object-cover {
  object-fit: cover;
}

/* Star icons */
.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.fill-white {
  fill: currentColor;
}

/* Typography */
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.italic {
  font-style: italic;
}

.text-white {
  color: white;
}

.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-black {
  color: black;
}

/* Button styles */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.inline-flex {
  display: inline-flex;
}

.gap-2 {
  gap: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pr-6 {
  padding-right: 1.5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pl-6 {
  padding-left: 1.5rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.bg-emerald-500 {
  background-color: #10b981;
}

.bg-emerald-500:hover,
.hover\:bg-emerald-600:hover {
  background-color: #059669;
}

.border {
  border-width: 1px;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:pt-20 {
    padding-top: 5rem;
  }
  
  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .sm\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  
  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:pt-28 {
    padding-top: 7rem;
  }
  
  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:flex-row {
    flex-direction: row;
  }
}

/* Feature cards */
.text-emerald-500 {
  color: #10b981;
}

.text-emerald-400 {
  color: #34d399;
}

.bg-emerald-500\/20 {
  background-color: rgba(16, 185, 129, 0.2);
}

.hover\:text-emerald-400:hover {
  color: #34d399;
}

.justify-between {
  justify-content: space-between;
}

.border-t {
  border-top-width: 1px;
}

/* Animation for smooth appearance */
.landing-page > section:first-child {
  animation: fadeInUp 0.8s ease-out;
}

.landing-page > section {
  width: 100%;
}

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

/* Glow effect on buttons */
.bg-emerald-500 {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.bg-emerald-500:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Terms and Contact page styles */
.terms-content h2 {
  color: white;
}

.terms-content p,
.terms-content ul {
  line-height: 1.7;
}

.terms-content ul {
  margin-top: 0.5rem;
}

.terms-content section {
  scroll-margin-top: 100px;
}

.list-disc {
  list-style-type: disc;
}

.list-inside {
  list-style-position: inside;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.leading-relaxed {
  line-height: 1.7;
}

.flex-shrink-0 {
  flex-shrink: 0;
}
