/* ==========================================================================
   EJLI Innovations — stylesheet
   Design tokens mirror the original Base44 build (shadcn/ui HSL palette,
   Inter + Space Grotesk, 0.75rem radius) so the rebuilt site matches
   the live app pixel-for-pixel in look & feel.
   ========================================================================== */

:root {
  --background: 220 20% 4%;
  --foreground: 210 40% 98%;
  --card: 220 20% 7%;
  --card-foreground: 210 40% 98%;
  --primary: 199 89% 48%;
  --primary-foreground: 220 20% 4%;
  --secondary: 220 20% 12%;
  --accent: 260 60% 55%;
  --muted-foreground: 215 20% 55%;
  --border: 215 20% 15%;
  --destructive: 0 72% 60%;
  --radius: 0.75rem;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;

  --container-w: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, li { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: calc(var(--radius) - 0.15rem);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 0 0 hsla(var(--primary), 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px hsl(var(--primary) / 0.55); }
.btn-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(0 0% 100% / 0.02);
}
.btn-outline:hover { border-color: hsl(var(--primary) / 0.6); background: hsl(var(--primary) / 0.08); transform: translateY(-2px); }
.btn-ghost { color: hsl(var(--foreground)); }
.btn-ghost:hover { color: hsl(var(--primary)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: hsl(var(--background) / 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: hsl(var(--background) / 0.9);
  border-bottom-color: hsl(var(--border));
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-name span { color: hsl(var(--muted-foreground)); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.85);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: hsl(var(--primary)); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: hsl(var(--foreground));
  transition: transform 0.25s ease, opacity 0.25s ease;
  margin: 0 auto;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: hsl(var(--background) / 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border));
  flex-direction: column;
  padding: 1.25rem 24px 1.75rem;
  gap: 1.1rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 99;
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a { font-size: 1rem; font-weight: 500; padding: 0.35rem 0; }
.mobile-nav .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, hsl(var(--background) / 0.4) 0%, hsl(var(--background) / 0.75) 55%, hsl(var(--background)) 100%),
    radial-gradient(60% 50% at 50% 0%, hsl(var(--background) / 0.2), hsl(var(--background)) 80%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: hsl(var(--primary)); top: -120px; left: -100px; }
.hero-glow-2 { width: 420px; height: 420px; background: hsl(var(--accent)); bottom: -140px; right: -80px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(var(--foreground) / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 15%, black 30%, transparent 85%);
}

.hero-inner { position: relative; z-index: 1; padding: 4rem 0 6rem; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
}
.hero-lead {
  max-width: 560px;
  font-size: 1.15rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  z-index: 1;
  animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue svg { width: 18px; height: 18px; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections (shared) ---------- */
.section { position: relative; padding: 7rem 0; }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.section-head .eyebrow { display: block; }

.grid { display: grid; gap: 1.5rem; }

/* ---------- Cards ---------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 20px 40px -20px hsl(0 0% 0% / 0.5);
}

.icon-tile {
  width: 52px; height: 52px;
  border-radius: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.18), hsl(var(--accent) / 0.18));
  color: hsl(var(--primary));
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile-sm { width: 44px; height: 44px; margin-bottom: 0; }
.icon-tile-sm svg { width: 22px; height: 22px; }

/* ---------- Services ---------- */
.services-section { position: relative; }
.section-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 15% 15%, hsl(var(--primary) / 0.08), transparent 70%),
    radial-gradient(40% 55% at 90% 30%, hsl(var(--accent) / 0.08), transparent 70%);
  pointer-events: none;
}
.services-grid { grid-template-columns: repeat(3, 1fr); position: relative; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

/* ---------- Industries ---------- */
.industries-grid { grid-template-columns: repeat(5, 1fr); }
.industry-card { padding: 1.6rem 1.4rem; }
.industry-card .icon-tile-sm { margin-bottom: 1rem; }
.industry-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.industry-card p { color: hsl(var(--muted-foreground)); font-size: 0.85rem; }

/* ---------- Why choose us ---------- */
.why-section { padding-top: 2rem; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5.5rem;
}
.why-visual { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); aspect-ratio: 4/3;}
.why-visual img { width: 100%; height: 100%; object-fit: cover; }
.why-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, hsl(var(--primary) / 0.28), transparent 60%);
}
.why-visual-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: hsl(var(--primary)); filter: blur(100px); opacity: 0.35;
  bottom: -80px; right: -60px; pointer-events: none;
}

