/*
 * Lyka Starshot Design System
 * A token-first visual language for infrastructure, AI, and hybrid cloud products.
 */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Core palette */
  --starshot-void: #05080d;
  --starshot-ink: #080d14;
  --starshot-surface: #0c131d;
  --starshot-surface-2: #111b27;
  --starshot-surface-3: #172433;
  --starshot-line: rgba(181, 210, 226, 0.14);
  --starshot-line-strong: rgba(181, 210, 226, 0.25);
  --starshot-text: #f2f8fa;
  --starshot-text-soft: #b3c3cc;
  --starshot-text-dim: #788c98;
  --starshot-mint: #8fffc1;
  --starshot-cyan: #5be7ff;
  --starshot-violet: #a990ff;
  --starshot-coral: #ff8b78;
  --starshot-lime: #c9ff63;

  /* Semantic */
  --color-primary: var(--starshot-mint);
  --color-secondary: var(--starshot-cyan);
  --color-accent: var(--starshot-violet);
  --color-success: var(--starshot-mint);
  --color-warning: #ffd166;
  --color-danger: var(--starshot-coral);

  /* Fluid type */
  --text-xs: clamp(0.69rem, 0.66rem + 0.1vw, 0.76rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.16vw, 0.92rem);
  --text-base: clamp(0.96rem, 0.9rem + 0.2vw, 1.06rem);
  --text-lg: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --text-xl: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
  --text-2xl: clamp(2rem, 1.45rem + 2.2vw, 3.5rem);
  --text-hero: clamp(3.35rem, 2.1rem + 5.3vw, 7.4rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* Geometry */
  --radius-sm: 0.55rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.35rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;
  --page-width: 1240px;

  /* Depth and motion */
  --shadow-float: 0 30px 80px rgba(0, 0, 0, 0.34);
  --shadow-mint: 0 0 45px rgba(143, 255, 193, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 160ms;
  --duration-base: 360ms;
  --duration-slow: 700ms;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--starshot-surface-3) var(--starshot-void);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--starshot-void);
  color: var(--starshot-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  cursor: default;
}

a,
button,
summary {
  cursor: pointer;
}

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

button,
input {
  font: inherit;
}

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

::selection {
  background: var(--starshot-mint);
  color: var(--starshot-ink);
}

:focus-visible {
  outline: 2px solid var(--starshot-cyan);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--starshot-mint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  content: "";
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--starshot-line-strong);
  border-radius: var(--radius-pill);
  background: rgba(13, 21, 31, 0.72);
  color: var(--starshot-text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast),
    background var(--duration-fast);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 255, 193, 0.5);
  background: var(--starshot-surface-2);
}

.button--primary {
  border-color: var(--starshot-mint);
  background: var(--starshot-mint);
  color: var(--starshot-ink);
  box-shadow: var(--shadow-mint);
}

.button--primary:hover {
  border-color: var(--starshot-text);
  background: var(--starshot-text);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--starshot-line);
  border-radius: var(--radius-pill);
  background: rgba(10, 17, 25, 0.7);
  color: var(--starshot-text-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.surface {
  border: 1px solid var(--starshot-line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(21, 34, 48, 0.76), rgba(9, 15, 23, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
