/* ==========================================================================
   DigitalEME — shared styles
   ========================================================================== */

:root {
  --bg: #060c18;
  --bg-alt: #0a1526;
  --surface: #0f1e39;
  --surface-hover: #142a4d;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #2f7dff;
  --accent-2: #38d1ff;
  --text: #eaf1ff;
  --text-muted: #94a6c7;
  --text-faint: #5f7295;
  --radius: 14px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  overflow-x: clip;
}

/* ---------- Background texture ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 45%, var(--bg) 100%);
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 12, 24, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-word-digital {
  color: var(--text);
  font-weight: 600;
}

.brand-word-eme {
  color: var(--accent-2);
  font-weight: 800;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #1f6dff;
  box-shadow: 0 8px 24px rgba(47, 125, 255, 0.35);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  flex-shrink: 0;
}

.lang-switch a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a.active {
  color: var(--bg);
  background: var(--accent-2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 100px;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(47, 125, 255, 0.35) 0%, rgba(47, 125, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(47, 125, 255, 0.08);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(56, 209, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  font-weight: 700;
  max-width: 760px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

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

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #04101f;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(47, 125, 255, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Section heads ---------- */

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-tag {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* ---------- Services ---------- */

.services {
  padding: 40px 0 110px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: linear-gradient(180deg, var(--surface), rgba(15, 30, 57, 0.4));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 209, 255, 0.35);
  background: linear-gradient(180deg, var(--surface-hover), rgba(15, 30, 57, 0.4));
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(47, 125, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 650;
}

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

/* ---------- About ---------- */

.about {
  padding: 20px 0 110px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.08), rgba(56, 209, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px;
}

.about-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 18px;
  font-weight: 700;
}

.about-panel p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-pillar .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 209, 255, 0.15);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-pillar strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.about-pillar span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: 0 0 120px;
}

.contact-panel {
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(47, 125, 255, 0.14), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 72px 32px;
}

.contact-panel h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 16px;
  font-weight: 700;
}

.contact-panel p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 300px;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Legal / inner pages ---------- */

.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  font-weight: 700;
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
}

.legal {
  padding: 56px 0 120px;
}

.legal .container {
  max-width: 780px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  font-weight: 650;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
}

.support-card .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.support-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

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

.support-card a.btn {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-panel {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .support-card {
    flex-wrap: wrap;
  }

  .support-card a.btn {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .nav-links a.nav-cta {
    width: 100%;
    padding: 14px 0;
  }

  .nav-links a.nav-cta {
    margin-top: 8px;
    justify-content: center;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-stats {
    gap: 32px;
    margin-top: 48px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 40px;
  }
}
