@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Syne:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
  --color-bg: #0D0F1A;
  --color-bg-elevated: #16192B;
  --color-bg-nav: rgba(13, 15, 26, 0.85);
  --color-accent: #7F77DD;
  --color-accent-hover: #9891E3;
  --color-text: #FFFFFF;
  --color-text-muted: #9CA3AF;
  --color-success: #1D9E75;
  --color-success-bg: rgba(29, 158, 117, 0.15);
  --color-beta: #F59E0B;
  --color-beta-bg: rgba(245, 158, 11, 0.15);
  --color-dev: #7F77DD;
  --color-dev-bg: rgba(127, 119, 221, 0.15);
  --color-danger: #EF4444;
  --color-border: rgba(255, 255, 255, 0.1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-subtle: 0 2px 8px rgba(0,0,0,0.12);
}

[data-theme="light"] {
  --color-bg: #F9FAFB;
  --color-bg-elevated: #FFFFFF;
  --color-bg-nav: rgba(249, 250, 251, 0.85);
  --color-accent: #6B62D9;
  --color-accent-hover: #5A52C2;
  --color-text: #111827;
  --color-text-muted: #4B5563;
  --color-border: rgba(0, 0, 0, 0.1);
  --shadow-subtle: 0 4px 12px rgba(0,0,0,0.05);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text);
}
h1 { font-size: clamp(36px, 5vw, 48px); }
.display { font-size: clamp(48px, 8vw, 64px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
.text-small { font-size: 14px; }
.text-caption { font-size: 12px; }
.text-muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-hover); }

/* Layout & Spacing */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }
@media (max-width: 480px) { .section { padding: 48px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-primary {
  background-color: var(--color-accent);
  color: #FFF;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 119, 221, 0.3);
  color: #FFF;
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-icon {
  padding: 8px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  display: inline-flex;
}
.btn-icon:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: var(--color-bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 70px;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none !important;
}
.logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--color-bg-elevated); }

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-size: 24px;
  font-family: var(--font-heading);
  color: var(--color-text);
  text-decoration: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 0;
  animation: particleFloat 60s linear infinite;
}
@keyframes particleFloat {
  0% { background-position: 0 0; }
  100% { background-position: 400px 400px; }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.typewriter-container {
  display: inline-block;
  min-width: 280px;
  color: var(--color-accent);
}
.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
}
.phone-mockup {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 600px;
  border-radius: 40px;
  border: 12px solid var(--color-bg-elevated);
  background: var(--color-bg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  z-index: 1;
  overflow: hidden;
  display: none;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--color-bg-elevated);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 2;
}
@media (min-width: 1024px) {
  .phone-mockup { display: block; }
}

/* Metrics Bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  background: var(--color-bg-elevated);
  padding: 48px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  margin-top: -48px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-subtle);
}
.metric-item {
  text-align: center;
}
.metric-number {
  font-size: 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 24px;
}

/* Featured Apps Strip */
.featured-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: none; /* Firefox */
}
.featured-strip::-webkit-scrollbar { display: none; }
.featured-card {
  min-width: 320px;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}
.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-live { background: var(--color-success-bg); color: var(--color-success); }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); }
.badge-beta { background: var(--color-beta-bg); color: var(--color-beta); }
.badge-beta::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-beta); }
.badge-dev { background: var(--color-dev-bg); color: var(--color-dev); }
.badge-dev::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-dev); }

.tech-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  opacity: 0.6;
}
.trust-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.2);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  color: var(--color-text-muted);
  display: flex;
}
.footer-socials a:hover {
  color: var(--color-accent);
}

/* Utilities & Animations */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  color: #FFF;
}
@media (min-width: 769px) { .whatsapp-fab { display: none; } }

/* Project Card specifics */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: auto;
}
.tech-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.tech-tab {
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tech-tab.active, .tech-tab:hover {
  background: var(--color-accent);
  color: #FFF;
  border-color: var(--color-accent);
}
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 7px; bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 4px; left: -32px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 4px solid var(--color-bg);
}

/* Star Rating */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-end;
}
.star-rating input { display: none; }
.star-rating label {
  color: var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #F59E0B;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--color-text-muted);
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}
.faq-item.active .material-symbols-outlined {
  transform: rotate(180deg);
}

.page-transition {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-banner {
  background: var(--color-success-bg);
  color: var(--color-success);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: none;
  align-items: center;
  gap: 8px;
}

.page-header {
  padding: 160px 0 64px;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-bg-elevated), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}

.cta-band {
  background: linear-gradient(135deg, var(--color-bg-elevated), rgba(127, 119, 221, 0.15));
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.review-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}
.review-stars {
  color: #F59E0B;
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.review-stars .material-symbols-outlined { font-size: 18px; }

/* Contact Sidebar */
.contact-info-block {
  background: var(--color-bg-elevated);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item .material-symbols-outlined {
  color: var(--color-accent);
}
.contact-item a {
  color: var(--color-text);
  text-decoration: none;
}
.contact-item a:hover {
  color: var(--color-accent);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .process-steps { grid-template-columns: 1fr; } }
.step-item {
  text-align: center;
  position: relative;
}
.step-item::after {
  content: 'arrow_forward';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  top: 24px;
  right: -24px;
  color: var(--color-border);
}
.step-item:last-child::after { display: none; }
@media (max-width: 768px) { .step-item::after { display: none; } }
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  margin: 0 auto 16px;
}

.play-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: var(--transition);
}
.play-store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}
