/* Inter (OFL 1.1, see /assets/fonts/Inter-OFL.txt): latin subset, variable weight 400–900, self-hosted */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-900.woff2') format('woff2');
}

:root {
  --bg-1: #020617;
  --bg-2: #0b1220;
  --bg-3: #0f172a;
  --accent: #2563eb;
  --accent2: #0ea5e9;
  --accent3: #2277ee;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,.85);
  --text-muted: rgba(255,255,255,.6);
  --surface: #0b1423;
  --surface-2: #0e1a2b;
  --border: rgba(255,255,255,.06);
  --border-strong: rgba(255,255,255,.1);
  --maxw: 1280px;
  --radius: 12px;
  --pad: 24px;
  --header-h: 80px;
}

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

h1, h2, h3, p {
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Language Selector */
.lang-selector {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  gap: 0.375rem;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  background: rgba(11,20,35,.9);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover, .lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Header */
.header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--header-h);
  z-index: 110;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand {
  min-width: 0;
}

.brand img {
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  height: 2.75rem;
  filter: brightness(1.1);
}

.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.375rem;
  height: 1px;
  width: 0;
  background: var(--text);
  transition: width 0.2s ease;
}

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

.menu a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

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

.btn.ghost:hover {
  border-color: var(--border-strong);
}

.toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0) 0%, rgba(2,6,23,.25) 35%, rgba(11,18,32,.75) 75%, rgba(15,23,42,1) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.headline {
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1.125rem;
  color: var(--text);
}

.sub {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: var(--text-dim);
  margin: 0 0 2rem;
  font-weight: 500;
  line-height: 1.55;
}

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

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  position: relative;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.svc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.svc:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.svc-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent2);
  margin-bottom: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.svc h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

.svc p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.member:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.member-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.125rem;
}

.portrait-wrap {
  grid-column: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 0.1875rem;
  border: 1px solid var(--border);
}

.portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
}

.m-name {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.m-role {
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.875rem;
}

.pill {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
}

.m-contact {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.m-contact a {
  color: var(--accent2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.m-contact a:hover {
  color: var(--accent);
}

.who-intro {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Founder badges: icons to the right of the portrait */
.badge-icons {
  justify-self: start;
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge-tile {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform .18s ease, filter .18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.badge-tile img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  opacity: 0.85;
}
.badge-tile:hover img { opacity: 1; }
.badge-tile:hover { transform: translateY(-2px); }

@media (max-width: 480px) {
  .badge-tile { width: 28px; height: 28px; border-radius: 6px; }
  .badge-icons { gap: 8px; }
}

/* Customers */
.logos-wrap {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
}

.logos {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
}

.client {
  flex: 0 0 auto;
  width: 260px;
  height: 7.5rem;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 1.25rem;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.client:hover {
  transform: scale(1.02);
  border-color: var(--border-strong);
}

/* single-colour light logos, all at the same height */
.client img {
  height: calc(40px * var(--logo-scale, 1));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.client:hover img {
  opacity: 1;
}

/* reduced motion: static, wrapped logo grid instead of the marquee */
.logos.static {
  flex-wrap: wrap;
  justify-content: center;
}

/* Contact */
.contact-wrapper {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
}

.contact {
  text-align: center;
}

.big {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.email {
  font-size: 1rem;
  margin: 1rem 0;
}

.email a {
  color: var(--accent2);
  text-decoration: none;
}

.email a:hover {
  color: var(--accent);
}

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

.footer div {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
  .team {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
  .hero {
    padding: calc(var(--header-h) + 2.5rem) 1rem 3.75rem;
  }
  .section {
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  }
}

@media (max-width: 768px) {
  .lang-selector {
    bottom: 0.625rem;
    right: 0.625rem;
    gap: 0.25rem;
  }
  .lang-btn {
    padding: 0.1875rem 0.375rem;
    font-size: 0.625rem;
  }
  .menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .menu.open {
    display: flex;
  }
  .toggle {
    display: block;
  }
  .services {
    grid-template-columns: minmax(0, 1fr);
  }
  .team {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    min-height: 80vh;
    padding: calc(var(--header-h) + 2rem) 1rem 3rem;
  }
  .headline {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
  }
  .sub {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }
  .client {
    width: 220px;
    height: 6rem;
  }
  .client img {
    height: calc(34px * var(--logo-scale, 1));
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.125rem;
  }
  .brand img {
    height: 2rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .section {
    padding: clamp(2rem, 5vw, 3rem) 0.75rem;
  }
  .contact-wrapper {
    padding: 1.5rem 0.75rem;
  }
  .title,
  .big,
  .svc h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Language-specific content */
.lang-content {
  display: none;
}
.lang-content.active {
  display: block;
}

span.lang-content.active {
  display: inline;
}

/* Footer links (legal) */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

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

/* Sub pages (legal, 404) */
.header.solid {
  background: rgba(3,11,23,.95);
  border-bottom-color: var(--border);
}

.back-link {
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

.legal {
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2.25rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--accent2);
  overflow-wrap: anywhere;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-card {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

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

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
}

.notfound-code {
  font-size: clamp(5rem, 22vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.35) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.notfound .lead {
  margin-bottom: 2rem;
}
