:root {
  /* Colors */
  --color-bg: #03243A;
  --color-text-primary: #F5FAFF;
  --color-text-muted: #B7C7D6;
  --color-glow-cyan: #2FE6C9;
  --color-glow-blue: #5AB0FF;
  --color-card-bg: rgba(20, 50, 90, 0.4);
  --color-card-border: rgba(255, 255, 255, 0.08);

  /* Shadows & Effects */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.2);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-hero: clamp(2rem, 5.5vw, 3.5rem);
  --font-size-section: clamp(1.75rem, 4vw, 2.5rem);
  --font-size-body: clamp(0.9rem, 1.8vw, 1rem);

  /* Roadmap Scaling */
  --roadmap-scale: 3;
  --roadmap-node-radius: 30px;
  --roadmap-node-inner: 18px;
  --roadmap-font-size: 14px;
  --roadmap-line-width: 3px;
  --roadmap-box-width: 100px;
  --roadmap-box-height: 50px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(3, 36, 58, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-card-border);
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  vertical-align: middle;
}

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

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: var(--color-glow-cyan);
}

/* ============================================
   BACKGROUND GLOWS
   ============================================ */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: var(--color-glow-blue);
  top: -80px;
  left: -100px;
}

.glow-2 {
  width: 550px;
  height: 550px;
  background: var(--color-glow-cyan);
  top: 35%;
  right: -200px;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: var(--color-glow-blue);
  bottom: 5%;
  left: 5%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 3.5rem var(--spacing-md) 2.5rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-glow-cyan) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.8px;
  text-shadow: 0 0 25px rgba(95, 176, 255, 0.08);
}

.hero-line {
  display: block;
}

.hero-ampersand {
  display: block;
  color: var(--color-glow-cyan);
  font-style: italic;
  font-size: 0.85em;
  margin: 0.3rem 0;
}

.hero-subtitle {
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  opacity: 0.75;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

/* ============================================
   PROJECT SECTION
   ============================================ */
.project-section {
  padding: 4rem var(--spacing-md);
  margin: 3rem 0;
  position: relative;
}

.project-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .project-container {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    gap: 3rem;
    text-align: left;
  }
}

.project-text {
  text-align: left;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-section);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.6px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(95, 176, 255, 0.05);
}

.project-description {
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 45ch;
}

/* Project Card */
.project-card {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.card-logo {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.card-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, var(--color-glow-blue) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.2;
  z-index: 0;
}

.card-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(100, 160, 220, 0.12) 0%, rgba(50, 100, 180, 0.08) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.logo-placeholder {
  width: 100%;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-placeholder svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.25));
}

.card-tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.4px;
  display: none;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-section {
  padding: 4rem var(--spacing-md);
  margin: 3rem 0;
}

.philosophy-title {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.philosophy-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.philosophy-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  border-color: rgba(95, 176, 255, 0.25);
  background: rgba(50, 100, 180, 0.12);
}

.philosophy-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.philosophy-intro {
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.philosophy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Jobs & modal tweaks: ensure left-aligned lists and responsive modal */
.job-card,
.job-card * {
  text-align: left !important;
}

.job-description ul,
.job-description ol,
.job-requirements ul,
.job-requirements ol {
  list-style-position: inside;
  padding-left: 1rem;
  margin: 0.5rem 0;
}

.job-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
}

.job-modal-overlay[aria-hidden="false"] {
  display: flex;
}

.job-modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.08);
  padding: 1.5rem;
}

@media (max-width: 600px) {
  .job-modal {
    max-height: 92vh;
    padding: 1rem;
  }
}

/* Modal apply button styling */
.modal-apply-btn {
  display: inline-block;
  margin-top: 0.5rem;
}

/* Job grid and card layout */
.job-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Careers listing surface */
.jobs-container {
  background: #f7fafc;
  color: #0b1220;
  padding: 2rem 0 3rem 0;
  border-radius: 8px;
}

/* Surface for light sections (Careers listing) */
.surface-light {
  background: #f7fafc;
  color: #0b1220;
  padding: 3rem 1rem;
}

#jobsContainer {
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.job-card {
  background: #ffffff;
  color: #0b1220;
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.job-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-title {
  font-size: 1.125rem;
  margin: 0;
  color: #0b1220;
}

.job-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(11, 18, 32, 0.03);
  border: 1px solid rgba(11, 18, 32, 0.04);
  color: #55616a;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.job-summary {
  color: #243241;
  margin: 0.75rem 0 1rem 0;
  line-height: 1.6;
}

.job-card-footer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

/* Reusable button utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:focus {
  outline: 3px solid rgba(99, 102, 241, 0.18);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #6366f1);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.apply-now-btn {
  margin-top: 0.75rem;
  display: inline-block;
}

/* Larger primary buttons used on detail views */
.btn-large {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
}

