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

:root {
  /* Color Palette */
  --bg-color: #ffffff;
  --bg-secondary: #F8F9FC;
  --primary: #1F2C5A;
  --primary-glow: rgba(31, 44, 90, 0.1);
  --secondary: #1573FF;
  --accent: #F59E0B;
  --text-main: #1D2939;
  --text-muted: #475467;
  --success: #27AE60;
  --danger: #EB5757;

  /* Glassmorphism -> Flat Design */
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: 1.125rem; color: var(--text-muted); }

/* Gradient Text -> Solid Accent */
.text-gradient {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: var(--primary);
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4A3BB9 0%, #6997F4 100%);
  color: white !important;
  box-shadow: 0 8px 20px rgba(74, 59, 185, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 25px rgba(74, 59, 185, 0.35);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5746D6 0%, #7CABFF 100%);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Background Effects */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
}

.blob-1 {
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary);
  animation: float 10s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--secondary);
  animation: float 12s infinite alternate-reverse ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-content h1 {
  margin-bottom: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  width: 100%;
  max-width: 500px;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 40px var(--primary-glow);
  animation: float-mockup 6s infinite ease-in-out;
  border: 2px solid var(--glass-border);
}

.hero-features-list-card {
    background: linear-gradient(135deg, rgba(220, 225, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.hero-list-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-list-item .icon {
    color: var(--primary);
    font-size: 1.25rem;
}

.hero-list-item p {
    color: var(--text-main);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* Feature Highlights (Alternating) */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
}

.feature-highlight:nth-child(even) .highlight-content {
  order: 2;
}

.feature-highlight:nth-child(even) .highlight-image {
  order: 1;
}

.highlight-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.highlight-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.highlight-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlight-image .phone-frame {
  animation: none; /* Stop floating for these blocks */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .feature-highlight {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding: 4rem 0;
  }
  
  .feature-highlight:nth-child(even) .highlight-content,
  .feature-highlight:nth-child(even) .highlight-image {
    order: unset; /* Reset order on mobile */
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  border: 1px solid var(--glass-border);
}

.feature-card h3 {
  font-size: 1.5rem;
}

/* Small Feature Cards */
.feature-card-small {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.2s ease;
}

.feature-card-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.feature-card-small i {
  font-size: 1.2rem;
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  padding: 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.feature-card-small h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
  line-height: 1.3;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Page Headers (for inner pages) */
.page-header {
  padding-top: calc(var(--header-height) + 6rem);
  padding-bottom: 4rem;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
}

/* Content Blocks (for About, Terms, etc.) */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.content-block h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-block p, .content-block ul {
  margin-bottom: 1.5rem;
}

.content-block ul {
  padding-left: 1.5rem;
}

.content-block li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* Animations */
@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes float-mockup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 4rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s ease-in-out;
  }

  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
