/* GriffTip landing — dark elegant teaser (placeholder identity, no product reveal) */

:root {
  --bg: #0a0a0a;
  --bg-2: #14100c;
  --fg: #f2ede4;
  --fg-muted: #8a8480;
  --accent: #d4a574;
  --accent-2: #b48450;
  --ring: rgba(212, 165, 116, .35);
  --border: rgba(242, 237, 228, .12);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
  --dur: 400ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  isolation: isolate;
}

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

/* ─── Background layers ─────────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-2), var(--bg) 60%);
}

.bg__mesh {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(600px 600px at 20% 30%, rgba(212, 165, 116, .18), transparent 60%),
    radial-gradient(500px 500px at 80% 70%, rgba(180, 132, 80, .14), transparent 60%),
    radial-gradient(400px 400px at 60% 20%, rgba(140, 110, 80, .12), transparent 60%);
  filter: blur(40px);
  animation: mesh 24s var(--ease) infinite alternate;
  will-change: transform, opacity;
}
@keyframes mesh {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1);     opacity: .9; }
  50%  { transform: translate(-4%, 3%) rotate(6deg) scale(1.08); opacity: 1; }
  100% { transform: translate(3%, -2%) rotate(-4deg) scale(1.04); opacity: .85; }
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: .06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bg__spot {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212, 165, 116, .10), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  transition: left 300ms var(--ease), top 300ms var(--ease);
  will-change: left, top;
}

/* ─── Header / nav ──────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  z-index: 10;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  transition: opacity var(--dur) var(--ease);
}
.nav__logo:hover { opacity: .78; }
.nav__logo svg {
  width: 32px;
  height: 32px;
  display: block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.lang-toggle a {
  padding: 4px 6px;
  transition: color var(--dur) var(--ease);
}
.lang-toggle a:hover { color: var(--fg); }
.lang-toggle a.is-active { color: var(--accent); }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 40px;
  text-align: center;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 1.4vw, 14px);
  font-weight: 800;
  font-size: clamp(40px, 10vw, 118px);
  letter-spacing: .04em;
  line-height: .95;
  color: var(--fg);
  margin-bottom: 8px;
}
.wordmark__tm {
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--accent);
  margin-top: .1em;
  letter-spacing: 0;
  opacity: 0;
  animation: fadeIn 900ms var(--ease) .8s forwards;
}
.wordmark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 800ms var(--ease) forwards;
}
.wordmark span:nth-child(1) { animation-delay: .10s; }
.wordmark span:nth-child(2) { animation-delay: .17s; }
.wordmark span:nth-child(3) { animation-delay: .24s; }
.wordmark span:nth-child(4) { animation-delay: .31s; }
.wordmark span:nth-child(5) { animation-delay: .38s; }
.wordmark span:nth-child(6) { animation-delay: .45s; }
.wordmark span:nth-child(7) { animation-delay: .52s; }
.wordmark span:nth-child(8) { animation-delay: .59s; color: var(--accent); }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.tagline {
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: -.005em;
  color: var(--fg);
  opacity: 0;
  animation: fadeIn 900ms var(--ease) .8s forwards;
}
.sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--fg-muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 900ms var(--ease) 1s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── Subscribe form ───────────────────────────────────────────── */
.subscribe {
  width: 100%;
  max-width: 460px;
  opacity: 0;
  animation: fadeIn 900ms var(--ease) 1.2s forwards;
}
.subscribe__label {
  position: absolute;
  left: -9999px;
}
.subscribe__row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.subscribe__row:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, .10);
}
.subscribe__row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  padding: 10px 16px;
  letter-spacing: .01em;
}
.subscribe__row input[type="email"]::placeholder {
  color: var(--fg-muted);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}

.btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--accent);
  color: #1a1a1a;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover  { background: var(--accent-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  vertical-align: -2px;
  margin-left: 8px;
  animation: spin 700ms linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.subscribe__msg {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
  transition: color var(--dur) var(--ease);
}
.subscribe__msg.is-ok   { color: var(--accent); }
.subscribe__msg.is-err  { color: #e07b7b; }

/* ─── Footer ───────────────────────────────────────────────────── */
.foot {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 24px 32px 32px;
  color: var(--fg-muted);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.foot a { transition: color var(--dur) var(--ease); }
.foot a:hover { color: var(--fg); }
.foot__sep { color: var(--border); }

/* ─── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg__mesh { animation: none; }
  .wordmark span, .tagline, .sub, .subscribe { opacity: 1; transform: none; }
}

/* ─── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .nav { padding: 20px 20px; }
  .hero { padding: 16px 20px 32px; gap: 20px; }

  /* Kill the outer pill on mobile — two separate elements stacked */
  .subscribe__row {
    background: transparent;
    border: 0;
    padding: 0;
    gap: 12px;
    flex-direction: column;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .subscribe__row:focus-within { box-shadow: none; }
  .subscribe__row input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .subscribe__row input[type="email"]:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, .10);
  }
  .btn { width: 100%; padding: 14px 22px; font-size: 15px; }

  .foot { padding: 20px 20px 24px; text-align: center; flex-wrap: wrap; }
}
