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

:root {
  --primary: #7e22ce;
  --primary-light: #a855f7;
  --primary-dark: #581c87;
  --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: rgba(255, 255, 255, 0.5);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-hover: 0 12px 40px 0 rgba(126, 34, 206, 0.15);
}

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

html {
  scroll-behavior: smooth; /* Elegant scrolling between sections */
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Base Glass Container for sub-pages */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 100px auto 40px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  animation: slideUp 0.8s ease-out;
}

/* -----------------------------
   Navigation Bar
----------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-dark);
  cursor: pointer;
  z-index: 1001;
}

.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* -----------------------------
   Buttons
----------------------------- */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
}

.cta-button:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-primary-small {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary-small:hover {
  background: var(--primary-light);
}


/* -----------------------------
   Hero Section
----------------------------- */
.hero-section {
  padding: 140px 5% 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 100vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: slideUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeIn 1.2s ease-out;
}

.hero-mockup-img {
  width: 100%;
  max-width: 320px;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.hero-mockup-img:hover {
  transform: translateY(-10px);
}

/* -----------------------------
   Features Section
----------------------------- */
.features-section {
  padding: 80px 5%;
  background: var(--surface-solid);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-gradient);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* -----------------------------
   About Section
----------------------------- */
.about-section {
  padding: 80px 5%;
  display: flex;
  justify-content: center;
}

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  box-shadow: var(--shadow);
  max-width: 900px;
  text-align: center;
}

.glass-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* -----------------------------
   Footer
----------------------------- */
footer {
  background: #111;
  color: #fff;
  padding: 60px 5% 20px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.8rem;
}

.footer-brand p {
  color: #888;
}

.footer-links h4 {
  color: white;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  color: #666;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* Forms (For Delete Page) */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.2);
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-mockup-img {
    margin-top: 30px;
    max-width: 280px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-actions {
    display: none;
  }
  
  .navbar nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding-top: 90px;
    padding-left: 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .navbar nav.active {
    right: 0;
  }
  
  .navbar nav a {
    font-size: 1.2rem;
  }
}

/* -----------------------------
   Legal & Policy Document Styles
----------------------------- */
.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(126, 34, 206, 0.15);
}

.legal-header h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(126, 34, 206, 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(126, 34, 206, 0.2);
}

.legal-toc {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(126, 34, 206, 0.15);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.legal-toc h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-toc ol {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
}

.legal-toc li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.legal-toc a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.legal-toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-toc ol {
    columns: 1;
  }
}

.legal-section {
  margin: 2.5rem 0;
  scroll-margin-top: 90px;
}

.legal-section h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(126, 34, 206, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.legal-section h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section ul, .legal-section ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
  background: rgba(126, 34, 206, 0.04);
}

.legal-callout.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.legal-callout.danger {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

.legal-callout.info {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.legal-callout h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(126, 34, 206, 0.15);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
}

.legal-table th {
  background: rgba(126, 34, 206, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(126, 34, 206, 0.15);
}

.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}
