/* ════════════════════════════════════════════
   BENEVOLENT — Landing Page Styles
   ════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --ink:         #1A1612;
  --ink-soft:    #2A241E;
  --ink-2:       #3A3128;
  --paper:       #F2EAD9;
  --paper-deep:  #E8DFC9;
  --paper-card:  #EDE4D2;
  --ember:       #C56A2E;
  --ember-soft:  #D88A4E;
  --ash:         #847468;
  --ash-soft:    #A89A8C;
  --gold:        #A88349;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --container:   1200px;
  --pad-x:       clamp(24px, 6vw, 100px);
  --pad-section: clamp(72px, 10vw, 120px);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

ul[role="list"] { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── UTILITY ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

.section-label {
  margin-bottom: 32px;
  opacity: 0.55;
}

/* ─── ANIMATIONS ─── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s var(--ease-out) forwards;
  }
  .delay-1 { animation-delay: 0.15s; }
  .delay-2 { animation-delay: 0.3s;  }
  .delay-3 { animation-delay: 0.45s; }
  .delay-4 { animation-delay: 0.6s;  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .reveal.delay-1 { transition-delay: 0.1s; }
  .reveal.delay-2 { transition-delay: 0.2s; }
  .reveal.delay-3 { transition-delay: 0.3s; }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes bepPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.18); opacity: 0; }
}


/* ════════════════
   NAV
════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(242, 234, 217, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(26, 22, 18, 0.1);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  transition: color 0.4s ease;
}
.nav.scrolled .nav-logo { color: var(--ink); }

.nav-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  color: var(--paper);
  transition: color 0.4s ease;
}
.nav.scrolled .nav-links { color: var(--ink); }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }


/* ════════════════
   HERO
════════════════ */
.hero {
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px var(--pad-x) 60px;
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - 160px);
  position: relative;
}

.hero-top {
  align-self: flex-start;
  color: var(--ash);
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 40px 0;
}

.hero-mark {
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  color: var(--paper);
}

.hero-wordmark {
  overflow: hidden;
}

.hero-letters {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.8vw, 16px);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  gap: 0.3em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--ember);
}

.hero-bottom {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--ash);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(242, 234, 217, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  width: 1px;
  height: 12px;
  background: var(--ash);
  animation: scrollDot 2s ease-in-out infinite;
}


/* ════════════════
   SECTION DIVIDER (twin arcs — the signature)
════════════════ */
.section-divider {
  width: 100%;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.section-divider svg {
  width: 100%;
  height: 48px;
  max-width: 900px;
  display: block;
  margin: 0 auto;
}

.divider-dark  { background: var(--ink);  color: rgba(242,234,217,0.2); }
.divider-light { background: var(--paper); color: rgba(26,22,18,0.15); }


/* ════════════════
   ABOUT
════════════════ */
.about {
  background: var(--paper);
  padding: var(--pad-section) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.about-etymology {
  position: sticky;
  top: 120px;
}

.etymology-word {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.etymology-plus {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ash);
  margin: 12px 0;
  letter-spacing: 0.1em;
}

.etymology-equals {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ash);
}
.etymology-equals span {
  font-size: 20px;
  opacity: 0.5;
}
.etymology-equals em {
  font-style: italic;
}

.about-text { padding-top: 8px; }

.about-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--ink);
}

.about-text p {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.7;
}
.about-text p:last-child { margin-bottom: 0; }


/* ════════════════
   CONVICTIONS
════════════════ */
.convictions {
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad-section) 0;
}

.convictions .section-label { color: var(--ash); opacity: 1; }

.convictions-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  margin-top: 56px;
}

.conviction-rule {
  width: 1px;
  background: rgba(242,234,217,0.12);
  margin: 0 clamp(24px, 4vw, 56px);
}

.conviction {
  padding: 8px 0;
}

.conviction-mark {
  color: var(--ember);
  font-size: 9px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.conviction h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--paper);
}

.conviction p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--ash-soft);
  line-height: 1.7;
}


/* ════════════════
   PRODUCTS
════════════════ */
.products {
  background: var(--paper-deep);
  padding: var(--pad-section) 0;
}

.products-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: clamp(40px, 6vw, 72px);
  color: var(--ink);
}

