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

:root {
  --navy-950: #060E1A;
  --navy-900: #0B192C;
  --navy-800: #132A45;
  --navy-700: #1B3A5C;
  --navy-600: #234B73;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --white: #FFFFFF;
  --cyan-400: #22D3EE;
  --cyan-500: #06B6D4;
  --cyan-600: #0891B2;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --amber-400: #FBBF24;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

a {
  color: var(--cyan-500);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--cyan-400); }

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--slate-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--navy-900);
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--slate-300);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(6,182,212,0.3); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--slate-500);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(145deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
}

.hero-card .stat-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-card .stat {
  flex: 1;
  text-align: center;
}

.hero-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-400);
  display: block;
}

.hero-card .stat-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-card .status-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-card .status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-200);
  font-size: 0.9rem;
}

.hero-card .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-card .status-dot.green { background: var(--emerald-400); }
.hero-card .status-dot.cyan { background: var(--cyan-400); }
.hero-card .status-dot.amber { background: var(--amber-400); }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-label {
  display: inline-block;
  background: rgba(6,182,212,0.1);
  color: var(--cyan-600);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-header h2 {
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--slate-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(11,25,44,0.1);
  border-color: var(--cyan-500);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
  color: var(--white);
}

.service-card h3 {
  color: var(--navy-900);
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--slate-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== SOLUTIONS (DARK SECTION) ===== */
.solutions {
  background: var(--navy-900);
}

.solutions .section-header h2 {
  color: var(--white);
}

.solutions .section-header p {
  color: var(--slate-400);
}

.solutions .section-label {
  background: rgba(34,211,238,0.15);
  color: var(--cyan-400);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.solution-card:hover {
  border-color: var(--cyan-500);
  transform: translateY(-4px);
}

.solution-card h3 {
  color: var(--white);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.solution-card h3 .sol-icon {
  font-size: 1.3rem;
}

.solution-card p {
  color: var(--slate-400);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

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

.about-text h2 {
  color: var(--navy-900);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--slate-500);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--slate-50);
  border-radius: 12px;
  border: 1px solid var(--slate-200);
}

.about-stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-600);
}

.about-stat .lbl {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

.about-visual {
  background: linear-gradient(145deg, var(--navy-700), var(--navy-800));
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.about-visual .tech-list {
  list-style: none;
}

.about-visual .tech-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-200);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}

.about-visual .tech-list li:last-child {
  border-bottom: none;
}

.about-visual .tech-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald-500);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--white);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--cyan-600), var(--blue-700));
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
}
.cta .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.65rem;
}

.footer ul li a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer ul li a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== PAGE HEADER (INNER PAGES) ===== */
.page-header {
  background: var(--navy-900);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--slate-400);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRIVACY / TOS CONTENT ===== */
.legal-content {
  background: var(--white);
  padding: 4rem 0;
}

.legal-content .container {
  max-width: 860px;
}

.legal-content .last-updated {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  color: var(--navy-900);
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.legal-content p, .legal-content li {
  color: var(--slate-700);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li, .legal-content ol li {
  margin-bottom: 0.4rem;
}

.legal-content strong {
  color: var(--navy-900);
}

/* ===== 404 PAGE ===== */
.error-page {
  background: var(--navy-900);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.error-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 2rem;
}

.error-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.error-content p {
  color: var(--slate-400);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.error-content .btn {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }

  .services-grid, .solutions-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
