/* ==========================================================================
   CrossChq Styles - Computer Systems Design & Integration
   Professional color scheme with high contrast
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --navy-900: #051024;
  --navy-800: #0b1d3a;
  --navy-700: #122b52;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-50: #f0fdfa;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --amber-500: #f59e0b;
  --red-500: #ef4444;
  --shadow-sm: 0 1px 2px rgba(5, 16, 36, 0.06);
  --shadow-md: 0 4px 6px rgba(5, 16, 36, 0.07), 0 2px 4px rgba(5, 16, 36, 0.06);
  --shadow-lg: 0 10px 25px rgba(5, 16, 36, 0.08), 0 4px 10px rgba(5, 16, 36, 0.06);
  --shadow-xl: 0 20px 50px rgba(5, 16, 36, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.25rem; }

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--slate-300);
}

.btn-ghost:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  text-decoration: none;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 16, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.header-logo:hover {
  color: var(--cyan-500);
  text-decoration: none;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--slate-300);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.header-cta {
  background: var(--cyan-600);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.header-cta:hover {
  background: var(--teal-600);
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero {
  background: var(--navy-900);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(8, 145, 178, 0.18), transparent),
    radial-gradient(ellipse 50% 80% at 90% 80%, rgba(13, 148, 136, 0.1), transparent);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(8, 145, 178, 0.18);
  color: var(--cyan-500);
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

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

.hero-subtitle {
  color: var(--slate-400);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

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

.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(8, 145, 178, 0.15), transparent 70%);
  pointer-events: none;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--navy-800);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-value-accent {
  background: linear-gradient(135deg, var(--cyan-500), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--slate-400);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* --- Section Styles --- */
.section {
  padding: 6rem 0;
}

.section-dim {
  background: var(--slate-50);
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

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

.section-dark .section-subtitle {
  color: var(--slate-400);
}

/* --- Features / Services Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--slate-500);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.process-number {
  width: 44px;
  height: 44px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--slate-500);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  text-align: center;
  padding: 5rem 0;
}

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

.cta-section p {
  color: var(--slate-300);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

.footer-brand .header-logo {
  margin-bottom: 1rem;
}

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

.footer-col a {
  display: block;
  color: var(--slate-400);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--slate-500);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--slate-300);
  text-decoration: none;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--slate-500);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--slate-800);
  background: var(--white);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--navy-900);
  padding: 4rem 0;
  text-align: center;
}

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

.page-hero .breadcrumb {
  color: var(--slate-400);
  font-size: 0.9rem;
}

.page-hero .breadcrumb a {
  color: var(--cyan-500);
}

/* --- Content Pages (Privacy, Terms) --- */
.content-page {
  padding: 5rem 0;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--slate-200);
}

.content-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: var(--slate-700);
}

.content-section p {
  color: var(--slate-600);
  line-height: 1.8;
}

.content-section ul {
  color: var(--slate-600);
  line-height: 1.8;
}

.content-toc {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.content-toc h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
}

.content-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.content-toc ol li {
  margin-bottom: 0.4rem;
}

.content-toc ol li a {
  color: var(--slate-600);
  font-size: 0.95rem;
}

.content-toc ol li a:hover {
  color: var(--blue-600);
}

.last-updated {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 2rem;
}

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(8, 145, 178, 0.12), transparent),
    radial-gradient(ellipse 40% 60% at 80% 90%, rgba(13, 148, 136, 0.08), transparent);
  text-align: center;
  padding: 2rem;
}

.error-content {
  position: relative;
}

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--slate-600) 0%, var(--navy-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

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

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

.error-content .btn-primary {
  background: var(--cyan-600);
  border-color: var(--cyan-600);
}

.error-content .btn-primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-visual {
    display: none;
  }
}

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .header-nav {
    gap: 1rem;
  }

  .header-nav a {
    font-size: 0.85rem;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .contact-form,
  .header-cta {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }
}
