/* ------------------
   GOOGLE FONTS
--------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ------------------
   RESET / BASE
--------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* NAVY BLUE PALETTE – slightly darker */
  --primary: #1E3A8A;        /* Deep Navy */
  --primary-dark: #111827;   /* Darker for headings / accents */
  --accent: #3B82F6;         /* Bright blue accent */
  --bg: #E0E7FF;             /* Darker page background */
  --bg-soft: #CBD5F5;        /* Darker alt section background */
  --card-bg: #FFFFFF;        /* Cards / panels */
  --text-main: #0F172A;      /* Dark slate */
  --text-muted: #4B5563;     /* Slightly darker muted text */
  --border-subtle: rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 20px 44px rgba(15, 23, 42, 0.18);
  --transition-fast: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #c7d2fe 0, #e0e7ff 45%, #e5e7eb 100%);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ------------------
   NAVBAR
--------------------*/
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(203, 213, 225, 0.95);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: conic-gradient(from 210deg, var(--primary), var(--accent), #60a5fa, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.45);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.nav-logo-text span:last-child {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ------------------
   MOBILE MENU
--------------------*/
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 4%;
    right: 4%;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    padding: 14px 16px;
    flex-direction: column;
    gap: 10px;
    display: none;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 6px 2px;
  }
}

/* ------------------
   HERO – NAVY BLUE THEME (DARKER)
--------------------*/
.hero {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #c7d2fe 0%,
    #dde3ff 40%,
    #e5edff 100%
  );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 60%);
  top: -100px;
  left: -120px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.35), transparent 60%);
  bottom: -120px;
  right: -80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #3b82f6;
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(34px, 4.5vw, 44px);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-title span {
  background: linear-gradient(120deg, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 15px;
}

.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
}

.hero-actions {
  margin: 18px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.02);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 18px 35px rgba(30, 64, 175, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

/* Make hero primary CTA text darker for better contrast */
.hero-actions .btn {
  color: #0b1120;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 45px rgba(30, 64, 175, 0.5);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 28px rgba(148, 163, 184, 0.25);
}

.btn-outline:hover {
  box-shadow: 0 16px 34px rgba(148, 163, 184, 0.35);
}

/* Stats */
.hero-stats {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stat strong {
  font-size: 18px;
  display: block;
  color: var(--primary-dark);
}

/* ------------------
   HERO WIDGET – ANALYTICS PANEL
--------------------*/
.hero-visual {
  display: flex;
  justify-content: center;
}

/* Static analytics widget container */
.hero-orbit {
  width: 260px;
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(145deg, #e0e7ff, #d4dffe);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Main analytics card */
.hero-card-3d {
  width: 100%;
  background: #ffffff;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Header row & footer */
.card-header-row,
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 10px;
}

.card-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 500;
}

/* Inner metrics area */
.card-main {
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, #e0ebff, #f9fafb);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.card-metric-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

.metric-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.card-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

/* Graph strip */
.card-graph {
  margin-top: 6px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(129, 140, 248, 0.25));
}

/* ------------------
   SECTIONS
--------------------*/
.section {
  padding: 70px 0;
  background: transparent;
}

.section:nth-of-type(2n) {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 14px;
}

/* Cards / grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
  border-color: rgba(59, 130, 246, 0.8);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ------------------
   FORM CARD
--------------------*/
.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-field,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #f8fafc;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

.input-field:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  background: #ffffff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ------------------
   FOOTER
--------------------*/
footer {
  border-top: 1px solid rgba(203, 213, 225, 0.95);
  background: #f8fafc;
  padding: 18px 0;
  margin-top: 30px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

/* ------------------
   SCROLL REVEAL
--------------------*/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------
   RESPONSIVE
--------------------*/
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 18px;
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 54px 0 70px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .form-card {
    padding: 20px 16px;
  }
}

/* ================================
   DARK MODE VARIANT – NAVY THEME
   Toggle by adding class "dark-mode" to <body>
==================================*/

/* Override design tokens with darker palette */
body.dark-mode {
  --primary: #3B82F6;        /* Brighter blue accents */
  --primary-dark: #BFDBFE;   /* Light text/accents on dark bg */
  --accent: #60A5FA;
  --bg: #020617;             /* Very dark navy */
  --bg-soft: #0B1220;        /* Section alt background */
  --card-bg: #020617;        /* Card background */
  --text-main: #E5E7EB;      /* Light text */
  --text-muted: #9CA3AF;     /* Muted light text */
  --border-subtle: rgba(148, 163, 184, 0.35);
}

/* Overall page background */
body.dark-mode {
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #020617 100%);
  color: var(--text-main);
}

/* Navbar */
body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(30, 64, 175, 0.7);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

body.dark-mode .nav-logo-mark {
  background: conic-gradient(from 210deg, #3b82f6, #22c55e, #38bdf8, #3b82f6);
  color: #020617;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
}

body.dark-mode .nav-logo-text span:last-child {
  color: var(--text-muted);
}

body.dark-mode .nav-links a {
  color: var(--text-muted);
}

body.dark-mode .nav-links a:hover {
  color: #e5e7eb;
}

/* Mobile nav panel */
body.dark-mode .nav-links {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

body.dark-mode .nav-toggle {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .nav-toggle span {
  background: #e5e7eb;
}

/* Hero */
body.dark-mode .hero {
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #020617 100%);
}

body.dark-mode .hero::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 60%);
}

body.dark-mode .hero::after {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.45), transparent 60%);
}

body.dark-mode .hero-chip {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

/* Hero analytics widget */
body.dark-mode .hero-orbit {
  background: radial-gradient(circle at top left, #111827 0, #020617 65%);
  border-color: rgba(55, 65, 81, 0.9);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
}

body.dark-mode .hero-card-3d {
  background: #020617;
  border-color: rgba(75, 85, 99, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

body.dark-mode .card-main {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), #020617);
  border-color: rgba(75, 85, 99, 0.9);
}

body.dark-mode .card-graph {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(129, 140, 248, 0.35));
}

/* Sections */
body.dark-mode .section:nth-of-type(2n) {
  background: #020617;
}

/* Cards */
body.dark-mode .card {
  background: #020617;
  border-color: rgba(75, 85, 99, 0.85);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
}

body.dark-mode .card:hover {
  border-color: rgba(59, 130, 246, 0.9);
}

/* Forms */
body.dark-mode .form-card {
  background: #020617;
  border-color: rgba(55, 65, 81, 0.9);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.95);
}

body.dark-mode .input-field,
body.dark-mode textarea {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(75, 85, 99, 0.9);
  color: #e5e7eb;
}

body.dark-mode .input-field::placeholder,
body.dark-mode textarea::placeholder {
  color: #6b7280;
}

/* Footer */
body.dark-mode footer {
  background: #020617;
  border-top-color: rgba(55, 65, 81, 0.9);
  color: var(--text-muted);
}

body.dark-mode .footer-links a {
  color: var(--text-muted);
}

body.dark-mode .footer-links a:hover {
  color: #e5e7eb;
}

/* ================================
   TYPOGRAPHY & CONTENT PAGES
   (About, Blog, Terms, Privacy, etc.)
==================================*/

/* Global heading styles */
.section h1,
.container > h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section h2,
.container > h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.section p,
.container > p {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Lists in content pages */
.section ul {
  margin: 8px 0 16px 20px;
  padding-left: 4px;
}

.section ul li {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Inline links (body content) */
.section a,
.container a {
  color: var(--primary);
  text-decoration: none;
}

.section a:hover,
.container a:hover {
  text-decoration: underline;
}