.products-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Product card shared */
.product-card {
  background: var(--paper);
  border: 1px solid rgba(26,22,18,0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 12px 48px rgba(26,22,18,0.1);
  transform: translateY(-3px);
}

.product-card-inner {
  padding: clamp(28px, 4vw, 48px);
}

.product-mark-wrap {
  margin-bottom: 32px;
}

.product-mark {
  width: 64px;
  height: 64px;
  color: var(--ink);
}

/* Velith card */
.product-velith { background: var(--ink); color: var(--paper); border-color: rgba(242,234,217,0.08); }
.product-velith .product-name  { color: var(--paper); }
.product-velith .product-desc  { color: var(--ash-soft); }
.product-velith .mono-label    { color: var(--ash); }
.product-velith .product-status { background: rgba(197,106,46,0.2); color: var(--ember-soft); }
.product-velith .velith-mark   { color: var(--paper); }

.product-velith .product-features {
  color: var(--ash-soft);
  border-top: 1px solid rgba(242,234,217,0.1);
  padding-top: 20px;
  margin-top: 20px;
}
.product-velith .product-features li::before { color: var(--ember); }

/* BEP card */
.product-bep { background: var(--paper-card); }

/* BEP animated rings */
.bep-mark {
  width: 64px;
  height: 64px;
  position: relative;
}
.bep-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid var(--ash);
  transform: translate(-50%, -50%);
}
.bep-ring-1 { width: 24px; height: 24px; opacity: 0.8; }
.bep-ring-2 { width: 44px; height: 44px; opacity: 0.45; animation: bepPulse 3s ease-in-out 0.5s infinite; }
.bep-ring-3 { width: 64px; height: 64px; opacity: 0.2; animation: bepPulse 3s ease-in-out 1s infinite; }

/* Product card shared internals */
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(26,22,18,0.06);
  color: var(--ash);
  padding: 5px 10px;
  border-radius: 20px;
}
.product-status-dev {
  background: rgba(168,131,73,0.12);
  color: var(--gold);
}

.product-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}

.product-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 20px;
}

.product-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 14px;
}
.product-desc:last-of-type { margin-bottom: 0; }

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.product-features li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}
.product-features li::before {
  content: '—';
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.5;
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,234,217,0.12);
  gap: 16px;
  flex-wrap: wrap;
}

.btn-notify {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ember);
  color: var(--ember);
  padding: 10px 20px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-notify:hover {
  background: var(--ember);
  color: var(--paper);
}


/* ════════════════
   CONTACT
════════════════ */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: var(--pad-section) 0;
  position: relative;
  overflow: hidden;
}

.contact-bg-mark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 40vw, 540px);
  opacity: 0.04;
  pointer-events: none;
  color: var(--paper);
}
.contact-bg-mark svg { width: 100%; height: auto; }

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact .section-label { color: var(--ash); opacity: 1; }

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(242,234,217,0.1);
  padding-bottom: 32px;
  transition: border-color 0.25s ease;
}
.contact-link:hover { border-bottom-color: var(--ember); }
.contact-link:last-child { border-bottom: none; padding-bottom: 0; }

.contact-link .mono-label { color: var(--ash); }

.contact-link > :last-child {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
  transition: color 0.25s ease;
}
.contact-link:hover > :last-child { color: var(--ember); }


/* ════════════════
   FOOTER
════════════════ */
.footer {
  background: var(--ink-soft);
  color: var(--paper);
  padding: 32px 0;
  border-top: 1px solid rgba(242,234,217,0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-mark {
  width: 28px;
  height: 28px;
  opacity: 0.7;
  color: var(--paper);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ash);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: right;
}


/* ════════════════
   RESPONSIVE
════════════════ */

/* Tablet */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-etymology {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
  }
  .etymology-plus { margin: 0; }
  .etymology-equals { margin-top: 12px; }

  .convictions-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .conviction-rule {
    width: 100%;
    height: 1px;
    margin: 40px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 12px; letter-spacing: 0.2em; color: var(--paper); }

  .nav-toggle { display: flex; z-index: 101; }

  .hero-tagline { font-size: clamp(36px, 9vw, 52px); }

  .contact-bg-mark { display: none; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-copy { align-items: flex-start; text-align: left; }

  .product-footer { flex-direction: column; align-items: flex-start; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-dot { animation: none !important; }
  .bep-ring   { animation: none !important; }
}
