:root {
  --blue-primary: #1847b8;
  --blue-glow: rgba(24, 71, 184, 0.4);
  --bg-dark: #0f1016;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-main: #f0f0f5;
  --text-muted: #a0a0b0;
  --glass-bg: rgba(20, 20, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --border-radius: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  filter: brightness(1.2);
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
}

.nav-brand span {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
}

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

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

section {
  padding: 6rem 0;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background: radial-gradient(circle at 50% 30%, var(--blue-glow) 0%, transparent 60%);
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  background: rgba(24, 71, 184, 0.15);
  color: #648cff;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(24, 71, 184, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, #4dc0ff 0%, var(--blue-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
}

.get-app-btn img {
  height: auto;
  width: 200px;
  transition: transform 0.3s ease;
}

.get-app-btn:hover img {
  transform: translateY(-3px) scale(1.02);
}

/* App Sections */
.app-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.app-section.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .app-section, .app-section.reverse {
    flex-direction: column;
    text-align: center;
  }
}

.app-info {
  flex: 1;
}

.app-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.app-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.app-features-list li svg {
  width: 24px;
  height: 24px;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.app-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-wrapper {
  position: relative;
  border-radius: 40px;
  padding: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
}

.mockup-wrapper::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px; bottom: -20px; left: -20px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(40px);
}

.mockup-wrapper img {
  border-radius: 30px;
  max-width: 300px;
  width: 100%;
  display: block;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(24, 71, 184, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #4dc0ff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Carousel */
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--blue-primary);
  transform: scale(1.3);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.credit {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* Legal Pages Styling Overrides */
.legal-container {
  max-width: 800px;
  margin: 100px auto 40px;
  padding: 3rem;
}
.legal-container h1, .legal-container h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-container p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.legal-container a {
  color: #4dc0ff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* simple mobile fallback, or we can just hide it and use footer links */
  }
}
