:root {
  --bg: #151921;
  --bg-elevated: #1c2230;
  --bg-glass: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.14);
  --stroke-subtle: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #8b8b96;
  --blue: #0070f3;
  --cyan: #50e3c2;
  --purple: #7928ca;
  --green: #17c964;
  --cube-blue: #024caa;
  --cube-cyan: #00b4d8;
  --cube-purple: #7928ca;
  --cube-orange: #f5a623;
  --cube-magenta: #e056fd;
  --cube-indigo: #4f46e5;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.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;
}

.glass {
  background: var(--bg-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.lead, .section__lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36rem;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

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

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover { background: #fff; }

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

.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--text-secondary);
}

.pill--success {
  border-color: rgba(23, 201, 100, 0.35);
  color: var(--green);
  background: rgba(23, 201, 100, 0.08);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--stroke-subtle);
  background: rgba(21, 25, 33, 0.92);
  backdrop-filter: blur(12px);
}

.nav__brand img {
  height: 40px;
  width: auto;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a:not(.btn) {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stroke-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
}

.hero__orb--blue {
  width: 320px;
  height: 320px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
}

.hero__orb--purple {
  width: 140px;
  height: 140px;
  top: 60%;
  left: 10%;
  background: var(--purple);
}

/* Colorful brand cubes (CSS 3D, inspired by logo) */
.cube-scene {
  perspective: 640px;
  pointer-events: none;
}

.cube {
  position: relative;
  transform-style: preserve-3d;
  margin: 0 auto;
}

.cube--lg { width: 72px; height: 72px; }
.cube--md { width: 52px; height: 52px; }
.cube--sm { width: 44px; height: 44px; }
.cube--xs { width: 28px; height: 28px; }

.cube__face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backface-visibility: hidden;
  opacity: 0.94;
}

.cube--lg .cube__face { transform-origin: center; }
.cube--lg .cube__face--front  { transform: rotateY(0deg) translateZ(36px); background: var(--cube-blue); }
.cube--lg .cube__face--back   { transform: rotateY(180deg) translateZ(36px); background: var(--cube-purple); }
.cube--lg .cube__face--right  { transform: rotateY(90deg) translateZ(36px); background: var(--cube-cyan); }
.cube--lg .cube__face--left   { transform: rotateY(-90deg) translateZ(36px); background: var(--cube-orange); }
.cube--lg .cube__face--top    { transform: rotateX(90deg) translateZ(36px); background: var(--cube-magenta); }
.cube--lg .cube__face--bottom { transform: rotateX(-90deg) translateZ(36px); background: var(--cube-indigo); }

.cube--md .cube__face--front  { transform: rotateY(0deg) translateZ(26px); background: var(--cube-cyan); }
.cube--md .cube__face--back   { transform: rotateY(180deg) translateZ(26px); background: var(--cube-purple); }
.cube--md .cube__face--right  { transform: rotateY(90deg) translateZ(26px); background: var(--cube-blue); }
.cube--md .cube__face--left   { transform: rotateY(-90deg) translateZ(26px); background: var(--cube-orange); }
.cube--md .cube__face--top    { transform: rotateX(90deg) translateZ(26px); background: var(--cube-magenta); }
.cube--md .cube__face--bottom { transform: rotateX(-90deg) translateZ(26px); background: var(--cube-indigo); }

.cube--sm .cube__face--front  { transform: rotateY(0deg) translateZ(22px); background: var(--cube-orange); }
.cube--sm .cube__face--back   { transform: rotateY(180deg) translateZ(22px); background: var(--cube-blue); }
.cube--sm .cube__face--right  { transform: rotateY(90deg) translateZ(22px); background: var(--cube-cyan); }
.cube--sm .cube__face--left   { transform: rotateY(-90deg) translateZ(22px); background: var(--cube-purple); }
.cube--sm .cube__face--top    { transform: rotateX(90deg) translateZ(22px); background: var(--cube-magenta); }
.cube--sm .cube__face--bottom { transform: rotateX(-90deg) translateZ(22px); background: var(--cube-indigo); }

