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

/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --primary: #5B1FAF;
  --primary-rgb: 91, 31, 175;
  --primary-light: #7a3ee2;
  --primary-dark: #3f1280;
  --accent: #E2D6FF;
  --accent-vibrant: #B38CFF;
  --text-main: #1C1130;
  --text-muted: #594D73;
  --bg-base: #F8F6FC;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --border-color: rgba(91, 31, 175, 0.1);
  --border-hover: rgba(91, 31, 175, 0.2);
  --shadow-sm: 0 4px 12px rgba(91, 31, 175, 0.03);
  --shadow-md: 0 12px 24px -4px rgba(91, 31, 175, 0.06);
  --shadow-lg: 0 20px 40px -8px rgba(91, 31, 175, 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --max-width-legal: 800px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Glowing background blur blobs */
body::before, body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}

body::before {
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(179, 140, 255, 0.4) 0%, rgba(91, 31, 175, 0.05) 70%);
}

body::after {
  top: 600px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(226, 214, 255, 0.5) 0%, rgba(91, 31, 175, 0.03) 70%);
}

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

a:hover {
  color: var(--primary-light);
}

/* ==========================================
   HEADER SECTION
   ========================================== */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(248, 246, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(91, 31, 175, 0.15);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* ==========================================
   LANDING HERO SECTION
   ========================================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 70vh;
  justify-content: center;
}

.hero-tag {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(91, 31, 175, 0.15);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(91, 31, 175, 0.2); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(91, 31, 175, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(91, 31, 175, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

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

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Premium Buttons */
.cta-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white !important;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(91, 31, 175, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(0);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(91, 31, 175, 0.5), 0 0 15px rgba(179, 140, 255, 0.3);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button svg {
  transition: var(--transition-smooth);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   FEATURES / BRIEF SECTION
   ========================================== */
.features-section {
  max-width: var(--max-width);
  margin: 0 auto 8rem auto;
  padding: 0 2rem;
}

.section-label {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
  color: var(--text-main);
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-vibrant) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: white;
  transform: rotate(5deg) scale(1.05);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================
   LEGAL PAGES STRUCTURE
   ========================================== */
.legal-wrapper {
  max-width: var(--max-width-legal);
  margin: 4rem auto 8rem auto;
  padding: 0 2rem;
}

.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 3rem 4rem;
  box-shadow: var(--shadow-lg);
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-content {
  font-family: 'Inter', sans-serif;
  color: #2D2342;
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  color: var(--text-main);
  position: relative;
  display: flex;
  align-items: center;
}

.legal-content h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  background-color: var(--primary);
  border-radius: 2px;
  margin-right: 0.75rem;
}

.legal-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--primary-dark);
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.legal-content li strong {
  color: var(--text-main);
}

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, Monaco, Consolas, monospace;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.legal-content blockquote {
  background: linear-gradient(135deg, rgba(226, 214, 255, 0.2) 0%, rgba(91, 31, 175, 0.05) 100%);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 16px 16px 0;
}

.legal-content blockquote p {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
  border-top: 1px solid var(--border-color);
  background: rgba(248, 246, 252, 0.9);
  padding: 4rem 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.footer-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  margin-top: 1rem;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3.5rem 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}
