/* === Data Qwik — Design System === */

:root {
  --deep-navy: #0b1628;
  --slate-dark: #162240;
  --brand-blue: #0a6ed1;
  --brand-coral: #e8553d;
  --accent-teal: #0ea5a0;
  --accent-amber: #d4940a;
  --surface-light: #f4f6fb;
  --surface-white: #ffffff;
  --surface-cream: #faf9f7;
  --text-dark: #141a2e;
  --text-body: #323a4f;
  --text-medium: #58627a;
  --text-light: #8b93a9;
  --text-on-dark: #e2e6f0;
  --text-on-brand: #ffffff;
  --border-subtle: #dce1ec;
  --border-medium: #c4cad8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-coral);
}

ul, ol {
  list-style: none;
}

/* === Typography === */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; letter-spacing: -0.015em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* === Layout === */

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

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-light);
}

.section-dark {
  background: var(--deep-navy);
  color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-brand);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-medium);
  font-size: 1.1rem;
}

.section-tag {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--text-on-brand);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* === Header / Navigation === */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--deep-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 22, 40, 0.97);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-on-brand);
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-coral), var(--accent-amber));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-on-brand);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-brand);
}

.nav-cta {
  background: var(--brand-coral) !important;
  color: var(--text-on-brand) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: #d14430 !important;
  color: var(--text-on-brand) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-on-dark);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn span + span {
  margin-top: 6px;
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--deep-navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 300ms ease, opacity 250ms ease;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* === Hero Section === */

.hero {
  padding: 148px 0 104px;
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--slate-dark) 50%, #1a2d4a 100%);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(10, 110, 209, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 160, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-on-brand);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  color: var(--brand-coral);
}

.hero-content p {
  font-size: 1.18rem;
  color: var(--text-on-dark);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--brand-coral);
  color: var(--text-on-brand);
}

.btn-primary:hover {
  background: #d14430;
  color: var(--text-on-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-on-brand);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--text-on-brand);
  color: var(--text-on-brand);
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 420px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-coral);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-on-dark);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-on-dark);
}

.hero-service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-service-dot.blue { background: var(--brand-blue); }
.hero-service-dot.coral { background: var(--brand-coral); }
.hero-service-dot.teal { background: var(--accent-teal); }
.hero-service-dot.amber { background: var(--accent-amber); }

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }
}

/* === Services Grid === */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card-icon.navy { background: var(--deep-navy); }
.service-card-icon.blue { background: var(--brand-blue); }
.service-card-icon.coral { background: var(--brand-coral); }
.service-card-icon.teal { background: var(--accent-teal); }
.service-card-icon.amber { background: var(--accent-amber); }
.service-card-icon.slate { background: var(--slate-dark); }

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === Process Section === */

.process-timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: var(--border-medium);
  z-index: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-marker {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 3px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
  transition: all var(--transition);
}

.process-step:hover .process-step-marker {
  background: var(--brand-blue);
  color: var(--text-on-brand);
  transform: scale(1.08);
}

.process-step h4 {
  margin-bottom: 6px;
}

.process-step p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
    gap: 32px;
    padding-left: 46px;
  }

  .process-timeline::before {
    top: 0;
    bottom: 0;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process-step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .process-step-marker {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin: 0;
  }
}

/* === Feature Highlights === */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: var(--text-on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.feature-text h4 {
  margin-bottom: 4px;
}

.feature-text p {
  color: var(--text-medium);
  font-size: 0.93rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* === CTA Banner === */

.cta-banner {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #1a3560 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 85, 61, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--text-on-brand);
  font-size: 2rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: var(--text-on-dark);
  font-size: 1.05rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* === Footer === */

.site-footer {
  background: var(--deep-navy);
  color: var(--text-on-dark);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 12px;
  font-size: 0.93rem;
}

.footer-col h4 {
  color: var(--text-on-brand);
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-light);
  font-size: 0.93rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-on-brand);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.93rem;
}

.footer-contact-item a {
  color: var(--text-light);
}

.footer-contact-item a:hover {
  color: var(--text-on-brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* === Legal Pages (Privacy / Terms) === */

.legal-hero {
  padding: 124px 0 52px;
  background: var(--deep-navy);
  color: var(--text-on-dark);
  text-align: center;
}

.legal-hero h1 {
  color: var(--text-on-brand);
  margin-bottom: 12px;
}

.legal-hero p {
  color: var(--text-on-dark);
  font-size: 1rem;
}

.legal-content {
  padding: 60px 0 80px;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dark);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 16px;
  color: var(--text-body);
  line-height: 1.75;
}

.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-body ul li {
  margin-bottom: 8px;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-body strong {
  color: var(--text-dark);
}

.legal-toc {
  background: var(--surface-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 44px;
}

.legal-toc h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

.legal-toc ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc ol li {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.legal-toc ol li a {
  color: var(--brand-blue);
}

.legal-toc ol li a:hover {
  color: var(--brand-coral);
}

.legal-updated {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding: 12px 16px;
  background: #fef8f2;
  border-left: 3px solid var(--accent-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === Page Banner (non-hero pages) === */

.page-banner {
  padding: 124px 0 52px;
  background: var(--deep-navy);
  color: var(--text-on-dark);
  text-align: center;
}

.page-banner h1 {
  color: var(--text-on-brand);
  margin-bottom: 8px;
}

.page-banner p {
  color: var(--text-on-dark);
}
