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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

body.dark-theme {
  color: #f0f0f0;
  background-color: #121212;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
}

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

.gradient-text {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  border: 2px solid #6366f1;
  color: #6366f1;
  background: transparent;
}

.btn-outline:hover {
  background: #6366f1;
  color: white;
}

.btn-ghost {
  color: #6366f1;
  background: transparent;
  border: none;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===== NAVBAR ===== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme header {
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme header.scrolled {
  background: rgba(18, 18, 18, 0.98);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #6366f1;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
}

.nav-logo span {
  color: #333;
}

body.dark-theme .nav-logo span {
  color: #f0f0f0;
}

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

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #6366f1;
}

body.dark-theme .nav-link {
  color: #f0f0f0;
}

body.dark-theme .nav-link:hover {
  color: #8b5cf6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

body.dark-theme .hamburger span {
  background: #f0f0f0;
}

/* ===== HERO ===== */

#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -200px;
  left: -100px;
}

.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  bottom: -100px;
  right: -50px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  text-align: center;
  color: #333;
}

body.dark-theme .hero-content {
  color: #f0f0f0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.hero-cta {
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-trust span {
  color: #666;
  font-size: 0.9rem;
}

body.dark-theme .hero-trust span {
  color: #aaa;
}

.trust-logos {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

body.dark-theme .trust-logo {
  color: #f0f0f0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

body.dark-theme .hero-scroll-indicator {
  color: #aaa;
}

.scroll-mouse {
  width: 30px;
  height: 50px;
  border: 2px solid #6366f1;
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 6px;
  height: 12px;
  background: #6366f1;
  border-radius: 10px;
  margin-top: 8px;
  animation: scrollPulse 1.5s infinite;
}

@keyframes scrollPulse {
  0% { opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* ===== ABOUT ===== */

#about {
  padding: 8rem 0;
}

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

.about-visual {
  position: relative;
}

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-img-card {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.about-img-card:hover {
  transform: translateY(-5px);
}

body.dark-theme .about-img-card {
  background: linear-gradient(135deg, #2d2d2d, #1e1e1e);
  color: #aaa;
}

.about-img-card--main {
  height: 280px;
  font-size: 1.1rem;
}

.about-img-card--secondary {
  height: 120px;
}

.about-img-placeholder--sm {
  font-size: 0.8rem;
}

.about-badge-float {
  position: absolute;
  top: -20px;
  left: 20px;
  background: #6366f1;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-badge-float i {
  font-size: 1.2rem;
}

.about-text {
  padding: 2rem 0;
}

.section-eyebrow {
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-desc {
  margin-bottom: 1.8rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #333;
}

body.dark-theme .about-feature {
  color: #f0f0f0;
}

.feature-icon-sm {
  width: 20px;
  height: 20px;
  background: #6366f1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ===== PRELOADER ===== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

body.dark-theme #preloader {
  background: #121212;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #6366f1;
  margin-bottom: 1rem;
}

.preloader-logo span {
  color: #333;
}

body.dark-theme .preloader-logo span {
  color: #f0f0f0;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  animation: preloaderFill 2s ease-in-out forwards;
}

@keyframes preloaderFill {
  to { width: 100%; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
  .about-text { order: 1; }
  .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-cta { flex-direction: column; gap: 1rem; }
  .hero-trust { gap: 0.5rem; }
  .trust-logos { gap: 1rem; }
  .about-features { grid-template-columns: 1fr; }
  .section-desc { font-size: 1rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  .preloader-logo { font-size: 2.5rem; }
  .hero-badge { font-size: 0.8rem; }
  .trust-logo { font-size: 1rem; }
}

/* ===== ANIMATIONS ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== DARK MODE TOGGLE ===== */

.dark-mode-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  z-index: 1001;
}

/* ===== CUSTOM PROPERTIES ===== */

:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #a855f7;
  --text: #333;
  --bg: #fff;
  --card: #f8f9fa;
  --border: #e0e0e0;
}

body.dark-theme {
  --primary: #8b5cf6;
  --secondary: #a855f7;
  --accent: #c77dff;
  --text: #f0f0f0;
  --bg: #121212;
  --card: #1e1e1e;
  --border: #333;
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}