/* ====== THE GRIND CLERK — Global Styles ====== */

:root {
  --black: #0B0B0B;
  --surface-1: #131210;
  --surface-2: #1C1A17;
  --surface-3: #252320;
  --muted: #5A5550;
  --muted-light: #8A8580;
  --brass: #C8932E;
  --brass-light: #DEAE4A;
  --brass-dim: #8A6520;
  --stamp: #C43D2E;
  --cream: #F0EBE0;
  --cream-dim: #C8C3B8;
  --cream-muted: #918D85;
  --success: #4A9E5C;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--black); }
a { color: inherit; text-decoration: none; }

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,11,11,0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(200,147,46,0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--brass);
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none;
}

.nav-logo-the {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--cream-muted);
}

.nav-beta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  border: 1px solid var(--brass-dim);
  padding: 0.2rem 0.6rem;
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200,147,46,0.05) 0%, transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(200,147,46,0.02) 39px, rgba(200,147,46,0.02) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(200,147,46,0.02) 39px, rgba(200,147,46,0.02) 40px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--brass-dim);
  padding: 0.25rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  transform: rotate(-2deg);
  margin-bottom: 2.5rem;
  position: relative;
}

.hero-stamp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: 0.04em;
  line-height: 0.85;
  position: relative;
  margin-bottom: 2.5rem;
}

.hero-title .t-the {
  font-size: 0.28em;
  letter-spacing: 0.45em;
  display: block;
  color: var(--cream-muted);
  margin-bottom: 0.25em;
}

.hero-title .t-grind { display: block; color: var(--cream); }
.hero-title .t-clerk { display: block; color: var(--brass); }

.hero-line {
  width: 50px; height: 1px;
  background: var(--brass);
  margin-bottom: 2rem;
}

.hero-claim {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--cream-dim);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 3rem;
  position: relative;
}

.hero-claim strong {
  color: var(--cream);
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--black);
  background: var(--brass);
  border: 2px solid var(--brass);
  padding: 0.85rem 2.8rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,147,46,0.2);
}

.hero-cta svg { width: 18px; height: 18px; }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
  position: relative;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}

.hero-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--brass-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 24px; }
  50% { opacity: 0.8; height: 36px; }
}

/* ====== SECTION BASICS ====== */
.section {
  padding: 7rem 2rem;
  position: relative;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--brass-dim), transparent);
  max-width: 160px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.section-text {
  font-size: 0.95rem;
  color: var(--cream-dim);
  max-width: 52ch;
  line-height: 1.8;
  font-weight: 300;
}

/* ====== WHAT IS IT ====== */
.what-section {
  border-top: 1px solid var(--surface-3);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  margin-top: 3.5rem;
  align-items: start;
}

.what-points {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.what-point {
  padding-left: 1.25rem;
  border-left: 2px solid var(--surface-3);
  transition: border-color 0.3s;
}

.what-point:hover { border-color: var(--brass-dim); }

.what-point-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
}

.what-point-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.what-point-text {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.7;
}

/* Telegram Mini Mock */
.tg-mini {
  background: #0E1621;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1C2938;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: sticky;
  top: 80px;
}

.tg-mini-header {
  background: #17212B;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #1C2938;
}

.tg-mini-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--black);
}

.tg-mini-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #E8E8E8;
}

.tg-mini-status {
  font-size: 0.65rem;
  color: #6D7F8F;
}

.tg-mini-body {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tg-m {
  max-width: 88%;
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.tg-m.u {
  align-self: flex-end;
  background: #2B5278;
  color: #E8E8E8;
  border-bottom-right-radius: 3px;
}

.tg-m.b {
  align-self: flex-start;
  background: #182533;
  color: #D0D0D0;
  border-bottom-left-radius: 3px;
}

.tg-m .mc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brass-light);
  display: block;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.tg-m .lb {
  font-weight: 600;
  color: #E8E8E8;
  display: block;
  margin-bottom: 0.15rem;
}

.tg-m .badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.1rem 0.5rem;
  background: rgba(200,147,46,0.12);
  border: 1px solid rgba(200,147,46,0.25);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--brass-light);
}

.tg-mini-input {
  padding: 0.5rem 0.7rem;
  border-top: 1px solid #1C2938;
}

.tg-mini-input-field {
  width: 100%;
  background: #17212B;
  border: none;
  border-radius: 18px;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #5A6A78;
}

/* ====== BETA DETAILS ====== */
.beta-section {
  background: var(--surface-1);
  border-top: 1px solid var(--surface-3);
  border-bottom: 1px solid var(--surface-3);
}

.beta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--surface-3);
}

.beta-card {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--surface-3);
  transition: background 0.3s;
}

.beta-card:last-child { border-right: none; }
.beta-card:hover { background: var(--surface-2); }

.beta-card-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brass);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}

.beta-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.beta-card-text {
  font-size: 0.85rem;
  color: var(--cream-muted);
  line-height: 1.7;
}

/* ====== FINAL CTA ====== */
.final {
  text-align: center;
  padding: 10rem 2rem;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,147,46,0.05) 0%, transparent 45%);
  pointer-events: none;
}

.final-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  position: relative;
}

.final-title span { color: var(--brass); }

.final-text {
  font-size: 1rem;
  color: var(--cream-dim);
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto 2.5rem;
  position: relative;
  line-height: 1.8;
}

.final-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--black);
  background: var(--brass);
  border: 2px solid var(--brass);
  padding: 0.8rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
}

.final-cta:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,147,46,0.2);
}

.final-cta svg { width: 18px; height: 18px; }

.final-note {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 1.25rem;
  position: relative;
}

/* ====== FOOTER ====== */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--surface-3);
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--brass-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--brass); }

.footer-disclaimer {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 1.25rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== ANIMATIONS ====== */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stamp, .hero-title, .hero-line, .hero-claim, .hero-cta, .hero-sub {
  animation: heroFade 0.8s ease-out both;
}
.hero-stamp { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.3s; }
.hero-line { animation-delay: 0.5s; }
.hero-claim { animation-delay: 0.6s; }
.hero-cta { animation-delay: 0.75s; }
.hero-sub { animation-delay: 0.9s; }

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== LEGAL PAGES ====== */
.legal-page {
  padding-top: 80px;
  min-height: 100vh;
}

.legal-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.legal-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.legal-section .legal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal-section .legal-subtitle::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--brass-dim), transparent);
  max-width: 160px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--cream-dim);
}

.legal-section p {
  font-size: 0.88rem;
  color: var(--cream-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.legal-section ul li {
  font-size: 0.88rem;
  color: var(--cream-muted);
  line-height: 1.85;
  padding-left: 1.25rem;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--brass-dim);
}

.legal-section a {
  color: var(--brass);
  border-bottom: 1px solid var(--brass-dim);
  transition: border-color 0.3s;
}

.legal-section a:hover {
  border-bottom-color: var(--brass);
}

.legal-section strong {
  color: var(--cream-dim);
  font-weight: 500;
}

.legal-section .contact-block {
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--cream-dim);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 800px) {
  .what-grid { grid-template-columns: 1fr; }
  .tg-mini { position: static; max-width: 380px; margin: 0 auto; order: -1; }
  .beta-grid { grid-template-columns: 1fr; }
  .beta-card { border-right: none; border-bottom: 1px solid var(--surface-3); }
  .beta-card:last-child { border-bottom: none; }
}

@media (max-width: 550px) {
  .section { padding: 5rem 1.25rem; }
  .nav { padding: 0 1.25rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .hero-title { font-size: clamp(3.5rem, 16vw, 6rem); }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }
  .legal-section { padding: 3rem 1.25rem 4rem; }
}
