/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --bg-dark: #0a1628;
  --bg-darker: #050b14;
  --bg-light: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --text-dark-muted: #475569;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  
  --accent: #10b981;
  --accent-hover: #059669;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(0, 0, 0, 0.1);

  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY & UTILS
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.highlight {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--border-light);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-hero-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-hero-ghost:hover {
  color: #fff;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.navbar__logo-icon img {
  height: 32px;
  width: auto;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.navbar__nav a:hover {
  color: #fff;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar__login {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
}
.navbar__login:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.navbar__cta {
  padding: 8px 20px;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}
.navbar__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar__toggle span:nth-child(1) { top: 0; }
.navbar__toggle span:nth-child(2) { top: 9px; }
.navbar__toggle span:nth-child(3) { bottom: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(10,22,40,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: #fff;
}
.hero__title p {
  font-size: 3.5rem;
  color: var(--text-muted);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero__trust-item i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Dashboard Card (Hero Visual) */
.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.dashboard-card__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}
.dashboard-card__body {
  padding: 24px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.kpi-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kpi-card__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.kpi-card__change {
  font-size: 0.75rem;
  font-weight: 600;
}
.kpi-card__change.up { color: var(--accent); }
.kpi-card__change.down { color: #ef4444; }

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.chart-box__title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.chart-box__badge {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-chart { width: 100%; height: auto; }
.donut-wrap { display: flex; align-items: center; gap: 12px; }
.donut-svg { width: 60px; height: 60px; flex-shrink: 0; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.donut-legend-item {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ==========================================================================
   TRUSTED
   ========================================================================== */
.trusted {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}
.trusted__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.trusted__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  opacity: 0.6;
}
.trusted__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  filter: grayscale(100%);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: 100px 0;
  background: var(--bg-dark);
}
.services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}
.services__header-left h2 {
  font-size: 2.5rem;
  color: #fff;
}
.services__header-right {
  max-width: 400px;
  color: var(--text-muted);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.service-card__arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   ABOUT (Inline styles handle layout in HTML, just basics here)
   ========================================================================== */
.about {
  color: var(--text-dark-muted);
}
.about h2 {
  color: var(--text-dark);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why {
  padding: 100px 0;
  background: var(--bg-dark);
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why__content h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 24px;
}
.why__content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.why__checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why__check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
}
.why__check-item i {
  color: var(--accent);
}
.why__image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.why__testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  grid-column: span 2;
  margin-top: 40px;
}
.why__quote-icon {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
  font-family: serif;
  margin-bottom: 16px;
}
.why__testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 24px;
}
.why__testimonial cite {
  display: flex;
  flex-direction: column;
  font-style: normal;
}
.why__cite-name {
  font-weight: 700;
  color: #fff;
}
.why__cite-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  padding: 60px 0;
  background: var(--primary);
  color: #fff;
}
.stats__grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}
.stat-item {
  text-align: center;
}
.stat-item__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0.8;
}
.stat-item__number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  padding: 100px 0;
  background: var(--bg-alt);
  color: var(--text-dark);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact__badge {
  display: inline-block;
  background: rgba(59,130,246,0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact__content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.contact__content p {
  color: var(--text-dark-muted);
  font-size: 1.1rem;
}

.contact__form-wrap {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-field {
  margin-bottom: 24px;
}
.form-row .form-field {
  margin-bottom: 0;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.form-field textarea {
  height: 120px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-submit {
  margin-top: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 40px 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: #fff;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid,
  .why__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .services__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .why__testimonial {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .navbar__nav,
  .navbar__actions {
    display: none;
  }
  .navbar__toggle {
    display: block;
  }
  .hero {
    padding-top: calc(var(--nav-height) + 20px);
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__title p {
    font-size: 2.5rem;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__trust {
    flex-direction: column;
    gap: 12px;
  }
  .kpi-grid,
  .charts-row,
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
