/* ============================================
   Narius.io - Design System
   Primary: #1a2b4a | Accent: #e85d04 | Secondary: #4a90d9
   ============================================ */

:root {
  --color-primary: #1a2b4a;
  --color-primary-light: #2d4068;
  --color-accent: #e85d04;
  --color-accent-hover: #d95304;
  --color-secondary: #4a90d9;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
  --shadow-sm: 0 1px 2px rgba(26, 43, 74, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(26, 43, 74, 0.1), 0 2px 4px -2px rgba(26, 43, 74, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(26, 43, 74, 0.1), 0 4px 6px -4px rgba(26, 43, 74, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-link {
  color: var(--color-text);
}

.navbar.scrolled .nav-link:hover {
  color: var(--color-accent);
}

/* Navbar over hero - light text */
.navbar:not(.scrolled) .logo {
  color: white;
}

.navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .nav-link:hover {
  color: white;
}

.navbar:not(.scrolled) .nav-toggle span {
  background: white;
}

.navbar:not(.scrolled) .lang-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .lang-btn:hover {
  border-color: white;
  color: white;
}

.navbar:not(.scrolled) .lang-btn.active {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

/* Mobile menu open - navbar needs contrast over overlay */
.navbar.menu-open {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.menu-open .logo,
.navbar.menu-open .nav-link,
.navbar.menu-open .nav-toggle span {
  color: var(--color-text);
}

.navbar.menu-open .nav-toggle span {
  background: var(--color-primary);
}

.navbar.menu-open .lang-btn {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

.navbar.menu-open .lang-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-accent);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #3d5a8c 100%);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: white;
  top: -200px;
  right: -200px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  bottom: -100px;
  left: -100px;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--color-secondary);
  top: 50%;
  left: 20%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4);
}

/* ============================================
   Container & Sections
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

/* ============================================
   Features
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   Integrations
   ============================================ */

.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.integrations-grid-small {
  margin-bottom: 1.5rem;
}

.integrations-grid-small:last-of-type {
  margin-bottom: 0;
}

.integration-badge {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition);
}

.integration-badge:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.badge-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

.integrations-categories h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
  text-align: center;
}

/* ============================================
   About
   ============================================ */

.about {
  background: var(--color-bg-alt);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   Slider
   ============================================ */

.slider-section {
  background: var(--color-bg-alt);
}

.slider {
  margin-top: 2rem;
  position: relative;
}

.slider-track {
  position: relative;
  min-height: 280px;
}

.slider-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.slider-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.slider-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.slider-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.slider-slide h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.slider-slide p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 560px;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: white;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.slider-btn:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  padding: 0;
}

.slider-dot:hover {
  background: var(--color-secondary);
}

.slider-dot.active {
  background: var(--color-accent);
  width: 28px;
}

/* ============================================
   Benefits
   ============================================ */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.benefit-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.benefit-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   Processes
   ============================================ */

.processes {
  background: var(--color-bg-alt);
}

.processes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.process-group {
  background: white;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.process-group h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.process-group ul {
  list-style: none;
}

.process-group li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  padding-left: 1rem;
  position: relative;
}

.process-group li::before {
  content: "âº";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   Components
   ============================================ */

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.component-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.component-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
}

.component-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.component-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   Stats
   ============================================ */

.stats {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
}

.stats .section-title {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* ============================================
   Tech
   ============================================ */

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* ============================================
   Contact
   ============================================ */

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--color-accent);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-primary);
  padding: 2rem 0;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .components-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .processes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
  }

  .lang-switcher {
    margin-top: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .components-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .processes-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  section {
    padding: 3rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
