/* ai-embed.com — design system
   Dark field with electric-blue accent. Precision, depth, enterprise credibility.
   Inspired by deep-tech consultancy aesthetic (espressio.ai, QuantumBlack register). */

:root {
  --black:       #080c14;
  --surface:     #0e1422;
  --surface-2:   #141b2e;
  --surface-3:   #1a2240;
  --electric:    #3d7fff;
  --electric-dim: #1e4fa8;
  --electric-glow: rgba(61,127,255,0.18);
  --cyan:        #00d4ff;
  --white:       #ffffff;
  --off-white:   #e8edf8;
  --muted:       rgba(232,237,248,0.55);
  --line:        rgba(255,255,255,0.07);
  --line-bright: rgba(61,127,255,0.3);
  --max:         1200px;
  --font:        -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable both-edges; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--electric);
  flex: none;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(232,237,248,0.75);
  max-width: 580px;
  line-height: 1.7;
}

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

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 88px;
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--electric);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: white;
  flex: none;
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.brand-name { color: var(--white); }
.brand-name span { color: var(--electric); }

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer-brand .brand-logo { height: 44px; }

.brand-logo-text { height: 36px; width: auto; }
.footer-brand .brand-logo-text { height: 44px; }

.intro-splash {
  height: calc(100vh + 120px);
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.intro-splash img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(280px, 27.5vw);
  height: auto;
}

.site-header.pre-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.site-header.pre-scroll.revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-logo-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 28px;
}

.hero-logo-wrap img {
  height: 92px;
  width: auto;
  display: block;
}

.service-icon-img {
  width: 28px;
  height: auto;
  display: block;
}

.why-point-icon-img {
  width: 22px;
  height: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 40px;
}

nav.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--white); }

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--electric);
  border-radius: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.15s;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--electric);
  color: #fff;
}
.btn-primary:hover {
  background: #5592ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61,127,255,0.4);
}

.btn-outline {
  border: 1px solid var(--line-bright);
  color: var(--off-white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--electric);
  color: var(--white);
  background: rgba(61,127,255,0.08);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 0.97rem;
}

/* ---------- Hamburger (mobile) ---------- */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: all 0.2s;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,127,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,127,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(61,127,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(61,127,255,0.12);
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--electric);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--electric);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--electric) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(232,237,248,0.7);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.trust-metrics {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-metric strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.trust-metric span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Section base ---------- */

section { padding: 100px 0; }

.section-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.section-header.centered {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.centered .eyebrow {
  justify-content: center;
}

.section-header.centered .eyebrow::before { display: none; }

.section-header h2 { margin-bottom: 16px; }

/* ---------- What we do (services strip) ---------- */

.services-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-card {
  padding: 52px 40px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.2s;
}

.service-card:last-child { border-right: none; }

.service-card:hover {
  background: var(--surface-2);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--electric-glow);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- How it works ---------- */

.how-section { background: var(--black); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  position: relative;
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--surface-3);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.step h4 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; }

/* ---------- Services full page ---------- */

.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-full-card {
  background: var(--surface);
  padding: 52px 48px;
  transition: background 0.2s;
}

.service-full-card:hover { background: var(--surface-2); }

.service-full-card .service-icon { margin-bottom: 28px; }

.service-full-card h3 { font-size: 1.25rem; margin-bottom: 12px; }

.service-full-card p { font-size: 0.95rem; margin-bottom: 20px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-tag {
  padding: 4px 12px;
  background: var(--electric-glow);
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--electric);
  letter-spacing: 0.02em;
}

/* ---------- Why section ---------- */

.why-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-content .section-header { margin-bottom: 40px; }

.why-points { list-style: none; display: flex; flex-direction: column; gap: 24px; }

.why-point {
  display: flex;
  gap: 20px;
}

.why-point-icon {
  width: 40px;
  height: 40px;
  background: var(--electric-glow);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1rem;
}

.why-point-text h4 { margin-bottom: 4px; font-size: 1rem; }
.why-point-text p { font-size: 0.9rem; }

.why-visual {
  position: relative;
}

.why-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.why-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-card-dots { display: flex; gap: 6px; }
.why-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.why-card-body { padding: 28px 24px; }

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.metric-tile {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.metric-tile strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--electric);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric-tile span {
  font-size: 0.78rem;
  color: var(--muted);
}

.metric-bar {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.bar-label span:first-child { color: var(--muted); }
.bar-label span:last-child { color: var(--electric); font-weight: 600; }

.bar-track {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
}

/* ---------- Approach / EMEA section ---------- */

.emea-section { background: var(--black); }

.emea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.emea-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.emea-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-3px);
}

.emea-flag {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.emea-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.emea-card p { font-size: 0.88rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(61,127,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-band h2 { margin-bottom: 16px; }
.cta-band p { font-size: 1.05rem; max-width: 480px; margin: 0 auto 40px; }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.contact-section { padding: 120px 0 100px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info .lede { margin-bottom: 48px; }

.contact-channels { list-style: none; display: flex; flex-direction: column; gap: 24px; }

.contact-channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-channel-icon {
  width: 44px; height: 44px;
  background: var(--electric-glow);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.1rem;
}

.contact-channel-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-channel-text a,
.contact-channel-text span {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-channel-text a:hover { color: var(--electric); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
}

.contact-form-wrap h3 { margin-bottom: 32px; font-size: 1.4rem; }

.form-row { margin-bottom: 24px; }

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(232,237,248,0.3); }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(61,127,255,0.12);
}

.form-row select {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233d7fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row select option { background: var(--surface-2); }

.form-row textarea { resize: vertical; min-height: 120px; }

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; text-align: center; padding: 15px; }

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

footer.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

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

.footer-bottom p { font-size: 0.82rem; }

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--white); }

/* ---------- Legal content (privacy / terms) ---------- */

.legal-content {
  max-width: 760px;
  padding: 80px 0 120px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 14px;
}

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

.legal-content p { margin-bottom: 16px; color: var(--muted); }

.legal-content ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

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

.legal-content strong { color: var(--off-white); }

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 140px 0 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,127,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 16px; }
.page-hero .lede { margin: 0; }

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

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(2) { border-right: none; }
  .service-card { border-bottom: 1px solid var(--line); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }

  .intro-splash img { width: 39vw; }

  nav.main-nav { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-trust { gap: 24px; }
  .trust-metrics { gap: 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .service-card:last-child { border-bottom: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .emea-grid { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; }
}
