/* ==========================================================
   JURISAL OÜ// — Homepage Styles
   ========================================================== */

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: 140px 36px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta span::before {
  content: '◆ ';
  color: var(--blood);
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 17vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .row:nth-child(1) span { animation-delay: 0.1s; }
.hero h1 .row:nth-child(2) span { animation-delay: 0.25s; }
.hero h1 .row:nth-child(3) span { animation-delay: 0.4s; }
@keyframes rise { to { transform: translateY(0); } }

.hero h1 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--blood);
  font-size: 0.85em;
  letter-spacing: -0.04em;
}

.hero h1 .glitch {
  position: relative;
  display: inline-block;
}
.hero h1 .glitch::before,
.hero h1 .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0.8;
  pointer-events: none;
}
.hero h1 .glitch::before {
  color: #00f0ff;
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.hero h1 .glitch::after {
  color: var(--blood);
  animation: glitch2 4s infinite;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 2px); }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(2px, -1px); }
  94% { transform: translate(-2px, 2px); }
  96% { transform: translate(1px, -2px); }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  align-items: end;
  margin-top: 60px;
}
.hero-bottom .blurb {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}
.hero-bottom .blurb b {
  background: var(--blood);
  color: #fff;
  padding: 0 4px;
  font-weight: 500;
}

.hero-stats {
  text-align: right;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.hero-stats .num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 1;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .num em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--blood);
  font-size: 0.6em;
}

/* ========== TICKER ========== */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
  padding: 20px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: scroll 35s linear infinite;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.05em;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.ticker-track span::after {
  content: '✦';
  color: var(--blood);
  font-size: 20px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ========== MANIFESTO ========== */
.manifesto {
  padding: 160px 36px;
  position: relative;
}
.manifesto-text {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 1200px;
}
.manifesto-text .word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.manifesto-text .word.lit { opacity: 1; }
.manifesto-text .accent { color: var(--blood); font-style: italic; }

/* ========== VERTICAL SERVICES ========== */
.services {
  padding: 120px 36px;
  border-top: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 1fr;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  transition: padding 0.4s ease, background 0.4s ease;
  overflow: hidden;
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blood) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.service-row:hover::before { opacity: 0.15; }
.service-row:hover { padding-left: 24px; padding-right: 24px; }
.service-row .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.5;
  letter-spacing: 0.15em;
}
.service-row .name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.01em;
  line-height: 1;
}
.service-row .desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.7;
  max-width: 480px;
  padding-left: 40px;
}
.service-row .meta {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
.service-row .meta b {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--blood);
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  margin-bottom: 4px;
}

/* ========== STATS BLOCK ========== */
.stats {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 60px 30px;
  position: relative;
}
.stat .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-bottom: 20px;
}
.stat .value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: opacity 0.1s ease;
}
.stat .value em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--blood);
  font-size: 0.5em;
  vertical-align: super;
}
.stat .sub {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 14px;
  line-height: 1.4;
}

/* ========== BRANDS GRID (homepage) ========== */
.brands {
  padding: 120px 36px;
  border-top: 1px solid var(--line);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.brand-card {
  background: var(--bg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.brand-card:hover { background: var(--ash); }
.brand-card .logo {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.brand-card .vert {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-bottom: 8px;
}
.brand-card .payout {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--blood);
}
.brand-card .payout small {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  opacity: 0.5;
  letter-spacing: 0.1em;
}

/* ========== HOW IT WORKS ========== */
.how {
  padding: 160px 36px;
  border-top: 1px solid var(--line);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.how-step {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}
.how-step .step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 140px;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  margin-bottom: 20px;
}
.how-step:nth-child(2) .step-num {
  color: transparent;
  -webkit-text-stroke: 1px var(--blood);
}
.how-step h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.how-step p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 320px;
}

/* ========== QUOTE ========== */
.quote {
  padding: 200px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.quote blockquote {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 1100px;
  margin: 0 auto;
}
.quote blockquote em {
  color: var(--blood);
  font-style: italic;
}
.quote .cite {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: 50px;
  opacity: 0.6;
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 160px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.cta-section .skull {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(90px, 22vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--blood) 0%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
}
.cta-section .skull em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  -webkit-text-fill-color: var(--ink);
}
.cta-section p {
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 40px;
  opacity: 0.75;
  line-height: 1.5;
}

/* ========== HOMEPAGE MOBILE ========== */
@media (max-width: 1100px) {
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .hero-bottom .hero-cta { grid-column: 1 / -1; justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero { padding: 110px 22px 50px; }
  .hero-meta { font-size: 9px; margin-bottom: 30px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-bottom .blurb { max-width: 100%; }
  .hero-stats { text-align: left; }
  .hero-stats .num { font-size: 44px; }

  .ticker { padding: 14px 0; }
  .ticker-track { font-size: 26px; gap: 40px; }
  .ticker-track span { gap: 40px; }

  .manifesto { padding: 100px 22px; }
  .services { padding: 80px 22px; }

  .service-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 6px 16px;
    padding: 22px 0;
  }
  .service-row:hover { padding-left: 12px; padding-right: 12px; }
  .service-row .num {
    grid-row: 1;
    align-self: center;
  }
  .service-row .name {
    grid-row: 1;
    grid-column: 2;
    font-size: 36px;
  }
  .service-row .desc {
    grid-column: 1 / -1;
    padding-left: 56px;
    font-size: 12px;
    display: block;
    max-width: 100%;
  }
  .service-row .meta {
    display: none;
  }

  .brands { padding: 80px 22px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card { min-height: 180px; padding: 28px 20px; }
  .brand-card .logo { font-size: 26px; }

  .how { padding: 100px 22px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .how-step .step-num { font-size: 100px; }

  .quote { padding: 120px 22px; }
  .quote blockquote { font-size: clamp(24px, 5vw, 40px); }

  .cta-section { padding: 100px 22px; }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 18px 40px;
    min-height: auto;
  }
  .hero-meta {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
  }

  .ticker-track { font-size: 20px; gap: 30px; }
  .ticker-track span { gap: 30px; }
  .ticker-track span::after { font-size: 14px; }

  .manifesto { padding: 70px 18px; }
  .services { padding: 60px 18px; }

  .service-row {
    grid-template-columns: 32px 1fr;
    padding: 20px 0;
  }
  .service-row .name { font-size: 28px; }
  .service-row .desc { padding-left: 48px; font-size: 11px; line-height: 1.5; }

  .stat { padding: 36px 20px; }
  .stat .label { font-size: 9px; margin-bottom: 12px; }
  .stat .sub { font-size: 11px; }

  .brands { padding: 60px 18px; }
  .brand-card { min-height: 150px; padding: 22px 16px; }
  .brand-card .logo { font-size: 22px; }
  .brand-card .payout { font-size: 22px; }
  .brand-card .vert { font-size: 9px; }

  .how { padding: 70px 18px; }
  .how-step .step-num { font-size: 80px; }
  .how-step h3 { font-size: 22px; }

  .quote { padding: 80px 18px; }
  .quote .cite { font-size: 10px; letter-spacing: 0.18em; margin-top: 32px; }

  .cta-section { padding: 70px 18px; }
  .cta-section p { font-size: 14px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
}
