/* ============================================================
   style.css — shared base styles for Alex Paak landing
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --ink: #1a1818;
  --ink-2: #393737;
  --mist: #888787;
  --canvas: #f5f4f1;
  --snow: #ffffff;
  --line: rgba(57, 55, 55, 0.08);
  --line-2: rgba(57, 55, 55, 0.14);
  --shadow-lg: 0 4px 30px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; overscroll-behavior-y: none; }

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Custom cursor ---------- */
html { cursor: url('img/pointer/arrowhead-rounded-outline.svg') 5 3, auto; }
a, button, [role="button"], .btn, input, textarea, select, label[for] {
  cursor: url('img/pointer/hand-pointer.svg') 8 1, pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: #fafaf8;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 6px 24px -8px rgba(0,0,0,0.4);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 10px 30px -8px rgba(0,0,0,0.5); }

.btn .arrow { transition: transform .35s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost {
  background: rgba(247,247,247,0.6); color: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 1px 2px rgba(0,0,0,0.03);
}
.btn.ghost:hover { background: rgba(255,255,255,0.9); }

.btn.small { padding: 9px 14px; font-size: 13px; }

.btn.dim {
  background: rgba(57,55,55,0.07);
  color: var(--ink);
  border: none;
  box-shadow: none;
}
.btn.dim:hover {
  background: rgba(57,55,55,0.12);
  box-shadow: none;
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-lg);
  border-radius: 100px;
  width: min(960px, calc(100% - 48px));
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.brand .dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scaleX(-1);
}

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 100px;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.nav-links a:hover { background: rgba(57,55,55,0.05); }

/* hamburger (mobile only) */
.hamb {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--ink);
  color: #fafaf8;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}

.hamb span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), top .25s var(--ease-out), opacity .2s;
}

.hamb span:nth-child(1) { top: 15px; }
.hamb span:nth-child(2) { top: 23px; }

.hamb.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamb.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247,247,247,0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  z-index: 49;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}

.mobile-menu.open { pointer-events: auto; opacity: 1; }

.mobile-menu .inner {
  position: absolute;
  top: 96px; left: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform .45s var(--ease-out) .05s, opacity .35s var(--ease-out) .05s;
}

.mobile-menu.open .inner { transform: translateY(0); opacity: 1; }

.mobile-menu .inner a {
  padding: 18px 22px;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu .inner .cta {
  margin-top: 18px;
  padding: 16px 22px;
  background: var(--ink);
  color: #fafaf8;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.005em;
  border-bottom: 0;
}

/* ---------- Footer ---------- */
footer {
  padding: 28px 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--mist);
}

footer .right { display: flex; gap: 24px; }
footer .right a { transition: color .25s var(--ease); }
footer .right a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav { width: 100%; }
}
