:root {
  --bg: #0a0a0c;
  --bg-elev: #14151a;
  --bg-card: #16171c;
  --border: #1f2024;
  --border-strong: #2a2c33;
  --text: #f5f5f7;
  --text-dim: #9ca3af;
  --text-mute: #6b7280;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-2: #a78bfa;
  --success: #34d399;
  --max-w: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --pad: clamp(20px, 4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

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

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

/* Background ambient glow */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(40% 35% at 10% 20%, rgba(167, 139, 250, 0.06), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 26px; height: 26px; }
.brand-wordmark {
  font-family: 'Space Grotesk', var(--font);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--text-dim);
}
.lang-switch a.active {
  background: var(--text);
  color: var(--bg);
}

/* Hero */
.hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 100px);
  text-align: left;
}
.hero .eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 920px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0;
}

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 40px 0 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
.section-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 15px;
  max-width: 420px;
}

/* Projects grid */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 100px;
}
@media (min-width: 880px) {
  .projects { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.card-body {
  padding: 28px 28px 24px;
  width: 100%;
}
.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.card-logo.text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.card-logo.emblem {
  background: #0a0a0c;
  padding: 10px;
}
.card-wordmark {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 0 18px;
  color: var(--text);
}
.powers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-dim);
}
.powers img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
}
.powers strong {
  color: var(--text);
  font-weight: 600;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.card .tagline {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.card .desc {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.card-cover {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 28px 0 28px;
  pointer-events: none;
}
.card-cover img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 28px 28px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  color: var(--accent);
}
.btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

.store-badge {
  height: 40px;
  width: auto;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.2s;
}
.store-badge:hover { opacity: 0.85; transform: translateY(-1px); }

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Card variant: no cover image, use accent gradient */
.card.accent-only .card-body { padding-bottom: 32px; }
.card.accent-only::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 40%);
  pointer-events: none;
}

/* Numbers strip (futbol24 stats etc.) */
.stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}
.stats .stat {
  font-size: 13px;
  color: var(--text-dim);
}
.stats .stat strong {
  display: block;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Tech / Capabilities section */
.tech {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.tech .section-head { margin-top: 0; }

.tech-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  margin: 0 0 56px;
}
.tech-stat {
  min-width: 0;
  flex: 1 1 200px;
}
.tech-stat strong {
  display: block;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.tech-stat .label {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.tech-stat .note {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
}

.tech-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .tech-pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .tech-pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pillar h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}
.pillar p {
  color: var(--text-dim);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: -0.01em;
}

.highlights-stack {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.tech-extras {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 24px;
}
.extras-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.extras-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.55;
}

/* About / Team section */
.about {
  padding: 60px 0 100px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.about .section-head { margin-top: 0; }
.about-lead {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 16px;
  max-width: 720px;
  line-height: 1.35;
}
.about-lead strong { font-weight: 600; }
.about-intro {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 680px;
  margin: 0 0 48px;
  line-height: 1.65;
}

.founders {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
@media (min-width: 720px) {
  .founders { grid-template-columns: 1fr 1fr; }
}
.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.founder-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.founder-info { min-width: 0; }
.founder-info .name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2px;
}
.founder-info .role {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
}

.clients-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
  font-weight: 500;
}
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin: 0 0 36px;
}
.client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.client:hover { opacity: 1; }
.client img,
.client svg {
  width: 28px;
  height: 28px;
  display: block;
}
.client-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.05)),
    var(--bg-card);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius);
}
.highlight-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}
.highlight-body { min-width: 0; }
.highlight-body .label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.highlight-body p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  max-width: 640px;
}

.regions {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-mute);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-mute);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-inner .legal span,
.footer-inner .legal a { color: var(--text-mute); }
.footer-inner .legal a:hover { color: var(--accent); }
.footer-inner .sep { color: var(--border-strong); }

/* Cookie banner */
.cookie {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.cookie.show { display: flex; flex-wrap: wrap; }
.cookie .actions { display: flex; gap: 8px; }
.cookie .actions button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.cookie .actions button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

@media (max-width: 600px) {
  .nav a:not(.lang-link) { display: none; }
  .header-inner { gap: 8px; }
}
