/* ==========================================================================
   CraftyEdge Solutions (OPC) Private Limited
   Ultra-Responsive Design System (Mobile First: 320px -> 1440px+)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f4f4f5;
  --border: #e4e4e7;
  --border-subtle: #f4f4f5;
  --border-focus: #09090b;
  --border-hover: #a1a1aa;
  --text: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --text-inverse: #ffffff;
  --accent-btn-bg: #09090b;
  --accent-btn-text: #ffffff;
  --accent-btn-hover: #27272a;
  --badge-bg: #f4f4f5;
  --badge-border: #e4e4e7;
  --glow: rgba(9, 9, 11, 0.04);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --linkedin: #0A66C2;
}

html.dark {
  --bg: #000000;
  --bg-subtle: #09090b;
  --bg-surface: #101012;
  --bg-card: #121214;
  --bg-input: #18181b;
  --border: #27272a;
  --border-subtle: #1c1c1f;
  --border-focus: #ffffff;
  --border-hover: #52525b;
  --text: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-inverse: #000000;
  --accent-btn-bg: #ffffff;
  --accent-btn-text: #000000;
  --accent-btn-hover: #e4e4e7;
  --badge-bg: #141416;
  --badge-border: #27272a;
  --glow: rgba(255, 255, 255, 0.03);
  --card-shadow: none;
  --card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Prevent body scrolling when mobile navigation drawer is open */
body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a, button {
  transition: all 0.18s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

@media (min-width: 768px) {
  .nav-container {
    height: 72px;
  }
}

/* Brand Link */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}

.brand-emblem-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .brand-emblem-wrap {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
}

.brand-emblem {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-emblem {
    width: 30px;
    height: 30px;
  }
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-name {
    font-size: 1.12rem;
  }
}

.brand-name span {
  font-weight: 500;
  color: var(--text-muted);
}

.brand-tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-tag {
    font-size: 0.62rem;
  }
}

/* Desktop Navigation */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
}

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

/* Header Actions */
/* Header Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-actions {
    gap: 0.65rem;
  }
}

/* Hide header LinkedIn icon on mobile phones < 640px to prevent brand text clipping */
.nav-actions .linkedin-btn {
  display: none !important;
}

@media (min-width: 640px) {
  .nav-actions .linkedin-btn {
    display: flex !important;
  }
}

/* CRITICAL: Hide "Discuss Project" button completely on mobile and tablet (< 1024px)
   Must use !important and high specificity so that .btn does not override it */
.nav-actions a.nav-cta-btn,
a.nav-cta-btn,
.nav-cta-btn {
  display: none !important;
}

@media (min-width: 1024px) {
  .nav-actions a.nav-cta-btn,
  a.nav-cta-btn,
  .nav-cta-btn {
    display: inline-flex !important;
  }
}

/* Mobile Hamburger Toggle (Visible on mobile & tablet < 960px) */
.mobile-toggle-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

@media (min-width: 960px) {
  .mobile-toggle-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  box-shadow: 0 2px 8px var(--glow);
}

.btn-primary:hover {
  background: var(--accent-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-icon:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-icon.linkedin-btn:hover {
  border-color: var(--linkedin);
  color: var(--linkedin);
}

/* ==========================================================================
   Mobile Drawer & Backdrop
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  z-index: 98;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.25s ease;
}

@media (min-width: 768px) {
  .mobile-drawer {
    top: 72px;
    max-height: calc(100vh - 72px);
    padding: 1.5rem;
  }
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-drawer-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  min-height: 48px;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a:active {
  background: var(--bg-subtle);
  border-color: var(--border);
}

.mobile-drawer-footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-contact-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-contact-pill:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Hero Section (Mobile, Tablet, Laptop Balanced)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 12%, var(--glow) 0%, transparent 65%), linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 65px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 145px;
    padding-bottom: 85px;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
  max-width: 100%;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 0.78rem;
    padding: 0.45rem 1.15rem;
    margin-bottom: 1.65rem;
  }
}

.hero-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.badge-text-mobile {
  display: inline;
}

.badge-text-desktop {
  display: none;
}

@media (min-width: 540px) {
  .badge-text-mobile {
    display: none;
  }
  .badge-text-desktop {
    display: inline;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 6vw, 3.6rem);
  line-height: 1.18;
  margin-bottom: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0 0.25rem;
}

.hero h1 span.gradient-text {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
}

.hero p {
  font-size: clamp(0.92rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 1.85rem auto;
  font-weight: 400;
  line-height: 1.6;
  padding: 0 0.5rem;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
}

.hero-main-cta {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-main-cta {
    width: auto;
  }
}

.hero-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-secondary-row {
    display: contents;
  }
}

.hero-secondary-row .btn {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem;
}

@media (min-width: 640px) {
  .hero-secondary-row .btn {
    width: auto;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
  }
}

/* Trust Markers Chips Strip */
.trust-row {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .trust-row {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    gap: 0.85rem;
  }
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .trust-item {
    font-size: 0.8rem;
    padding: 0.45rem 0.95rem;
  }
}

.trust-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--text);
  flex-shrink: 0;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
section {
  padding: 50px 0;
  position: relative;
  width: 100%;
}

@media (min-width: 640px) {
  section {
    padding: 68px 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 85px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem auto;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 3.25rem;
  }
}

.section-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-sub {
    font-size: 1.02rem;
  }
}