/* Job detail header and meta */
.job-detail {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(17, 26, 46, 0.12);
  border: 1px solid rgba(183, 199, 214, 0.06);
  margin-bottom: 1.25rem;
}

.job-detail h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.job-detail .job-info-meta {
  display: flex;
  gap: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Application card (form container) */
.application-card {
  background: rgba(17, 26, 46, 0.12);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Accent (was missing) */
:root {
  --color-accent: #2563eb;
}

/* Unified light surface */
.surface-light {
  background: #f8fafc;
  color: #0b1220;
  border-radius: 16px;
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 3rem auto;
}

/* Job cards */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.08);
}

/* Buttons (override earlier utilities if needed) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-large {
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Application card */
.application-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
  max-width: 720px;
  margin: 3rem auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.philosophy-list li {
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.7;
}

.philosophy-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--color-glow-cyan);
  font-weight: 600;
}

/* ============================================
   METHODS SECTION
   ============================================ */
.methods-section {
  padding: 4rem var(--spacing-md);
  margin: 3rem 0;
}

.methods-title {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.methods-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .methods-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.method-card {
  text-align: center;
}

.method-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, rgba(100, 160, 220, 0.15) 0%, rgba(50, 100, 180, 0.08) 100%);
}

.method-image.method-image-photo {
  background: none;
  object-fit: cover;
  object-position: center;
}

.method-image.design-thinking {
  background: linear-gradient(135deg, #1a5f7a 0%, #0f3d52 100%);
}

.method-image.agile {
  background: linear-gradient(135deg, #2d7fa3 0%, #1a4d6d 100%);
}

.method-image.lean {
  background: linear-gradient(135deg, #0f3d52 0%, #051f2f 100%);
}

.method-label {
  background: transparent;
  border: 1px solid var(--color-card-border);
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
}

.method-label:hover {
  border-color: var(--color-glow-blue);
  color: var(--color-glow-blue);
  box-shadow: 0 0 12px rgba(95, 176, 255, 0.2);
}

/* ============================================
   ROADMAP SECTION
   ============================================ */
.roadmap-section {
  padding: 4rem var(--spacing-md);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.roadmap-svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.2));
  min-height: 1200px;
}

.roadmap-title {
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}

.roadmap-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--color-glow-blue) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.roadmap-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.roadmap-svg {
  width: 100%;
  height: auto;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.2));
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 4rem var(--spacing-md) 3rem;
  margin: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-container {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.cta-text {
  text-align: left;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--font-size-section);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.cta-contact {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.cta-action {
  position: relative;
  flex: 0 0 auto;
}

.cta-glow {
  position: absolute;
  inset: -35px;
  background: radial-gradient(circle, var(--color-glow-cyan) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.15;
  z-index: 0;
}

.cta-button {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 1rem 1.75rem;
  background: transparent;
  border: 1px solid var(--color-card-border);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
  font-weight: 500;
}

.cta-button:hover {
  border-color: var(--color-glow-cyan);
  color: var(--color-glow-cyan);
  box-shadow: 0 0 20px rgba(47, 230, 201, 0.3), inset 0 0 15px rgba(47, 230, 201, 0.03);
}

/* ============================================
   MOBILE OPTIMIZATION (390px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --spacing-xxl: 2.25rem;
    --spacing-xl: 1.75rem;
  }

  .hero {
    min-height: 55vh;
    padding: 2.5rem 1.25rem 2rem;
  }

  .hero-title {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .project-section {
    padding: 2rem 1.25rem;
    margin: 1rem 0;
  }

  .project-container {
    gap: 1.5rem;
  }

  .project-card {
    flex: 1 1 100%;
  }

  .philosophy-grid {
    gap: 1.25rem;
  }

  .philosophy-card {
    padding: 1.5rem;
  }

  .philosophy-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .philosophy-intro {
    font-size: 0.8rem;
  }

  .philosophy-list li {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .methods-section {
    padding: 2rem 1.25rem;
    margin: 1rem 0;
  }

  .methods-grid {
    gap: 1.25rem;
  }

  .method-image {
    margin-bottom: 1rem;
  }

  .method-label {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }

  .roadmap-section {
    padding: 2rem 1.25rem;
    margin: 1rem 0;
  }

  .roadmap-svg {
    max-width: 100%;
  }

  .cta-section {
    padding: 2rem 1.25rem;
    margin: 1rem 0 0;
  }

  .cta-container {
    gap: 1.5rem;
  }

  .cta-title {
    margin-bottom: 1rem;
  }

  .cta-contact {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .glow-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -80px;
  }

  .glow-2 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: -120px;
  }

  .glow-3 {
    width: 250px;
    height: 250px;
  }

  .hero-glow {
    width: 350px;
    height: 350px;
  }

  .card-glow {
    inset: -10px;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-menu {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .logo-img {
    height: 50px;
  }

  .navbar {
    padding: 0.75rem 0;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}