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

:root {
  --navy-900: #0b1121;
  --navy-800: #111c34;
  --navy-700: #172544;
  --navy-600: #1e3054;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-400: #22d3ee;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { color: var(--navy-900); font-weight: 700; 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; }

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

/* ===== Header & Navigation ===== */
.site-header {
  background: var(--navy-900);
  border-bottom: 3px solid var(--cyan-500);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { font-size: 1.35rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.logo span { color: var(--cyan-400); }

.nav-list { display: flex; list-style: none; gap: 0.25rem; }
.nav-list a {
  color: var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-list a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

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

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-400);
  padding: 3rem 2rem 2rem;
}

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

.footer-brand h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-brand h3 span { color: var(--cyan-400); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan-400); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-700);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

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

/* ===== Hero (Home) ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 650px; }
.hero h1 { color: var(--white); font-size: 3.25rem; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--cyan-400); }
.hero p { font-size: 1.2rem; color: var(--gray-300); margin-bottom: 2rem; line-height: 1.7; }

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

.btn { display: inline-block; padding: 0.85rem 2rem; border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s; }
.btn-primary { background: var(--cyan-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--cyan-400); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-amber { background: var(--amber-500); color: var(--navy-900); }
.btn-amber:hover { background: var(--amber-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== Section ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--cyan-300);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.si-cyan { background: #e0f2fe; color: var(--cyan-600); }
.si-amber { background: #fef3c7; color: var(--amber-600); }
.si-navy { background: #e0e7ff; color: #4338ca; }
.si-green { background: #d1fae5; color: #059669; }
.si-rose { background: #ffe4e6; color: #e11d48; }
.si-purple { background: #ede9fe; color: #7c3aed; }

.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.65; }

/* ===== Stats Strip ===== */
.stats-strip {
  background: var(--navy-800);
  padding: 3rem 0;
}

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

.stat-item .stat-number { font-size: 2.5rem; font-weight: 800; color: var(--cyan-400); }
.stat-item .stat-label { color: var(--gray-400); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== About/Approach (Home) ===== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approach-image {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border-radius: 16px;
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.approach-image::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.approach-image .ai-icon-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.ai-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-300);
}

.approach-image h3 { color: var(--white); font-size: 1.35rem; position: relative; z-index: 1; }

.approach-text h2 { margin-bottom: 1rem; }
.approach-text p { color: var(--gray-600); margin-bottom: 1rem; line-height: 1.75; }

.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--gray-700);
  font-weight: 500;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--cyan-500);
  border-radius: 50%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500));
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-section .btn { background: var(--navy-900); color: var(--white); }
.cta-section .btn:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== Page Header (Subpages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 3px solid var(--cyan-500);
}

.page-header h1 { color: var(--white); font-size: 2.5rem; }
.page-header p { color: var(--gray-300); font-size: 1.05rem; margin-top: 0.5rem; }

/* ===== Content Section ===== */
.content-section { padding: 4rem 0; }

.content-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

.content-sidebar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.content-sidebar h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: 0.25rem; }
.sidebar-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.sidebar-nav a:hover { background: var(--gray-200); color: var(--gray-900); }

.content-body section { margin-bottom: 2.5rem; }
.content-body section:last-child { margin-bottom: 0; }
.content-body h2 {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1rem;
}
.content-body h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
.content-body p { color: var(--gray-600); margin-bottom: 0.9rem; }
.content-body ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--gray-600); }
.content-body ul li { margin-bottom: 0.35rem; }

/* ===== Terms Page - Alternating Cards Layout ===== */
.terms-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.terms-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--cyan-500), var(--cyan-300), var(--cyan-500));
  border-radius: 3px;
}

.terms-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  margin-left: 60px;
  position: relative;
  transition: box-shadow 0.3s;
}

.terms-card:hover { box-shadow: var(--shadow-md); }

.terms-card::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 28px;
  width: 16px;
  height: 16px;
  background: var(--cyan-500);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cyan-200);
}

.terms-card .tc-number {
  position: absolute;
  left: -52px;
  top: 24px;
  width: 36px;
  height: 36px;
  background: var(--navy-800);
  color: var(--cyan-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.terms-card h2 { font-size: 1.25rem; border: none; padding: 0; margin-bottom: 0.6rem; color: var(--navy-900); }
.terms-card p { color: var(--gray-600); line-height: 1.7; }

/* ===== Contact Strip ===== */
.contact-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 3rem 0;
}

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

.contact-item { padding: 1.5rem; }

.contact-item .ci-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cyan-100);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.contact-item h4 { margin-bottom: 0.35rem; }
.contact-item p { color: var(--gray-500); font-size: 0.9rem; }

/* ===== 404 Page ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px - 200px);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.03) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(245,158,11,0.04) 0%, transparent 50%);
}

.error-content { position: relative; z-index: 1; }

.error-code {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}
.error-code span { color: var(--cyan-500); }

.error-content h2 { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.error-content p { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.error-suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.error-suggestions a {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.error-suggestions a:hover { background: var(--white); border-color: var(--cyan-400); box-shadow: var(--shadow-md); color: var(--cyan-600); }

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

.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.25s;
  font-size: 0.9rem;
}

.industry-card:hover {
  border-color: var(--cyan-400);
  background: #f0fdfa;
  color: var(--cyan-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-list { display: none; }
  .menu-toggle { display: block; }
  .nav-list.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-900); padding: 1rem; }
  .hero h1 { font-size: 2.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .terms-timeline::before { left: 16px; }
  .terms-card { margin-left: 48px; }
  .terms-card::before { left: -34px; width: 12px; height: 12px; }
  .terms-card .tc-number { left: -44px; width: 28px; height: 28px; font-size: 0.75rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; }
  .section { padding: 3rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .industries-grid { grid-template-columns: 1fr; }
  .error-suggestions { grid-template-columns: 1fr; }
  .error-code { font-size: 5rem; }
}
