/* ============================================================
   BASE.CSS — Reset, Variables, Typography
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-bg:          #0d0d0d;
  --color-bg-alt:      #111111;
  --color-bg-lab:      #0a0a0a;
  --color-text:        #f5f5f5;
  --color-text-muted:  #888888;
  --color-text-dim:    #444444;
  --color-accent:      #00e5ff;
  --color-accent-dim:  rgba(0, 229, 255, 0.12);
  --color-border:      rgba(245, 245, 245, 0.06);
  --color-grid:        rgba(245, 245, 245, 0.03);

  /* Typography scale using clamp() */
  --type-hero:        clamp(3rem, 9vw, 8rem);
  --type-h2:          clamp(2rem, 4vw, 3.5rem);
  --type-h3:          clamp(1.25rem, 2.5vw, 1.875rem);
  --type-lead:        clamp(1rem, 1.8vw, 1.25rem);
  --type-body:        clamp(0.875rem, 1.5vw, 1rem);
  --type-mono:        clamp(0.75rem, 1.3vw, 0.875rem);
  --type-label:       clamp(0.65rem, 1vw, 0.75rem);

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;
  --space-2xl:  12rem;

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   700ms;
  --duration-xslow: 1000ms;

  /* Layout */
  --max-width:    1200px;
  --gutter:       clamp(1.5rem, 5vw, 4rem);
  --section-pad:  clamp(5rem, 10vw, 10rem);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* No scroll hijacking — natural scroll only */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Progressive enhancement: show all content without JS */
.js-hidden {
  opacity: 1;
  transform: none;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--type-hero); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }

p {
  max-width: 65ch;
  line-height: 1.7;
}

code, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: var(--type-mono);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--color-accent);
  color: #000;
}

/* ---------- Focus Styles (Accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-dim);
  border-radius: 2px;
}

/* ---------- Global Background Grid ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  will-change: auto;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.accent { color: var(--color-accent); }
.muted  { color: var(--color-text-muted); }
.label  {
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.logo {
  height: 200px;
  border: 2px solid #00e5ff;
  border-radius: 100%;

}

.logo {
  height: 200px;
  border: 2px solid #00ff88;
  border-radius: 100%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.resize {

}