/* ============================================================
   ZORO TECH DESIGN — Base Styles & Reset
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 2px; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section base */
section { position: relative; }

/* ── Tech Label ── */
.tech-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.tech-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent-primary);
  flex-shrink: 0;
}

/* ── Section Title ── */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--t-mid);
  position: relative;
  text-decoration: none;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-primary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 14px 0;
}

.btn-ghost:hover { color: var(--accent-primary); }

.btn-ghost .arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}

.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ── Decorative Number ── */
.deco-number {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 900;
  color: var(--text-primary);
  opacity: 0.025;
  position: absolute;
  user-select: none;
  pointer-events: none;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* ── Blueprint grid background ── */
.bg-blueprint {
  background-image:
    linear-gradient(var(--line-tech) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-tech) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="none"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: none !important;
}

/* ── Stagger children ── */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-stagger].revealed > * { opacity: 1; transform: none; }
[data-stagger].revealed > *:nth-child(1) { transition-delay:   0ms; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: 120ms; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: 240ms; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: 360ms; }
[data-stagger].revealed > *:nth-child(5) { transition-delay: 480ms; }
[data-stagger].revealed > *:nth-child(6) { transition-delay: 600ms; }
[data-stagger].revealed > *:nth-child(7) { transition-delay: 720ms; }
[data-stagger].revealed > *:nth-child(8) { transition-delay: 840ms; }
[data-stagger].revealed > *:nth-child(9) { transition-delay: 960ms; }

/* ── Responsive cursor hide ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}