.why-copy h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 1.1rem; }
.why-lead { color: hsl(var(--muted-foreground)); font-size: 1.05rem; margin-bottom: 2.2rem; max-width: 480px; }

.feature-list { display: flex; flex-direction: column; gap: 1.4rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-list h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature-list p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 3rem 0;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: 0.4rem; color: hsl(var(--muted-foreground)); font-size: 0.85rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card { display: flex; flex-direction: column; }
.quote-mark { width: 32px; height: 32px; color: hsl(var(--primary) / 0.5); margin-bottom: 1rem; }
.testimonial-card p { font-size: 1rem; color: hsl(var(--foreground) / 0.9); margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-card footer { display: flex; flex-direction: column; border-top: 1px solid hsl(var(--border)); padding-top: 1rem; }
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { color: hsl(var(--muted-foreground)); font-size: 0.85rem; margin-top: 0.15rem; }

/* ---------- CTA ---------- */
.cta-section { text-align: center; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 100%, hsl(var(--primary) / 0.14), transparent 70%);
}
.cta-inner { position: relative; }
.cta-inner h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-inner p { color: hsl(var(--muted-foreground)); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2.2rem; }
.cta-inner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid hsl(var(--border)); padding-top: 4.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-brand p { color: hsl(var(--muted-foreground)); margin: 1.1rem 0 1.5rem; max-width: 360px; font-size: 0.92rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.7rem; color: hsl(var(--muted-foreground)); font-size: 0.9rem; }
.footer-contact svg { width: 18px; height: 18px; color: hsl(var(--primary)); flex-shrink: 0; }
.footer-contact a:hover { color: hsl(var(--primary)); }

.footer-col h5 { font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 1.1rem; }
.footer-col a { display: block; color: hsl(var(--muted-foreground)); font-size: 0.92rem; padding: 0.35rem 0; transition: color 0.2s ease; }
.footer-col a:hover { color: hsl(var(--primary)); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid hsl(var(--border));
  padding: 1.75rem 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: hsl(var(--primary)); }

/* ---------- Get Started modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  background: hsl(220 30% 2% / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--background)));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 30px 80px -20px hsl(0 0% 0% / 0.65);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.open .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--muted-foreground));
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.modal-close:hover { color: hsl(var(--foreground)); background: hsl(0 0% 100% / 0.06); }
.modal-close svg { width: 20px; height: 20px; }

.modal-dialog h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin: 0.35rem 0 0.6rem;
}
.modal-subtitle { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }

.journey-form { display: flex; flex-direction: column; gap: 1.4rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.9rem; font-weight: 500; color: hsl(var(--foreground) / 0.85); }
.form-field .req { color: hsl(var(--primary)); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: hsl(var(--background) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.15rem);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: hsl(var(--muted-foreground) / 0.8); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-submit { justify-content: center; width: 100%; gap: 0.6rem; }
.form-submit svg { width: 18px; height: 18px; }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.form-status { margin: -0.4rem 0 0; font-size: 0.88rem; min-height: 1.2em; }
.form-status.success { color: hsl(155 60% 55%); }
.form-status.error { color: hsl(var(--destructive)); }

@media (max-width: 640px) {
  .modal-dialog { padding: 2.25rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: calc(var(--delay, 0) * 90ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-visual { order: -1; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 4.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-cue { animation: none; }
}
