:root {
  --base: #030716;
  --panel: rgba(6, 8, 18, 0.92);
  --accent: #6b8cbe;
  --accent-soft: #91a7d8;
  --metal: #c9a364;
  --text: #f5f3ed;
  --muted: rgba(245, 243, 237, 0.72);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--base);
  color: var(--text);
  overflow-x: hidden;
}

.grid {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(107, 140, 190, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(201, 163, 100, 0.2), transparent 60%);
  pointer-events: none;
}

.grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 110px 110px;
  mix-blend-mode: screen;
}

.container {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 48px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(107, 140, 190, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 100%; height: auto; display: block; }

nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

nav a:hover::after { opacity: 1; }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle button.active {
  background: linear-gradient(120deg, var(--accent), var(--metal));
  color: #00040c;
}

.cta {
  background: linear-gradient(120deg, var(--accent), var(--metal));
  color: #030407;
  border-radius: 999px;
  padding: 11px 26px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(107, 140, 190, 0.4);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 24px;
  background: transparent;
  font-weight: 600;
}

.hero {
  position: relative;
  padding: 40px 0 20px;
  min-height: 420px;
}

.hero-stage {
  position: absolute;
  inset: -80px -200px auto auto;
  width: 480px;
  height: 480px;
  pointer-events: none;
}

.desk-shell {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: deskSpin 18s linear infinite;
}

.desk-top,
.desk-mid,
.desk-base {
  position: absolute;
  width: 260px;
  height: 120px;
  left: 50%;
  transform: translateX(-50%) rotateX(60deg);
  border-radius: 24px;
  background: rgba(107, 140, 190, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(107, 140, 190, 0.3);
}

.desk-top { top: 90px; }
.desk-mid { top: 130px; width: 220px; }
.desk-base { top: 170px; width: 180px; }

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero h2 { font-size: clamp(2.4rem, 3.8vw, 3.5rem); margin: 0 0 16px; }
.hero p { color: var(--muted); line-height: 1.7; }

.hero-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.card-grid,
.workflow-grid,
.log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card-grid article,
.workflow-grid article,
.log-grid article {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  background: rgba(8, 12, 24, 0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(107, 140, 190, 0.4), rgba(201, 163, 100, 0.4));
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.card-icon svg { width: 28px; height: 28px; }

.card-grid article:hover,
.workflow-grid article:hover,
.log-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 163, 100, 0.4);
  box-shadow: 0 18px 45px rgba(107, 140, 190, 0.35);
}

.step { letter-spacing: 0.4em; color: var(--accent-soft); font-size: 0.85rem; margin-bottom: 10px; }

.log-grid span { font-size: 0.78rem; letter-spacing: 0.3em; color: var(--muted); }

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

footer { text-align: center; color: var(--muted); }

@keyframes deskSpin {
  from { transform: rotateZ(0deg); }
  to { transform: rotateZ(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 720px) {
  header { grid-template-columns: 1fr; gap: 12px; }
  nav { justify-content: flex-start; flex-wrap: wrap; }
  .hero-stage { inset: -20px calc(50% - 180px) auto calc(50% - 180px); }
  .contact { flex-direction: column; align-items: flex-start; }
}
