/*
 * Limesys design system — tactical documentation aesthetic.
 * Navy surfaces, lime accent, Inter body, JetBrains Mono for technical labels.
 */

:root {
  --radius: 0.625rem;
  --background: #020617;
  --foreground: #fafafa;
  --navy-950: #020617;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --lime-primary: #bef264;
  --lime-700: #4d7c0f;
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-900: #18181b;
  --amber-400: #fbbf24;
  --red-400: #f87171;
  --color-border: rgba(250, 250, 250, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--color-border);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

::selection {
  background-color: var(--lime-primary);
  color: var(--navy-950);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Layout & sizing */
.min-h-screen {
  min-height: 100vh;
}

.size-4 {
  width: 1rem;
  height: 1rem;
}

.size-5 {
  width: 1.25rem;
  height: 1.25rem;
}

.size-8 {
  width: 2rem;
  height: 2rem;
}

.h-1 {
  height: 0.25rem;
}

.h-2 {
  height: 0.5rem;
}

.h-11 {
  height: 2.75rem;
}

.h-16 {
  height: 4rem;
}

.h-full {
  height: 100%;
}

.w-2 {
  width: 0.5rem;
}

.w-full {
  width: 100%;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-\[20ch\] {
  max-width: 20ch;
}

.max-w-\[24ch\] {
  max-width: 24ch;
}

.max-w-\[44ch\] {
  max-width: 44ch;
}

.max-w-\[48ch\] {
  max-width: 48ch;
}

.max-w-\[52ch\] {
  max-width: 52ch;
}

.max-w-\[56ch\] {
  max-width: 56ch;
}

.min-h-\[6rem\] {
  min-height: 6rem;
}

/* Position */
.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-x-0 {
  left: 0;
  right: 0;
}

.pt-16 {
  padding-top: 4rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(250 250 250 / 0.05);
  background-color: rgb(2 6 23 / 0.8);
  backdrop-filter: blur(12px);
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.inset-0 {
  inset: 0;
}

.z-50 {
  z-index: 50;
}

/* Display & flex */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.block {
  display: block;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.shrink-0 {
  flex-shrink: 0;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.gap-px {
  gap: 1px;
}

.space-y-4 > :not(:last-child) {
  margin-bottom: 1rem;
}

/* Grid */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.place-items-center {
  place-items: center;
}

/* Spacing */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.p-1 {
  padding: 0.25rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Typography */
.font-sans {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-\[10px\] {
  font-size: 10px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}

.leading-none {
  line-height: 1;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.text-center {
  text-align: center;
}

.text-zinc-50 {
  color: var(--zinc-50);
}

.text-zinc-200 {
  color: #e4e4e7;
}

.text-zinc-300 {
  color: #d4d4d8;
}

.text-zinc-400 {
  color: var(--zinc-400);
}

.text-zinc-500 {
  color: var(--zinc-500);
}

.text-zinc-600 {
  color: var(--zinc-600);
}

.text-zinc-900 {
  color: var(--zinc-900);
}

.text-lime-primary {
  color: var(--lime-primary);
}

.text-navy-950 {
  color: var(--navy-950);
}

.text-amber-400 {
  color: var(--amber-400);
}

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

/* Backgrounds */
.bg-navy-950 {
  background-color: var(--navy-950);
}

.bg-navy-950\/80 {
  background-color: rgb(2 6 23 / 0.8);
}

.bg-navy-900 {
  background-color: var(--navy-900);
}

.bg-navy-800 {
  background-color: var(--navy-800);
}

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

.bg-zinc-50 {
  background-color: var(--zinc-50);
}

.bg-zinc-100 {
  background-color: var(--zinc-100);
}

.bg-zinc-200 {
  background-color: var(--zinc-200);
}

.bg-zinc-50\/5 {
  background-color: rgb(250 250 250 / 0.05);
}

.bg-zinc-50\/10 {
  background-color: rgb(250 250 250 / 0.1);
}

.hero-grid {
  opacity: 0.1;
  background-image:
    linear-gradient(to right, #1e293b 1px, transparent 1px),
    linear-gradient(to bottom, #1e293b 1px, transparent 1px);
  background-size: 4rem 4rem;
}

/* Borders & rings */
.border-b {
  border-bottom-width: 1px;
}

.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-zinc-50\/5 {
  border-color: rgb(250 250 250 / 0.05);
}

.rounded-sm {
  border-radius: 0.125rem;
}

.rounded-\[4px\] {
  border-radius: 4px;
}

.rounded-full {
  border-radius: 9999px;
}

.ring-1 {
  box-shadow: 0 0 0 1px var(--ring-color, currentColor);
}

.ring-lime-primary {
  --ring-color: var(--lime-primary);
}

.ring-lime-primary\/50 {
  --ring-color: rgb(190 242 100 / 0.5);
}

.ring-zinc-50\/5 {
  --ring-color: rgb(250 250 250 / 0.05);
}

.ring-zinc-50\/10 {
  --ring-color: rgb(250 250 250 / 0.1);
}

.ring-zinc-200 {
  --ring-color: var(--zinc-200);
}

/* Effects */
.overflow-hidden {
  overflow: hidden;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-75 {
  opacity: 0.75;
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

.outline-none {
  outline: none;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Links & buttons */
a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input {
  font: inherit;
}

.btn-lime {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  background-color: var(--lime-primary);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--navy-950);
  box-shadow: 0 0 0 1px var(--lime-primary);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lime:hover {
  background-color: rgb(190 242 100 / 0.9);
}

.btn-lime:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lime-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  background-color: var(--lime-primary);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--navy-950);
  box-shadow: 0 0 0 1px var(--lime-primary);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-lime-inline:hover {
  background-color: rgb(190 242 100 / 0.9);
}

.btn-lime-inline.w-full {
  width: 100%;
}

.btn-lime-inline.text-center {
  text-align: center;
}

.btn-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.125rem;
  background-color: var(--navy-900);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--zinc-50);
  box-shadow: 0 0 0 1px rgb(250 250 250 / 0.1);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-navy:hover {
  background-color: var(--navy-800);
}

.nav-cta {
  border-radius: 4px;
  background-color: var(--lime-primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-950);
  box-shadow: 0 0 0 1px rgb(190 242 100 / 0.5);
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:active {
  transform: scale(0.95);
}

.nav-link:hover {
  color: var(--lime-primary);
}

.quiz-answer-btn {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-400);
  box-shadow: 0 0 0 1px rgb(250 250 250 / 0.1);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-answer-btn:hover {
  color: var(--zinc-50);
  box-shadow: 0 0 0 1px var(--lime-primary);
}

.quiz-input {
  height: 2.75rem;
  background-color: var(--navy-900);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  color: var(--zinc-50);
  box-shadow: 0 0 0 1px rgb(250 250 250 / 0.1);
  outline: none;
  border: none;
  width: 100%;
}

.quiz-input:focus {
  box-shadow: 0 0 0 1px var(--lime-primary);
}

.quiz-progress {
  height: 100%;
  background-color: var(--lime-primary);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover {
  color: var(--lime-primary);
}

.footer-link:hover {
  color: #d4d4d8;
}

.service-card:hover {
  background-color: var(--zinc-100);
}

.service-card:hover .service-link {
  color: var(--lime-700);
}

.service-card:hover .service-arrow {
  transform: translateX(0.25rem);
}

.service-arrow {
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-panel {
  display: none;
}

.quiz-panel.is-active {
  display: block;
}

.quiz-panel-flex {
  display: none;
}

.quiz-panel-flex.is-active {
  display: flex;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:w-\[520px\] {
    width: 520px;
  }
}

@media (min-width: 1024px) {
  .lg\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .lg\:grid-cols-\[1fr_520px\] {
    grid-template-columns: 1fr 520px;
  }
}
