:root {
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border-subtle: #222222;
  --border-red: rgba(255, 0, 0, 0.45);
  --red: #ff0000;
  --red-hover: #d90000;
  --white: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --radius: 12px;
}

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

body {
  background-color: var(--bg-black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.text-red {
  color: var(--red);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.threebm-svg {
  height: 48px;
  width: auto;
  display: block;
}

.threebm-svg-lg {
  height: 72px;
  width: auto;
  display: block;
}

.threebm-svg-sm {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.lang-switch .active {
  color: var(--red);
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: #333333;
  color: var(--white);
}

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

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: #111111;
  border: 1px solid var(--border-subtle);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-lead {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 60px;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.pillar-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.mono-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
}

.pillar-title {
  font-weight: 600;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-dark {
  background: var(--bg-dark);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: var(--border-red);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 0, 0, 0.12);
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: #d4d4d4;
  margin-bottom: 10px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--red);
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.8;
}

/* Technologies & Logos */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #444444;
  color: var(--white);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

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

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.brand-card.hidden {
  display: none;
}

.brand-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.brand-badge {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.brand-logo-box {
  background: #ffffff;
  border-radius: 8px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
}

.brand-logo-box svg {
  width: 100%;
  height: 100%;
  max-height: 68px;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e5e5e5;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.about-logo-wrap {
  margin-bottom: 24px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
}

.company-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.company-row:first-child {
  padding-top: 0;
}

.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.detail-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}

.detail-link:hover {
  color: var(--red);
}

.detail-text {
  font-size: 1rem;
  font-weight: 600;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #080808;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #4ade80;
}

/* Footer */
.site-footer {
  padding: 36px 0;
  background: var(--bg-black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover,
.link-btn:hover {
  color: var(--white);
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
}

.cookie-inner {
  background: #141414;
  border: 1px solid var(--border-red);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.cookie-inner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid,
  .brands-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .lang-switch {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