/* ==========================================================================
   Services Section & Horizontal Filter
   ========================================================================== */
.services-section {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.services-filter-wrapper {
  position: relative;
  margin-bottom: 1.75rem;
}

.services-filter {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.45rem;
  padding: 0.25rem 0.25rem 0.75rem 0.25rem;
  justify-content: flex-start;
}

.services-filter::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .services-filter {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0.25rem;
    margin-bottom: 2.25rem;
  }
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  border-color: var(--accent-btn-bg);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.65rem;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.45rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
}

@media (min-width: 768px) {
  .service-card {
    padding: 1.85rem 1.65rem;
  }
}

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

.service-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.service-capabilities {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-capabilities li {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
}

.service-capabilities li::before {
  content: "✓";
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.service-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.95rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.select-service-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  min-height: 38px;
}

.select-service-btn:hover {
  text-decoration: underline;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   About Us & Startup India Credentials
   ========================================================================== */
.about-section {
  background: var(--bg);
}

.about-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.45rem 1.15rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .about-highlight-card {
    border-radius: 20px;
    padding: 2rem 1.75rem;
    margin-bottom: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .about-highlight-card {
    padding: 2.75rem 2.5rem;
    margin-bottom: 3.25rem;
  }
}

.startup-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 1.15rem;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .startup-badge-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }
}

html.dark .startup-badge-pill {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.about-highlight-title {
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.28;
  margin-bottom: 1.1rem;
}

.about-narrative {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .about-narrative {
    font-size: 1.02rem;
  }
}

.about-narrative p {
  margin-bottom: 0.95rem;
}

/* Credentials Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
  margin-top: 1.75rem;
}

@media (min-width: 600px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.25rem;
  }
}

.credential-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1rem;
}

@media (min-width: 640px) {
  .credential-box {
    border-radius: 14px;
    padding: 1.25rem;
  }
}

.credential-box .cred-icon {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.credential-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.credential-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .value-card {
    padding: 2rem 1.75rem;
  }
}

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

.value-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Careers & Hiring Section
   ========================================================================== */
.hiring-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 0.35rem;
  vertical-align: middle;
}

html.dark .hiring-nav-pill {
  color: #34d399;
}

.careers-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 3.25rem;
  }
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

@media (min-width: 768px) {
  .job-card {
    padding: 2rem 1.75rem;
  }
}

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

.job-header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.job-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.3;
}

.job-badge.featured {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}

html.dark .job-badge.featured {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.job-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.job-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.job-duties {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-duties li {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
}

.job-duties li::before {
  content: "•";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
}

/* Quick Job Application Box */
.job-apply-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.15rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
  .job-apply-box {
    padding: 2.25rem 1.85rem;
  }
}

@media (min-width: 1024px) {
  .job-apply-box {
    padding: 2.75rem 2.25rem;
  }
}

/* ==========================================================================
   Contact Section & Direct Engagement
   ========================================================================== */
.contact-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

.direct-box {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.15rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 0.85rem;
  box-shadow: var(--card-shadow);
  min-width: 0;
}

@media (min-width: 640px) {
  .direct-box {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
}

.direct-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.direct-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direct-box h4 {
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}

.direct-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.direct-link-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--linkedin);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.entity-notice {
  padding: 1.15rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 1rem;
}

/* Form Panel */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.15rem;
  box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
  .form-panel {
    padding: 2.25rem 1.85rem;
  }
}

@media (min-width: 1024px) {
  .form-panel {
    padding: 2.5rem;
  }
}

.form-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

@media (min-width: 768px) {
  .form-panel h3 {
    font-size: 1.5rem;
  }
}

.form-panel p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

/* Responsive Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
    margin-bottom: 0.95rem;
  }
}

.form-group {
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) {
  .form-group {
    margin-bottom: 0.95rem;
  }
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* CRITICAL: Set font-size to 16px on inputs, selects, and textareas to PREVENT iOS Safari auto-zoom! */
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* Prevents mobile Safari zoom glitch */
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.alert-box {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  line-height: 1.5;
}

html.dark .alert-box {
  background: #064e3b;
  border-color: #047857;
  color: #d1fae5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 0 28px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  footer {
    padding: 55px 0 35px 0;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    padding-bottom: 2.25rem;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-links {
    gap: 1.75rem;
  }
}

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

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