/* Emertech — modern site (brand: #5CB800, #3399ff, #212331) */
:root {
  --green: #5cb800;
  --green-dim: #4a9400;
  --blue: #3399ff;
  --blue-dim: #1a7ae6;
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #212331;
  --surface: #1c2333;
  --border: rgba(255, 255, 255, 0.08);
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--green);
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--green);
}

.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(92, 184, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(92, 184, 0, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(16px);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  z-index: 99;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li {
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  display: block;
  padding: 1rem 0;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .menu-toggle,
  .nav-mobile {
    display: none;
  }

  .nav-desktop,
  .nav-cta {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(51, 153, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(92, 184, 0, 0.12), transparent),
    linear-gradient(180deg, var(--dark) 0%, transparent 40%, var(--dark) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  max-width: min(480px, 85vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(92, 184, 0, 0.35);
  border-radius: 999px;
  background: rgba(92, 184, 0, 0.08);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 1rem;
  font-size: 1.125rem;
  color: var(--text);
}

.hero-support {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--white);
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.section-intro {
  max-width: 720px;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why it matters */
.why-section {
  background: var(--dark-2);
  border-block: 1px solid var(--border);
}

.checklist-wrap {
  padding: 1.75rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.checklist-title {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--white);
}

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

.checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Industries */
.industries-section {
  background: var(--dark-2);
  border-block: 1px solid var(--border);
}

.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industries-list li {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* About list on band */
.about-list {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.about-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--white);
  font-weight: 700;
}

.about-band .container {
  text-align: center;
}

.about-band p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(51, 153, 255, 0.12), rgba(92, 184, 0, 0.1));
  border-block: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
}

.cta-band p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
}

#dashboards {
  border-top: 1px solid var(--border);
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

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

.service-card {
  padding: 2rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(92, 184, 0, 0.4);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(92, 184, 0, 0.2), rgba(51, 153, 255, 0.15));
  color: var(--green);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--white);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card a {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Split feature */
.feature-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-split.reverse .feature-media {
    order: 2;
  }
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.feature-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
}

.feature-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.benefits-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.benefit {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(51, 153, 255, 0.15);
  color: var(--blue);
}

.benefit h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--white);
}

.benefit p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Capabilities */
.capabilities {
  background: var(--dark-2);
  border-block: 1px solid var(--border);
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.cap-tag {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.cap-tag:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Process */
.process-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 1.75rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--white);
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.process-step ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* About band */
.about-band {
  background: linear-gradient(135deg, var(--blue-dim), var(--green-dim));
  text-align: center;
}

.about-band h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
}

.about-band p {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Contact */
.contact-grid {
  display: flex;
  justify-content: center;
}

.contact-form-wrap {
  width: 100%;
  max-width: 640px;
  padding: 2rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 500px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(51, 153, 255, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-hint code {
  padding: 0.15rem 0.4rem;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: rgba(92, 184, 0, 0.15);
  border: 1px solid rgba(92, 184, 0, 0.4);
  color: var(--green);
}

.form-status.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #f85149;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-links a:hover {
  color: var(--green);
  border-color: var(--green);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(92, 184, 0, 0.4);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-3px);
}

.back-top svg {
  width: 22px;
  height: 22px;
}
