/* ============================================================
   Jeyalakshmi AI Labs — Premium Purple Identity
   Mobile-first · System UI · CSS-only accents
   ============================================================ */

/* ----- Custom Properties ----- */
:root {
  /* Brand palette — clean white / soft lavender base */
  --c-bg:          #f8f7fc;
  --c-bg-elevated: #ffffff;
  --c-surface:     #ffffff;
  --c-surface-hover: #f3f0fa;
  --c-border:      rgba(123, 44, 191, 0.1);
  --c-border-hover: rgba(123, 44, 191, 0.22);

  --c-primary:     #7b2cbf;
  --c-primary-light: #9d4edd;
  --c-primary-dark:  #5a189a;
  --c-accent:      #38bdf8;

  --c-text:        #3b334d;
  --c-text-muted:  #6e6484;
  --c-text-bright: #1e1730;

  /* Spacing (8px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Header height */
  --header-h: 64px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Premium ambient background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 5%, rgba(157, 78, 221, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 80%, rgba(123, 44, 191, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 60% 40%, rgba(56, 189, 248, 0.03) 0%, transparent 45%),
    linear-gradient(175deg, #f8f7fc 0%, #f3f0fa 35%, #f0edf8 65%, #f8f7fc 100%);
}

/* Ultra-subtle CSS texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.018;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(123, 44, 191, 0.08) 2px,
      rgba(123, 44, 191, 0.08) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(123, 44, 191, 0.06) 2px,
      rgba(123, 44, 191, 0.06) 3px
    );
  background-size: 50px 50px;
}

/* ----- Skip Link ----- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 1000;
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ----- Links ----- */
a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text-bright);
  transition: opacity 0.2s ease;
}
.logo:hover, .logo:focus-visible { opacity: 0.8; }
.logo-mark svg { border-radius: var(--r-sm); }

/* Desktop nav */
.header-nav {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-primary);
  background: rgba(123, 44, 191, 0.06);
}

/* Active nav highlight */
.nav-link.is-active {
  color: var(--c-primary);
  background: rgba(123, 44, 191, 0.06);
  box-shadow: inset 0 -2px 0 var(--c-primary);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
}
.hamburger:hover,
.hamburger:focus-visible {
  background: rgba(123, 44, 191, 0.06);
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text-muted);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background 0.2s ease;
}

/* Hamburger open state */
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--c-primary);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--c-primary);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  background: var(--c-bg-elevated);
  border-bottom: 1px solid var(--c-border);
  animation: slideDown 0.3s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }

.mobile-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-link:hover,
.mobile-link:focus-visible {
  color: var(--c-primary);
  background: rgba(123, 44, 191, 0.05);
}

.mobile-link.is-active {
  color: var(--c-primary);
  background: rgba(123, 44, 191, 0.05);
  border-left: 3px solid var(--c-primary);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .hamburger  { display: none; }
  .mobile-menu { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: var(--sp-16) 0 var(--sp-20);
  overflow: hidden;
}

/* BG accents */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 15%, rgba(123, 44, 191, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(90, 24, 154, 0.04) 0%, transparent 55%);
}

.node-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
}

.orb-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  left: -80px;
  background: rgba(157, 78, 221, 0.15);
  animation: float-1 20s ease-in-out infinite;
}
.orb-2 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  right: -60px;
  background: rgba(123, 44, 191, 0.10);
  animation: float-2 24s ease-in-out infinite;
}
.orb-3 {
  width: 200px;
  height: 200px;
  top: 45%;
  left: 58%;
  background: rgba(56, 189, 248, 0.08);
  animation: float-3 18s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(35px, 50px) scale(1.06); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -35px) scale(1.04); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -25px) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  html { scroll-behavior: auto; }
  .mobile-menu { animation: none; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-text-bright);
  margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, var(--c-text-bright) 40%, var(--c-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--c-text);
  line-height: 1.65;
  margin-bottom: var(--sp-3);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-micro {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-10);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  align-items: stretch;
  margin-bottom: var(--sp-10);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

