/* =========================================================
   Kobiro — Global Design Tokens & Base Layer
   ========================================================= */

:root {
  /* Surface */
  --bg-base: #050511;
  --bg-elevated: #0a0a1f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* Borders */
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text-primary: #f5f5fa;
  --text-secondary: rgba(245, 245, 250, 0.72);
  --text-muted: rgba(245, 245, 250, 0.5);

  /* Accents — futuristic violet / blue / cyan */
  --accent-violet: #7c3aed;
  --accent-violet-soft: rgba(124, 58, 237, 0.45);
  --accent-blue: #3b82f6;
  --accent-blue-soft: rgba(59, 130, 246, 0.45);
  --accent-cyan: #06b6d4;
  --accent-cyan-soft: rgba(6, 182, 212, 0.45);

  /* Effects */
  --glow-violet: 0 0 80px rgba(124, 58, 237, 0.35);
  --glow-blue: 0 0 80px rgba(59, 130, 246, 0.35);
  --glow-cyan: 0 0 80px rgba(6, 182, 212, 0.35);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-med: 280ms ease;
  --t-slow: 600ms ease;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* All real content sits above the background layer */
.layer-content {
  position: relative;
  z-index: 10;
}

/* Eyebrow / label — futuristic small caps look */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Reusable heading gradient */
.heading-gradient {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #c4b5fd 35%,
    #93c5fd 70%,
    #67e8f9 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Primary button — futuristic pill with glow */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    135deg,
    var(--accent-violet) 0%,
    var(--accent-blue) 50%,
    var(--accent-cyan) 100%
  );
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--glow-violet);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 100px rgba(124, 58, 237, 0.55);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--t-med), border-color var(--t-med);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

/* Section spacing */
.section {
  padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 2rem;
  }
}

.container-x {
  max-width: 1200px;
  margin: 0 auto;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}