/* =========================
   KELEVRA DESIGN SYSTEM
========================= */

:root {
  --bg: #05070A;
  --surface: #0E131A;

  /* Neutral UI */
  --primary-dark: #0F172A;     /* dark blue, almost black */
  --primary-hover: #172033;

  --text: #E6EDF3;
  --text-muted: #8B949E;

  --border: rgba(255,255,255,0.12);

  --radius: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 10px 40px rgba(0,0,0,0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

/* =========================
   BACKGROUND
========================= */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =========================
   LAYOUT
========================= */

.section {
  padding: 112px 24px;
  max-width: 1120px;
  margin: auto;
}

.main {
  padding-top: 78px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(5,7,10,0.5);
  border-bottom: 1px solid var(--border);
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  height: 28px;
  width: auto;
  opacity: 0.92;
  transition: 0.25s ease;
}

.brand__logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav__link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: 0.25s ease;
}

.nav__link:hover {
  color: var(--text);
}

/* =========================
   HERO
========================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__viz {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 320px;
}

/* ALT 3 stack text */
.hero-stack {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin: 0;
}

/* =========================
   LOGO HERO VISUAL
========================= */

.logo-orb {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-orb__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  animation: logoFloat 8s ease-in-out infinite;
}

@keyframes logoFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* =========================
   BUTTONS (NEUTRAL)
========================= */

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

/* Dark blue primary */
.btn--primary {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* White outline */
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.06);
}

/* =========================
   CARDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
}

/* =========================
   TYPOGRAPHY
========================= */

.h2 {
  font-size: 36px;
  margin: 0 0 8px;
}

.h3 {
  font-size: 20px;
  margin: 0;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.list {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================
   CONTACT
========================= */

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* =========================
   FOOTER
========================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
}

.footer__inner {
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE (CENTERED MOBILE)
========================= */

@media (max-width: 900px) {
  .topbar {
    padding: 12px 16px;
  }

  .nav {
    gap: 14px;
  }

  .nav__link {
    font-size: 13px;
  }

  .section {
    padding: 86px 16px;
  }

  .main {
    padding-top: 74px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
    justify-items: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__viz {
    min-height: auto;
  }

  .logo-orb {
    width: 210px;
    height: 210px;
  }

  .hero-stack {
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: 0.05em;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }

  .brand__logo {
    height: 24px;
  }
}

@media (max-width: 420px) {
  .logo-orb {
    width: 190px;
    height: 190px;
  }

  .btn {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }
}