/* ══════════════════════════════════════════════════
   Stu.Work — Coming Soon
   style.css
══════════════════════════════════════════════════ */

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

/* ── Tokens ─────────────────────────────────────── */
:root {
  --ink:       #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.50);
  --ink-faint: rgba(255, 255, 255, 0.20);
  --pad-x: 40px;
  --pad-y: 32px;
}

/* ── Base ────────────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Mozilla Text', system-ui, sans-serif;
  background: #000;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: none;
}

/* ── Custom Cursor ──────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  z-index: 99999;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

body.is-hovering .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 255, 255, 0.4);
}

body.is-hovering .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

/* ── Dots canvas ─────────────────────────────────── */
#dots-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

#dots-canvas.dots-active {
  opacity: 1;
}

/* ── Page layout ─────────────────────────────────── */
.page {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad-y) var(--pad-x);
  pointer-events: none;
}

.page a,
.page button {
  pointer-events: all;
}

/* ── Header ──────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 24px;
  width: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 80px;
}

/* ── Menu toggle (sandwich — 2 bars) ─────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  pointer-events: all;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Nav links (desktop) ─────────────────────────── */
.nav-links {
  display: flex;
  gap: 120px;
  list-style: none;
}

.nav-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  font-family: 'Mozilla Headline', 'Mozilla Text', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.nav-value {
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}

.nav-value a {
  font-family: 'Mozilla Text', system-ui, sans-serif;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.nav-value a:hover,
.nav-value a:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

/* ── Mobile-only overlay elements (hidden on desktop) */
.nav-overlay-header { display: none; }
.nav-close          { display: none; }
.nav-blocks         { display: contents; }

/* ── Language switch ─────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: all;
}

.lang-btn {
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: none;
  padding: 2px 4px;
  transition: color 0.2s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn.active {
  color: var(--ink);
  font-weight: 500;
}

.lang-divider {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── Main / Headline ─────────────────────────────── */
#main-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.headline {
  font-family: 'Mozilla Headline', 'Mozilla Text', system-ui, sans-serif;
  font-size: clamp(42px, 7.5vw, 104px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -2.5px;
  color: var(--ink);
  max-width: 75%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer-note {
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: #ffffff;
  max-width: 320px;
  text-align: left;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-right: 200px;
}

/* ── Accessibility ───────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Enter animation ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .headline,
  .footer-note,
  .lang-switch {
    opacity: 0;
    animation: fadein 0.9s ease forwards;
  }
  .site-header { animation-delay: 0.1s; }
  .headline    { animation-delay: 0.25s; }
  .footer-note { animation-delay: 0.4s; }
  .lang-switch { animation-delay: 0.15s; }

  @keyframes fadein { to { opacity: 1; } }
}

/* ══════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad-x: 24px; --pad-y: 28px; }

  html, body { overflow: auto; }

  .page {
    height: auto;
    min-height: 100vh;
  }

  /* Header */
  .site-header { align-items: center; }

  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-left: auto;
  }

  /* Show hamburger */
  .menu-toggle { display: flex; }

  /* ── Fullscreen overlay ─────────────────────────── */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0;
    background: #000;
    overflow: hidden;
    padding: var(--pad-y) var(--pad-x) 48px;
    border-radius: 0;
    border: none;
    min-width: unset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  /* Overlay top bar */
  .nav-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: var(--pad-y);
    left: var(--pad-x);
    right: var(--pad-x);
  }

  .nav-overlay-logo { pointer-events: all; }

  .nav-close {
    display: block;
    background: none;
    border: none;
    color: var(--ink);
    line-height: 1;
    cursor: none;
    padding: 4px;
    pointer-events: all;
  }

  .nav-close-icon {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  /* Nav blocks container */
  .nav-blocks {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Each nav item */
  .nav-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-top: 1px solid var(--ink-faint);
  }

  .nav-block:last-child {
    border-bottom: 1px solid var(--ink-faint);
  }

  .nav-label {
    font-size: 12px;
    color: var(--ink-muted);
    font-family: 'Mozilla Text', system-ui, sans-serif;
  }

  .nav-value {
    font-family: 'Mozilla Headline', 'Mozilla Text', system-ui, sans-serif;
    font-size: clamp(24px, 7vw, 32px);
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--ink);
  }

  .nav-value a {
    border-bottom: none;
    padding-bottom: 0;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
  }

  /* Page content */
  .headline {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 64px);
    letter-spacing: -1.5px;
  }

  .site-footer {
    justify-content: flex-start;
    margin-top: 48px;
  }

  .footer-note,
  html:lang(en-US) .footer-note {
    max-width: 100%;
    margin-right: 0;
    color: #ffffff;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: clamp(32px, 12vw, 48px);
    letter-spacing: -1px;
  }
}

/* ══════════════════════════════════════════════════
   MOBILE OVERLAY (filho direto do body)
══════════════════════════════════════════════════ */
.mobile-overlay {
  display: none;
}

@media (max-width: 768px) {
  /* Esconde o nav de desktop */
  .nav-links { display: none; }

  /* Mostra o hamburger */
  .menu-toggle { display: flex; }

  /* Remove gap desnecessário */
  .header-right { gap: 16px; margin-left: auto; }

  /* Overlay fullscreen */
  .mobile-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    padding: 28px 24px 48px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  /* Top bar inside overlay */
  .mobile-overlay-header {
    position: absolute;
    top: 28px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-close {
    display: block;
    background: none;
    border: none;
    color: var(--ink);
    line-height: 1;
    cursor: none;
    padding: 4px;
  }

  .nav-close-icon {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  /* Links list */
  .mobile-overlay-links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-overlay .nav-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--ink-faint);
  }

  .mobile-overlay .nav-block:last-child {
    border-bottom: 1px solid var(--ink-faint);
  }

  .mobile-overlay .nav-label {
    font-size: 12px;
    font-family: 'Mozilla Text', system-ui, sans-serif;
    color: var(--ink-muted);
    font-weight: 400;
  }

  .mobile-overlay .nav-value {
    font-family: 'Mozilla Headline', 'Mozilla Text', system-ui, sans-serif;
    font-size: clamp(24px, 7vw, 32px);
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--ink);
  }

  .mobile-overlay .nav-value a {
    border-bottom: none;
    padding-bottom: 0;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    text-decoration: none;
  }
}

/* ══════════════════════════════════════════════════
   CURSOR — DESATIVADO NO MOBILE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .menu-toggle,
  .lang-btn,
  .nav-close {
    cursor: pointer;
  }
}
