/* LScript Premium Design System */

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

:root {
  /* Palette Dark Mode "Deep Space" */
  --bg-deep: #0b0c15;
  --bg-surface: #13151f;
  --bg-elevated: #1c1e2a;

  /* Accents - Cyan to Violet Gradient */
  --accent-primary: #22d3ee; /* Cyan */
  --accent-secondary: #818cf8; /* Indigo/Violet */
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  --accent-glow: rgba(34, 211, 238, 0.4);

  /* Texts */
  --text-main: #ececf3;
  --text-muted: #9496a6;
  --text-inverted: #0b0c15;

  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.08); /* Très subtil */
  --border-glow: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(19, 21, 31, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --header-height: 72px;
  --max-width: 1200px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  scroll-behavior: smooth;
  /* Mesh Gradient Background subtil */
  background-image: radial-gradient(
      circle at 15% 0%,
      rgba(34, 211, 238, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 0%,
      rgba(129, 140, 248, 0.08) 0%,
      transparent 40%
    );
  background-attachment: fixed;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--text-main);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-secondary);
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-main);
}

/* Components: Cards & Glass */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 12, 21, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Utilities */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Code Blocks Styles Overrides */
pre {
  background: var(--bg-elevated) !important;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .code-comparison {
    flex-direction: column !important;
  }
}