/* On very narrow screens, stack buttons full-width */
@media (max-width: 419px) {
  .hero-actions {
    flex-direction: column;
    max-width: 280px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: rgba(243, 240, 250, 0.7);
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.pill:hover {
  border-color: var(--c-border-hover);
  color: var(--c-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--c-primary-light);
  outline-offset: 3px;
}
.btn-icon { flex-shrink: 0; }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(123, 44, 191, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(123, 44, 191, 0.3);
  transform: translateY(-1px);
}

/* Secondary */
.btn-secondary {
  background: rgba(123, 44, 191, 0.04);
  color: var(--c-text);
  border: 1px solid rgba(123, 44, 191, 0.18);
}
.btn-secondary:hover {
  background: rgba(123, 44, 191, 0.08);
  color: var(--c-text-bright);
  border-color: rgba(123, 44, 191, 0.3);
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  padding: var(--sp-20) 0;
}

.section-heading {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--c-text-bright);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  text-align: center;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  text-align: center;
  max-width: 480px;
  margin: 0 auto var(--sp-12);
  line-height: 1.6;
}

/* Divider line between sections (subtle) */
.what-we-do,
.capabilities,
.approach {
  border-top: 1px solid rgba(123, 44, 191, 0.06);
  position: relative;
}

/* Subtle ambient glow at top of each section */
.what-we-do::before,
.capabilities::before,
.approach::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 44, 191, 0.12), transparent);
  pointer-events: none;
}

/* ============================================================
   WHAT WE DO — Cards
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 12px rgba(123, 44, 191, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s var(--ease-out), box-shadow 0.3s ease;
}
.card:hover {
  background: var(--c-surface-hover);
  border-color: var(--c-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(123, 44, 191, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(123, 44, 191, 0.07);
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text-bright);
  margin-bottom: var(--sp-2);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}

@media (min-width: 520px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}
@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}

.cap-prose p {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}
.cap-prose p:last-child { margin-bottom: 0; }

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.cap-group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(123, 44, 191, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cap-group:hover {
  border-color: var(--c-border-hover);
  box-shadow: 0 6px 24px rgba(123, 44, 191, 0.07), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cap-group-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cap-group-icon { color: var(--c-primary); }

.cap-list {
  list-style: none;
}
.cap-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--c-text);
  padding: var(--sp-1) 0;
}

.check-icon {
  color: var(--c-primary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cap-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: start;
  }
  .cap-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

/* ============================================================
   APPROACH — Steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  max-width: 700px;
  margin: 0 auto;
}

.step {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-6) var(--sp-6) var(--sp-16);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(123, 44, 191, 0.03);
  transition: border-color 0.3s ease, transform 0.2s var(--ease-out), box-shadow 0.3s ease;
}
.step:hover {
  border-color: var(--c-border-hover);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(123, 44, 191, 0.07), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-num {
  position: absolute;
  left: var(--sp-6);
  top: var(--sp-6);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(123, 44, 191, 0.15);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text-bright);
  margin-bottom: var(--sp-1);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  border-top: 1px solid rgba(123, 44, 191, 0.06);
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 44, 191, 0.12), transparent);
  pointer-events: none;
}

.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-6);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 12px rgba(123, 44, 191, 0.05), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.contact-company {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text-bright);
  margin-bottom: var(--sp-3);
}

.contact-address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.btn-maps {
  margin: 0 auto var(--sp-5);
}

.contact-note {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  opacity: 0.7;
  margin-bottom: var(--sp-8);
}

/* Map toggle */
.map-toggle-wrap {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-6);
}

.map-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--c-text-muted);
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.map-toggle-btn:hover,
.map-toggle-btn:focus-visible {
  color: var(--c-primary);
  border-color: var(--c-border-hover);
  background: rgba(123, 44, 191, 0.04);
}

.map-preview {
  margin-top: var(--sp-5);
  border-radius: var(--r-md);
  overflow: hidden;
}
.map-preview[hidden] { display: none; }
.map-preview iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--r-md);
}

@media (min-width: 600px) {
  .contact-card { padding: var(--sp-12) var(--sp-10); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(123, 44, 191, 0.06);
  padding: var(--sp-8) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  opacity: 0.8;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  opacity: 0.55;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   GLOBAL FOCUS & SELECTION
   ============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(123, 44, 191, 0.12);
  color: var(--c-text-bright);
}

/* ============================================================
   DESKTOP FINE-TUNE
   ============================================================ */
@media (min-width: 900px) {
  .container { padding: 0 var(--sp-8); }

  .hero { padding: var(--sp-24) 0; }

  .section { padding: var(--sp-24) 0; }
}
