/* ============================================
   ATIS Digital — CSS Variables & Base Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg:           #05070A;
  --bg2:          #0D1018;
  --bg3:          #111620;
  --surface:      #141926;
  --border:       rgba(255,255,255,0.06);
  --border-bright:rgba(255,255,255,0.12);
  --accent:       #4DFFC3;
  --accent2:      #2BE8A5;
  --accent-dim:   rgba(77,255,195,0.08);
  --accent-glow:  rgba(77,255,195,0.15);
  --text:         #F0F2F7;
  --text-mid:     #8B92A8;
  --text-dim:     #4A5168;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1000;
}

/* Shared section padding + separator lines */
section { padding: 8rem 5%; }
section:not(.hero) {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, rgba(77,255,195,0.55) 50%, transparent 100%) 1;
}

/* Shared headings */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
h2 em { font-style: normal; color: var(--accent); }

/* Section tag */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #080A0E;
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: none;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(77,255,195,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: none;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
@keyframes scrollLine {
  0%     { transform: scaleY(0); transform-origin: top; }
  50%    { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100%   { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