.cube--xs .cube__face--front  { transform: rotateY(0deg) translateZ(14px); background: var(--cube-blue); }
.cube--xs .cube__face--back   { transform: rotateY(180deg) translateZ(14px); background: var(--cube-purple); }
.cube--xs .cube__face--right  { transform: rotateY(90deg) translateZ(14px); background: var(--cube-cyan); }
.cube--xs .cube__face--left   { transform: rotateY(-90deg) translateZ(14px); background: var(--cube-orange); }
.cube--xs .cube__face--top    { transform: rotateX(90deg) translateZ(14px); background: var(--cube-magenta); }
.cube--xs .cube__face--bottom { transform: rotateX(-90deg) translateZ(14px); background: var(--cube-indigo); }

.cube--spin {
  animation: cube-spin 18s linear infinite;
}

.cube--spin-reverse {
  animation: cube-spin-reverse 14s linear infinite;
}

.cube--spin-slow {
  animation: cube-spin 24s linear infinite;
}

@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}

@keyframes cube-spin-reverse {
  from { transform: rotateX(12deg) rotateY(360deg); }
  to { transform: rotateX(12deg) rotateY(0deg); }
}

.hero__cubes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cube-scene--hero-main {
  position: absolute;
  top: 12%;
  right: 8%;
  opacity: 0.88;
}

.cube-scene--hero-accent {
  position: absolute;
  bottom: 18%;
  left: 6%;
  opacity: 0.75;
}

.over__reasons {
  position: relative;
}

.over__cube {
  position: absolute;
  top: -12px;
  right: 16px;
  opacity: 0.85;
}

.footer__cube {
  flex-shrink: 0;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .cube--spin,
  .cube--spin-reverse,
  .cube--spin-slow {
    animation: none;
    transform: rotateX(-18deg) rotateY(35deg);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.validation-card {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  max-width: 440px;
  text-align: left;
}

.validation-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.validation-card__intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.validation-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.validation-card__list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.75rem;
  position: relative;
}

.validation-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
}

.hero__stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* Sections */
.section { padding: 4rem 0; }

.section__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 32rem;
}

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

.card {
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card__accent {
  width: 6px;
  height: 24px;
  border-radius: 3px;
}

.card__accent--blue { background: var(--blue); }
.card__accent--cyan { background: var(--cyan); }
.card__accent--purple { background: var(--purple); }

.card h3 { margin-bottom: 0.5rem; }

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Over */
.over {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.over__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.over__copy p {
  margin: 0;
  color: var(--text-secondary);
}

.over__note {
  font-size: 0.875rem !important;
  color: var(--text-tertiary) !important;
}

.over__reasons {
  padding: 1.5rem;
}

.over__reasons strong {
  display: block;
  margin-bottom: 1rem;
}

.over__reasons ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.over__reasons li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  counter-increment: reason;
  display: flex;
  gap: 0.75rem;
}

.over__reasons ol { counter-reset: reason; }

.over__reasons li::before {
  content: counter(reason, decimal-leading-zero);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  flex-shrink: 0;
}

/* Contact */
.section--contact { padding-bottom: 3rem; }

.contact {
  padding: 3rem 2rem;
  text-align: center;
}

.contact > p {
  margin: 0.75rem auto 1.5rem;
  color: var(--text-secondary);
  max-width: 28rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.contact__form input,
.contact__form textarea {
  font: inherit;
  padding: 0.625rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--text);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.contact__message { grid-column: 1 / -1; }

.contact__form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: center;
}

.contact__status {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact__status--success {
  color: var(--green);
}

.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

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

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stroke-subtle);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__brand img {
  height: 28px;
  width: auto;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 24px 1.5rem;
    background: rgba(21, 25, 33, 0.98);
    border-bottom: 1px solid var(--stroke-subtle);
  }

  .nav__links.is-open { display: flex; }

  .nav__inner { position: relative; }

  .cards { grid-template-columns: 1fr; }

  .over { grid-template-columns: 1fr; }

  .cube-scene--hero-main { top: 4%; right: 4%; transform: scale(0.75); }
  .cube-scene--hero-accent { bottom: 8%; left: 2%; transform: scale(0.7); }

  .contact__form { grid-template-columns: 1fr; }
}
