/* ==========================================================================
   CSS Variables & Design System (Premium & Fast)
   ========================================================================== */
:root {
  /* Core Colors - Light Mode (Premium Branded Slate & Blue) */
  --primary: #2563EB;
  --primary-hover: #1E40AF;
  --background: #F8FAFC; /* Slate-50 for a clean corporate feel */
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border: rgba(37, 99, 235, 0.12); /* Subtle blue-tinted border */
  --success: #10B981;
  
  /* Gradient Accents */
  --gradient-text: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  
  /* Utilities */
  --border-radius: 16px;
  --nav-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(37, 99, 235, 0.05);
  --shadow-md: 0 4px 12px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 10px 24px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] {
  /* Core Colors - Dark Mode (Rich Slate/Zinc) */
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --background: #0B0F19; /* Very dark rich blue-grey */
  --surface: #131B2C; /* Slightly lighter surface */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.06);
  --gradient-text: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
  
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
}

body {
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1.125rem; line-height: 1.7; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
  padding-top: var(--nav-height);
}

section {
  padding: 100px 0;
}

/* ==========================================================================
   Components (Premium & Fast)
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  cursor: pointer;
  border: none;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

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

.btn-outline:hover {
  background-color: var(--surface);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
  background-color: var(--surface);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(250, 250, 250, 0.9); /* Solid fallback */
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

[data-theme="dark"] .navbar {
  background-color: rgba(11, 15, 25, 0.95);
}

/* Removed backdrop-filter for performance */

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

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

.logo img {
  height: 36px;
  width: auto;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
  transform: rotate(15deg);
}

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

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  padding: 140px 0 100px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-badge .badge-icon {
  font-size: 1.1rem;
}

.hero-logo-container {
  margin-bottom: 24px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 25%; /* Apple-style squircle look */
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  border: 1px solid var(--border);
}

.hero p.hero-desc {
  font-size: 1.35rem;
  max-width: 650px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}

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

/* ==========================================================================
   App Showcase Section
   ========================================================================== */
.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.app-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px; /* Forces it to be a small box */
}

.app-card img {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Content Pages & FAQ
   ========================================================================== */
.page-header {
  text-align: center;
  padding: 80px 0 40px;
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.content-block h2 { margin-top: 32px; font-size: 1.75rem; }
.content-block h3 { margin-top: 24px; font-size: 1.35rem; }
.content-block ul, .content-block ol { margin-left: 24px; margin-bottom: 24px; color: var(--text-muted); font-size: 1.1rem; }
.content-block li { margin-bottom: 8px; }

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  margin-top: 16px;
  transition: max-height 0.4s ease-in-out;
}
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: auto;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

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

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

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */
.hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background-color: var(--text-main); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-height); left: 0; width: 100%;
    background-color: var(--surface);
    flex-direction: column; padding: 32px; gap: 24px;
    box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border);
    transform: translateY(-150%); opacity: 0; z-index: -1;
  }
  .nav-links.active { transform: translateY(0); opacity: 1; transition: opacity 0.2s ease; }
  .content-block { padding: 32px 24px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
}
