/* ═══════════════════════════════════════════════════════════════
   AiMateurs — main.css
   Reset · CSS Variables · Base Typography · Layout
═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  /* Colors */
  --cyan:           #00f5ff;
  --cyan-dim:       rgba(0, 245, 255, 0.12);
  --cyan-mid:       rgba(0, 245, 255, 0.35);
  --purple:         #a855f7;
  --purple-dim:     rgba(168, 85, 247, 0.12);
  --purple-mid:     rgba(168, 85, 247, 0.35);

  /* Backgrounds */
  --bg-primary:     #05050f;
  --bg-secondary:   #08081a;
  --bg-card:        rgba(255, 255, 255, 0.028);
  --bg-card-hover:  rgba(255, 255, 255, 0.055);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-muted:     rgba(255, 255, 255, 0.32);

  /* Borders */
  --border-dim:     rgba(255, 255, 255, 0.065);
  --border-bright:  rgba(255, 255, 255, 0.14);

  /* Glows */
  --glow-cyan:      0 0 24px rgba(0, 245, 255, 0.45),
                    0 0 60px rgba(0, 245, 255, 0.15);
  --glow-purple:    0 0 24px rgba(168, 85, 247, 0.45),
                    0 0 60px rgba(168, 85, 247, 0.15);
  --glow-card:      0 8px 40px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-display:   'Orbitron', monospace;
  --font-body:      'Inter', sans-serif;

  /* Sizing */
  --nav-height:     72px;
  --container-max:  1200px;
  --container-pad:  clamp(1.25rem, 5vw, 2.5rem);
  --section-gap:    clamp(5rem, 10vw, 9rem);

  /* Transitions */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:         0.2s var(--ease-in-out);
  --t-base:         0.35s var(--ease-out);
  --t-slow:         0.6s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

img, svg { display: block; }

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

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: none;
  border: none;
  background: none;
}

@media (pointer: coarse) {
  button { cursor: pointer; }
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  border-radius: 3px;
}

/* ─── Selection ─── */
::selection {
  background: var(--cyan-mid);
  color: var(--text-primary);
}

/* ─── Fixed Backgrounds ─── */
#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ─── Layout ─── */
main {
  position: relative;
  z-index: 2;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* ─── Typography Scale ─── */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .section-desc {
  margin: 0 auto;
}

.section-header .section-tag {
  padding-left: 0;
}

.section-header .section-tag::before {
  display: none;
}

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass Card Base ─── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  box-shadow: var(--glow-card);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base), background var(--t-base);
}

.glass-card:hover {
  border-color: rgba(0, 245, 255, 0.25);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-card), var(--glow-cyan);
}

/* ─── Utilities ─── */
.break-desktop { display: none; }

@media (min-width: 1024px) {
  .break-desktop { display: inline; }
}
