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

:root {
  --navy-deep: #0a1628;
  --navy-mid: #0d1f35;
  --navy-card: #132238;
  --navy-light: #1a2f4a;
  --gold: #c8963e;
  --gold-light: #d4a853;
  --gold-pale: #e8c97a;
  --white: #f5f5f5;
  --off-white: #e0e0e0;
  --text-dark: #e0e0e0;
  --text-muted: #9aa4b2;
  --text-heading: #ffffff;
  --border-subtle: #1e3550;
  --accent-teal: #2dd4bf;
  --accent-blue: #4ea8de;
  --overlay-dark: #0a1628;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--navy-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.legal-page {
  background-color: #080e1a;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

a:hover {
  color: var(--gold-pale);
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1.1rem;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-heading);
  letter-spacing: 0.03em;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold-light);
}

.nav-cta::after {
  display: none !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero Section (Homepage) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg-geometry {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-geometry .hex-grid {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  opacity: 0.06;
  background-image: 
    repeating-linear-gradient(60deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(-60deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 18px);
}

.hero-bg-geometry .circuit-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  opacity: 0.04;
  background: 
    linear-gradient(90deg, var(--accent-teal) 1px, transparent 1px),
    linear-gradient(0deg, var(--accent-blue) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to top, var(--navy-deep) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, var(--navy-deep) 0%, transparent 100%);
}

.hero-bg-geometry .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
}

.hero-bg-geometry .glow-orb:nth-child(3) {
  top: 20%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: var(--gold);
}

.hero-bg-geometry .glow-orb:nth-child(4) {
  bottom: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: var(--accent-teal);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-heading);
}

.hero h1 .accent {
  color: var(--gold-light);
  display: block;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px #0a1628;
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

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

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.hero-visual {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 420px;
}

.hero-card {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  width: calc(50% - 0.5rem);
}

.hero-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.hero-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-heading);
}

.hero-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Section Common ===== */
.section {
  padding: 6rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

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

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--navy-light);
  color: var(--gold-light);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== About / Process Section ===== */
.process-section {
  background: var(--navy-mid);
}

.process-flow {
  display: flex;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

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

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Technology Stack ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.tech-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tech-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.tech-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Solutions / Industries ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.industry-card:hover {
  border-color: var(--gold);
}

.industry-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.industry-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--navy-mid);
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--navy-card), var(--navy-light));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.site-footer {
  background: #070e1a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

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

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item strong {
  color: var(--text-heading);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links a:hover {
  color: var(--gold-light);
}

/* ===== Legal Page Styles (Privacy & Terms) ===== */
.legal-hero {
  background: var(--navy-mid);
  padding: 8rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.legal-hero .legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  counter-reset: legal-section;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  counter-increment: legal-section;
}

.legal-section h2::before {
  content: counter(legal-section) ". ";
  color: var(--text-muted);
}

.legal-section h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin: 1.25rem 0 0.75rem;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.legal-section ul li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.legal-toc {
  background: var(--navy-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.legal-toc h2 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.legal-toc {
  counter-reset: legal-section;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc-item;
}

.legal-toc ol li {
  counter-increment: toc-item;
  margin-bottom: 0.6rem;
}

.legal-toc ol li a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.legal-toc ol li a::before {
  content: counter(toc-item) ". ";
  color: var(--gold);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-flow {
    flex-direction: column;
    gap: 1rem;
  }
  
  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .services-grid,
  .tech-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .section {
    padding: 3rem 1.25rem;
  }
  
  .hero {
    padding: 5rem 1.25rem 3rem;
  }
  
  .cta-box {
    padding: 2.5rem 1.5rem;
  }
  
  .legal-hero {
    padding: 6rem 1.25rem 3rem;
  }
  
  .legal-content {
    padding: 2rem 1.25rem 4rem;
  }
}
