/* --------------------------------------------------
   RESET
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #e5e7eb;
  line-height: 1.6;
}

body.light {
  background: #f5f6f8;
  color: #111827;
}

/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.75rem 0;
}

body.light .site-header {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  color: #38bdf8;
}

.logo-icon svg rect {
  fill: rgba(15, 23, 42, 0.9);
}

body.light .logo-icon svg rect {
  fill: #e5e7eb;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: #cbd5f5;
  font-weight: 500;
  font-size: 0.95rem;
}

body.light .nav-list a {
  color: #374151;
}

.nav-demo {
  background: #38bdf8;
  color: #0f172a !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* Theme toggle */
.theme-toggle {
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-size: 0.9rem;
}

body.light .theme-toggle {
  background: #e5e7eb;
  color: #111827;
}

.theme-icon {
  display: inline-block;
}

body.light .theme-icon-sun { opacity: 1; }
body.light .theme-icon-moon { opacity: 0.4; }
body:not(.light) .theme-icon-sun { opacity: 0.4; }
body:not(.light) .theme-icon-moon { opacity: 1; }

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #22c55e 0, transparent 40%),
              radial-gradient(circle at top right, #38bdf8 0, transparent 40%),
              radial-gradient(circle at bottom, #6366f1 0, transparent 45%);
  opacity: 0.35;
  animation: heroGradient 18s linear infinite;
  pointer-events: none;
}

body.light .hero-bg {
  opacity: 0.25;
}

@keyframes heroGradient {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-20px,0); }
  100% { transform: translate3d(0,0,0); }
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #f9fafb;
}

body.light .hero-title {
  color: #111827;
}

.hero-lead {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  color: #cbd5f5;
  max-width: 540px;
}

body.light .hero-lead {
  color: #4b5563;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta-pill {
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.7);
}

body.light .hero-meta-pill {
  background: #ffffff;
  border-color: #e5e7eb;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-large { padding: 0.8rem 1.4rem; }

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

body.light .btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-small {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* --------------------------------------------------
   FLOATING CARDS
-------------------------------------------------- */
.floating-card {
  position: relative;
  animation: floatCard 10s ease-in-out infinite;
}

@keyframes floatCard {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-6px,0); }
  100% { transform: translate3d(0,0,0); }
}

/* --------------------------------------------------
   DEVICE FRAME
-------------------------------------------------- */
.device-frame {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1rem;
  width: 260px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

body.light .device-frame {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.device-status {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.device-line {
  margin-bottom: 0.5rem;
}

.animated-mobile {
  animation: mobilePulse 12s ease-in-out infinite;
}

@keyframes mobilePulse {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-4px,0) scale(1.02); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(15, 23, 42, 0.9);
}

body.light .section-alt {
  background: #ffffff;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-lead {
  margin: 1rem 0 2rem;
  color: #cbd5f5;
}

body.light .section-lead {
  color: #4b5563;
}

/* --------------------------------------------------
   FEATURE GRID
-------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.95);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.light .feature-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  margin-bottom: 0.7rem;
  color: #38bdf8;
}

/* --------------------------------------------------
   LISTS
-------------------------------------------------- */
.list {
  list-style: none;
  margin-top: 1rem;
}

.list-label {
  font-weight: 600;
}

/* --------------------------------------------------
   LICENSING
-------------------------------------------------- */
.licensing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.licensing-card {
  background: rgba(15, 23, 42, 0.95);
  padding: 1.8rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.light .licensing-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.licensing-price {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.licensing-note {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.licensing-list {
  list-style: none;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   TESTIMONIALS
-------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.95);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

body.light .testimonial-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.testimonial-quote {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.testimonial-author {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 2rem 0;
}

body.light .site-footer {
  background: #111827;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: #e5e7eb;
  margin-right: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.85rem;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner,
  .mobile-inner {
    flex-direction: column;
  }

  .hero-aside {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .nav-list {
    position: absolute;
    top: 60px;
    right: 5%;
    background: rgba(15, 23, 42, 0.95);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    flex-direction: column;
    gap: 0.8rem;
    display: none;
  }

  body.light .nav-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
  }

  .nav-list.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: #e5e7eb;
  }

  body.light .nav-toggle-bar {
    background: #111827;
  }
}

/* --------------------------------------------------
   CONTACT SECTION FIX (DARK MODE)
-------------------------------------------------- */
body:not(.light) .legal-card.contact-card p,
body:not(.light) .legal-card.contact-card a {
  color: #ffffff !important;
}

body:not(.light) .legal-card.contact-card h2 {
  color: #ffffff !important;
}

body:not(.light) .legal-card.contact-card a {
  color: #38bdf8 !important;
}
