/* ===== CSS Variables ===== */
:root {
  --deep-navy: #0B1A30;
  --midnight: #13223F;
  --slate: #1E3252;
  --cyan: #00C8A0;
  --cyan-dark: #00A886;
  --coral: #FF5533;
  --coral-dark: #E84525;
  --gold: #E8A817;
  --white: #FFFFFF;
  --off-white: #F4F6FA;
  --light-gray: #E9EDF3;
  --mid-gray: #6B7D95;
  --text-dark: #1A2332;
  --text-body: #2D3748;
  --shadow-sm: 0 2px 8px rgba(11, 26, 48, 0.07);
  --shadow-md: 0 8px 30px rgba(11, 26, 48, 0.10);
  --shadow-lg: 0 16px 48px rgba(11, 26, 48, 0.14);
  --shadow-xl: 0 24px 64px rgba(11, 26, 48, 0.18);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --transition: 220ms ease;
  --max-width: 1280px;
  --header-height: 72px;
}

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

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

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--cyan-dark);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 600px;
  margin-bottom: 40px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep-navy);
}

.header-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.header-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--cyan);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.header-cta:hover {
  background: var(--cyan-dark);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  padding: 120px 0 90px;
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--midnight) 50%, var(--slate) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: var(--cyan);
  opacity: 0.06;
  transform: rotate(25deg);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: var(--coral);
  opacity: 0.05;
  transform: rotate(-15deg);
}

.hero .container {
  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;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-content h1 .highlight {
  color: var(--cyan);
}

.hero-content p {
  font-size: 1.15rem;
  color: #DEE3EE;
  margin-bottom: 32px;
  max-width: 500px;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--deep-navy);
}

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

.hero-geometric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 320px;
  height: 320px;
}

.hero-geometric .geo-block {
  border-radius: var(--radius-sm);
}

.geo-1 { background: var(--cyan); grid-column: 1 / 3; height: 80px; }
.geo-2 { background: var(--coral); }
.geo-3 { background: var(--gold); }
.geo-4 { background: var(--white); opacity: 0.15; grid-column: 1 / 3; height: 60px; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
}

.hero-stat span {
  font-size: 0.85rem;
  color: #C5CDDE;
}

/* ===== Services ===== */
.services {
  padding: 90px 0;
  background: var(--off-white);
}

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

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

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

.service-card:nth-child(1) { border-left-color: var(--cyan); }
.service-card:nth-child(2) { border-left-color: var(--coral); }
.service-card:nth-child(3) { border-left-color: var(--gold); }
.service-card:nth-child(4) { border-left-color: var(--slate); }
.service-card:nth-child(5) { border-left-color: var(--cyan); }
.service-card:nth-child(6) { border-left-color: var(--coral); }

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

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

.service-card p {
  font-size: 0.94rem;
  color: var(--mid-gray);
  margin-bottom: 16px;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover { color: var(--coral); }

/* ===== Process ===== */
.process {
  padding: 90px 0;
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--light-gray);
  z-index: 0;
}

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

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--deep-navy);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: all var(--transition);
}

.process-step:nth-child(1) .step-number { background: var(--cyan); }
.process-step:nth-child(2) .step-number { background: var(--slate); }
.process-step:nth-child(3) .step-number { background: var(--coral); }
.process-step:nth-child(4) .step-number { background: var(--gold); }

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  max-width: 200px;
  margin: 0 auto;
}

/* ===== About ===== */
.about {
  padding: 90px 0;
  background: var(--deep-navy);
  color: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-label {
  color: var(--cyan);
}

.about-text h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #D7DEEA;
  margin-bottom: 14px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat-card {
  background: var(--slate);
  padding: 28px 24px;
  text-align: center;
}

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

.about-stat-card .stat-label {
  font-size: 0.88rem;
  color: #C5CDDE;
}

/* ===== Industries ===== */
.industries {
  padding: 90px 0;
  background: var(--off-white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.industry-card .ind-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}

.industry-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--mid-gray);
}

/* ===== Tech Stack ===== */
.tech-stack {
  padding: 90px 0;
  background: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.tech-item {
  background: var(--off-white);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.tech-item:hover {
  border-bottom-color: var(--cyan);
  transform: translateY(-2px);
}

.tech-item .tech-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: #EFF1F6;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--cyan-dark);
  border-color: var(--white);
}

.cta-banner .btn:hover {
  background: var(--deep-navy);
  color: var(--white);
  border-color: var(--deep-navy);
}

/* ===== Contact ===== */
.contact-section {
  padding: 90px 0;
  background: var(--off-white);
}

.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--mid-gray);
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-detail .cd-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.contact-detail span {
  font-size: 0.9rem;
  color: var(--mid-gray);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: 22px;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--cyan);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover {
  background: var(--cyan-dark);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--deep-navy);
  color: #C5CDDE;
  padding: 60px 0 30px;
}

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

.footer-brand h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

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

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: #B9C3D8;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--slate);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

/* ===== Legal Pages (Privacy & Terms) ===== */
.legal-page {
  padding: 120px 0 90px;
}

.legal-header {
  background: var(--deep-navy);
  padding: 120px 0 60px;
  text-align: center;
}

.legal-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.legal-header p {
  color: #C5CDDE;
  font-size: 1rem;
}

.legal-body {
  padding: 60px 0 80px;
  background: var(--white);
}

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

.legal-body h2 {
  font-size: 1.5rem;
  color: var(--deep-navy);
  margin: 36px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

.legal-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 22px 0 8px;
}

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

.legal-body ul,
.legal-body ol {
  margin: 10px 0 18px 28px;
}

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

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

.legal-body .legal-nav {
  background: var(--off-white);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.legal-body .legal-nav h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.legal-body .legal-nav ul {
  columns: 2;
  list-style: none;
  margin: 0;
}

.legal-body .legal-nav ul li {
  margin-bottom: 4px;
}

.legal-body .legal-nav ul li a {
  font-size: 0.88rem;
  color: var(--cyan-dark);
}

.legal-body .legal-nav ul li a:hover {
  color: var(--coral);
}

.legal-body .last-updated {
  font-size: 0.88rem;
  color: var(--mid-gray);
  font-style: italic;
  margin-bottom: 30px;
  padding: 12px 18px;
  background: var(--off-white);
}

/* Legal accent boxes */
.legal-accent {
  background: var(--off-white);
  border-left: 4px solid var(--cyan);
  padding: 18px 22px;
  margin: 18px 0;
}

.legal-accent p {
  margin-bottom: 0;
  font-weight: 500;
}

.legal-accent.coral {
  border-left-color: var(--coral);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .process-grid::before { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about .container { grid-template-columns: 1fr; }
  .contact-section .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-body .legal-nav ul { columns: 1; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section-title { font-size: 1.6rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 28px;
    box-shadow: var(--shadow-md);
    gap: 12px;
  }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
