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

:root {
  --white: #ffffff;
  --navy: #0b1120;
  --navy-light: #111827;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #2563eb;
  --blue-hover: var(--blue-light);
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-ink: #f3f4f6;
  --text: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; }

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-family: 'Inter', -apple-system, sans-serif;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
}

.nav-logo-text {
  font-weight: 600;
  color: var(--white);
}

.nav-logo-text span {
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}

/* hero logo (larger mark above headline) */
.hero-logo {
  width: 72px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===================== HERO ===================== */
.hero {
  background: var(--navy);
  padding: 180px 32px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}

.accent-text {
  color: var(--blue-light);
}

.tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
  letter-spacing: -0.01em;
}

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

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

.btn-outline {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}

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

.btn-white:hover {
  background: #f1f5f9;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 96px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Section divider line */
.section-divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: 0 auto 16px;
  border-radius: 1px;
}

/* ===================== SERVICES GRID ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 0 0 2px 2px;
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--blue-dark);
}

/* ===================== WHY GRID ===================== */
.section-alt {
  background: var(--bg-subtle);
  max-width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.section-alt > .section-header,
.section-alt > .why-grid {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.why-card {
  padding: 36px 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.why-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-strong);
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

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

/* Accent line for why cards */
.why-card::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue);
  margin-bottom: 18px;
  border-radius: 1px;
}

/* ===================== CTA STRIP ===================== */
.cta-strip {
  background: var(--blue);
  padding: 72px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-strip-inner {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.cta-strip h2 {
  font-size: 1.55rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 1.02rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===================== CONTACT SECTION (home) ===================== */
.contact {
  background: var(--navy);
  color: var(--white);
}

.contact .section-header h2 {
  color: var(--white);
}

.contact .section-header p {
  color: rgba(255,255,255,0.55);
}

.contact-methods {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 36px;
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  flex: 1;
  min-width: 240px;
  transition: border-color 0.25s, background 0.25s;
}

.contact-card:hover {
  border-color: rgba(59,130,246,0.4);
  background: rgba(17, 24, 39, 0.8);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.contact-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.contact-card .card-accent {
  width: 32px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  margin-bottom: 16px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #060a14;
  padding: 36px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer p {
  color: rgba(255,255,255,0.35);
  font-size: 0.825rem;
  margin: 0;
}

.footer a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

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

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .hero {
    padding: 150px 20px 90px;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 64px 20px;
  }

  .cta-strip {
    padding: 56px 20px;
  }

  .contact-methods {
    flex-direction: column;
  }

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