/* =========================================================
   XFERME — Letter to the Community
   Ultra-premium cinematic corporate announcement page
   ========================================================= */

:root{
  --black: #000000;
  --charcoal: #0c0c0d;
  --charcoal-2: #151517;
  --silver: #d8d9db;
  --silver-bright: #f4f5f6;
  --silver-dim: #8b8d92;
  --line: rgba(255,255,255,0.08);
  --glass-bg: rgba(255,255,255,0.035);
  --glass-border: rgba(255,255,255,0.12);
  --glow: rgba(200,205,215,0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 760px;

  /* technical / verification accent — used sparingly for the ledger HUD */
  --tech: #7ef7d0;
  --tech-dim: rgba(126,247,208,0.35);
  --tech-glow: rgba(126,247,208,0.22);
  --tech-mono: 'JetBrains Mono', 'Special Elite', monospace;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body{
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: 'Inter', -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: pan-y; /* lock horizontal panning/swipe on touch devices */
}

/* Lock X axis: nothing on the page may create horizontal scroll */
* { max-width: 100%; }
img, canvas, svg, video { max-width: 100%; }

::selection{
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: #000; }
::-webkit-scrollbar-thumb{ background: linear-gradient(180deg,#3a3a3d,#151517); border-radius: 10px; }

/* =========================================================
   Progress bar
   ========================================================= */
#progress-bar{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #6b6d72, #e8e9eb, #6b6d72);
  z-index: 9999;
  box-shadow: 0 0 8px rgba(230,230,235,0.6);
  transition: width 0.05s linear;
}

/* =========================================================
   Ambient canvas / noise / light rays
   ========================================================= */
#particle-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.noise-overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 1.4s steps(4) infinite;
}
@keyframes noise-shift{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(-2%,1%); }
}

.light-rays{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.light-rays span{
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(210,212,220,0.10), transparent);
  filter: blur(6px);
  animation: ray-drift 22s ease-in-out infinite;
}
.light-rays span:nth-child(1){ left: 12%; animation-delay: 0s; width: 3px; }
.light-rays span:nth-child(2){ left: 38%; animation-delay: -6s; width: 1.5px; }
.light-rays span:nth-child(3){ left: 64%; animation-delay: -11s; width: 2.5px; }
.light-rays span:nth-child(4){ left: 86%; animation-delay: -16s; width: 2px; }
@keyframes ray-drift{
  0%,100%{ transform: translateX(0) rotate(4deg); opacity: 0.5; }
  50%{ transform: translateX(40px) rotate(6deg); opacity: 1; }
}

/* =========================================================
   Global technical layer — ties the hero ledger theme to the
   whole page: a faint schematic grid + a slow full-page
   scanline sweep, sitting behind all content.
   ========================================================= */
.global-tech-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(126,247,208,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,247,208,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,0,0,0.85), transparent 80%);
}
.global-scanline{
  position: fixed;
  left: 0; right: 0;
  top: -25%;
  height: 30%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(126,247,208,0.045), transparent);
  animation: global-scan 14s linear infinite;
}
@keyframes global-scan{
  0%{ top: -30%; }
  100%{ top: 130%; }
}

/* =========================================================
   Metallic / Chrome text
   ========================================================= */
.chrome-text{
  background: linear-gradient(110deg,
    #6c6d70 0%,
    #d9dade 18%,
    #f7f8fa 32%,
    #9a9ba0 45%,
    #cfd0d4 58%,
    #6c6d70 72%,
    #eceef0 86%,
    #8a8b8f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: chrome-sheen 9s ease-in-out infinite;
  text-shadow: 0 0 24px rgba(255,255,255,0.08);
}
@keyframes chrome-sheen{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

.shine{
  position: relative;
  display: inline-block;
}
.shine::after{
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shine-pass 6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes shine-pass{
  0%{ left: -150%; }
  40%{ left: 160%; }
  100%{ left: 160%; }
}

/* =========================================================
   Nav
   ========================================================= */
.glass-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(6,6,7,0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(126,247,208,0.08);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}
.nav-brand{
  font-family: 'Cinzel', serif;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  color: var(--silver-bright);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(220,222,228,0.35), 0 0 0 2px rgba(126,247,208,0.15);
}
.nav-right{
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links{
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}

/* =========================================================
   Language switch (EN / ES)
   ========================================================= */
.lang-switch{
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.lang-btn{
  border: none;
  background: none;
  color: var(--silver-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lang-btn.is-active{
  color: #0a0a0b;
  background: linear-gradient(120deg, #cfd0d4, #f4f5f6, #9a9ba0);
  box-shadow: 0 0 14px rgba(220,222,228,0.35);
  font-weight: 600;
}
.lang-btn:not(.is-active):hover{ color: var(--silver-bright); }
.nav-links a{
  color: var(--silver-dim);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after{
  content:"";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tech), transparent);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover{ color: var(--silver-bright); }
.nav-links a:hover::after{ width: 100%; }

#nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
#nav-toggle span{
  display: block;
  width: 100%;
  height: 1px;
  background: var(--silver-bright);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
#nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
#nav-toggle.is-open span:nth-child(2){ opacity: 0; }
#nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero-section{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 2;
  overflow: hidden;
}
.hero-glow{
  position: absolute;
  top: 20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(180,183,192,0.14), rgba(0,0,0,0) 65%);
  filter: blur(10px);
  animation: pulse-glow 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow{
  0%,100%{ opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%{ opacity: 1; transform: translate(-50%,-50%) scale(1.08); }
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-eyebrow{
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--silver-dim);
  margin-bottom: 26px;
  text-transform: uppercase;
  opacity: 0;
}
.hero-title{
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 30px;
}
.tw-line{
  display: block;
  white-space: pre-wrap;
}
.tw-line::after{
  content: "";
}
.hero-sub{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--silver-dim);
  max-width: 620px;
  margin: 0 auto;
  opacity: 0;
}

/* typewriter cursor — classic mechanical block caret */
.typing-cursor{
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--silver-bright);
  box-shadow: 0 0 10px rgba(255,255,255,0.55);
  animation: blink-cursor 0.55s steps(1) infinite;
}
@keyframes blink-cursor{
  0%,50%{ opacity: 1; }
  50.01%,100%{ opacity: 0; }
}

/* per-character mechanical "key strike" punch-in */
@keyframes key-strike{
  0%{ opacity: 0; transform: translateY(-1px) scale(1.15); text-shadow: 0 0 6px rgba(255,255,255,0.5); }
  60%{ opacity: 1; transform: translateY(0.5px) scale(0.98); }
  100%{ opacity: 1; transform: translateY(0) scale(1); text-shadow: none; }
}
.tw-char{
  display: inline-block;
  white-space: pre-wrap; /* preserve space-character width so words don't run together while typing */
  animation: key-strike 0.09s ease-out;
}

/* =========================================================
   Hero — Capital Return Payment Confirmation panel
   ========================================================= */
.hero-payment-panel{
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 44px auto 0;
  padding: 34px 38px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 24px 70px rgba(0,0,0,0.5),
    0 0 50px rgba(200,200,210,0.05);
}
.payment-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0b;
  background: linear-gradient(120deg, #cfd0d4, #f4f5f6, #9a9ba0);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(220,222,228,0.25);
  margin-bottom: 20px;
}
.payment-badge i{ font-size: 0.85rem; }
.payment-text{
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--silver);
  font-weight: 300;
  margin: 0 0 24px;
  text-align: left;
}
.payment-id-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.payment-id{
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--silver-bright);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 8px 6px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease);
}
.payment-id:hover{
  background: linear-gradient(120deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border-color: rgba(230,230,235,0.4);
  box-shadow: 0 0 16px rgba(220,222,228,0.2);
  transform: translateY(-2px);
}
.payment-footnote{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--silver-dim);
  text-align: left;
  margin: 0;
}

/* =========================================================
   Payment batches — groups the ledger into clearly labeled
   "First List" / "Second List" (and any future batches),
   so new confirmations never overwrite or blend into
   previously published lists.
   ========================================================= */
.payment-batch{
  margin-bottom: 26px;
}
.payment-batch:last-of-type{ margin-bottom: 22px; }
.payment-batch-header{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--glass-border);
}
.payment-batch-index{
  font-family: var(--tech-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a0a0b;
  background: linear-gradient(120deg, #cfd0d4, #f4f5f6, #9a9ba0);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.payment-batch-label{
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-bright);
}
.payment-batch-count{
  font-family: var(--tech-mono);
  font-size: 0.68rem;
  color: var(--silver-dim);
  letter-spacing: 0.04em;
}
.payment-batch-badge{
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #04120c;
  background: var(--tech);
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 0 12px var(--tech-glow);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse{
  0%,100%{ box-shadow: 0 0 8px var(--tech-glow); }
  50%{ box-shadow: 0 0 18px rgba(126,247,208,0.55); }
}

/* the newest batch gets its own subtle highlighted frame so it
   visually reads as "new", without ever touching/removing the
   first list above it */
.payment-batch-new{
  position: relative;
  padding: 16px 16px 2px;
  margin-left: -16px;
  margin-right: -16px;
  border: 1px solid rgba(126,247,208,0.28);
  border-radius: 14px;
  background: rgba(126,247,208,0.035);
}
.payment-batch-new .payment-batch-header{ border-bottom-color: rgba(126,247,208,0.25); }
.payment-batch-new .payment-batch-index{
  background: linear-gradient(120deg, #9ff3d8, #d8fbe9, #7ef7d0);
}

@media (max-width: 600px){
  .payment-batch-new{ margin-left: -10px; margin-right: -10px; padding: 14px 10px 2px; }
}

@media (max-width: 600px){
  .hero-payment-panel{ padding: 26px 22px; }
  .payment-id-grid{ grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* =========================================================
   Hero — TECHNICAL LEDGER upgrade
   HUD corner brackets, scanline sweep, grid backdrop,
   verification header, animated stat counters, monospace IDs.
   ========================================================= */
.tech-ledger{
  position: relative;
  overflow: hidden;
  border-color: rgba(126,247,208,0.22);
  background:
    radial-gradient(circle at 15% 0%, rgba(126,247,208,0.06), transparent 55%),
    var(--glass-bg);
  box-shadow:
    0 0 0 1px rgba(126,247,208,0.05) inset,
    0 24px 70px rgba(0,0,0,0.55),
    0 0 60px rgba(126,247,208,0.06);
}

/* HUD corner brackets */
.ledger-corner{
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--tech);
  opacity: 0.65;
  filter: drop-shadow(0 0 6px var(--tech-glow));
  pointer-events: none;
  z-index: 3;
}
.ledger-corner-tl{ top: 10px; left: 10px; border-right: none; border-bottom: none; }
.ledger-corner-tr{ top: 10px; right: 10px; border-left: none; border-bottom: none; }
.ledger-corner-bl{ bottom: 10px; left: 10px; border-right: none; border-top: none; }
.ledger-corner-br{ bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* faint schematic grid backdrop */
.ledger-grid-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(126,247,208,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,247,208,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 20%, rgba(0,0,0,0.9), transparent 75%);
}

/* scanning sweep line across the whole ledger panel */
.ledger-scanline{
  position: absolute;
  left: 0; right: 0;
  top: -20%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(126,247,208,0.09), transparent);
  pointer-events: none;
  z-index: 1;
  animation: ledger-scan 5.5s linear infinite;
}
@keyframes ledger-scan{
  0%{ top: -40%; }
  100%{ top: 120%; }
}

.ledger-header{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(126,247,208,0.18);
}
.ledger-header-id{
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--tech-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--tech-dim);
  text-transform: uppercase;
}
.ledger-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 8px var(--tech-glow);
  animation: ledger-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ledger-pulse{
  0%,100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.35; transform: scale(0.7); }
}
.ledger-status{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--tech-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tech);
  padding: 5px 12px;
  border: 1px solid rgba(126,247,208,0.35);
  border-radius: 999px;
  background: rgba(126,247,208,0.06);
}
.ledger-status i{ font-size: 0.75rem; }

.ledger-stats{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 6px 0 26px;
  padding: 18px 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ledger-stat{
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ledger-stat-value{
  font-family: var(--tech-mono);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--silver-bright);
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(126,247,208,0.25);
}
.ledger-stat-static{ color: var(--tech); }
.ledger-stat-label{
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
  text-transform: uppercase;
}

/* upgrade the badge to feel like a system status chip */
.tech-ledger .payment-badge{
  position: relative;
  z-index: 2;
  background: linear-gradient(120deg, #1a2b26, #0d1512);
  color: var(--tech);
  border: 1px solid rgba(126,247,208,0.4);
  box-shadow: 0 0 22px rgba(126,247,208,0.18);
}
.tech-ledger .payment-text{ position: relative; z-index: 2; }
.tech-ledger .payment-footnote{ position: relative; z-index: 2; }

/* monospace verified-ID ledger grid */
.tech-ledger .payment-id-grid{
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.tech-ledger .payment-id{
  font-family: var(--tech-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--silver-bright);
  background: rgba(126,247,208,0.03);
  border: 1px solid rgba(126,247,208,0.16);
  position: relative;
}
.tech-ledger .payment-id i{
  font-size: 0.62rem;
  color: var(--tech);
  filter: drop-shadow(0 0 4px var(--tech-glow));
}
.tech-ledger .payment-id:hover{
  background: linear-gradient(120deg, rgba(126,247,208,0.14), rgba(126,247,208,0.02));
  border-color: rgba(126,247,208,0.55);
  box-shadow: 0 0 18px rgba(126,247,208,0.28);
  transform: translateY(-2px);
}

@media (max-width: 600px){
  .ledger-header{ flex-direction: column; align-items: flex-start; }
  .ledger-stats{ grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 2px; }
  .ledger-stat-value{ font-size: 1.2rem; }
}

.scroll-indicator{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: var(--silver-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 2;
}
.scroll-mouse{
  width: 24px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  backdrop-filter: blur(6px);
}
.scroll-dot{
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--silver-bright);
  animation: scroll-dot-move 1.8s ease-in-out infinite;
}
@keyframes scroll-dot-move{
  0%{ transform: translateY(0); opacity: 1; }
  60%{ transform: translateY(12px); opacity: 0.2; }
  100%{ transform: translateY(0); opacity: 0; }
}
.scroll-label{
  font-size: 0.65rem;
  letter-spacing: 0.3em;
}

/* =========================================================
   Sections / layout
   ========================================================= */
main{
  position: relative;
  z-index: 2;
}
section{
  position: relative;
  padding: 90px 24px;
  display: flex;
  justify-content: center;
}
.section-header{
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto 70px;
}

.section-title{
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  text-align: center;
}

.hairline{
  width: 90px;
  height: 1px;
  margin: 26px auto;
  background: linear-gradient(90deg, transparent, var(--silver-dim), transparent);
}

/* =========================================================
   Glass panels
   ========================================================= */
.glass-panel{
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 30px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(200,200,210,0.03);
  padding: 52px 44px;
  overflow: hidden;
}
.glass-panel::before{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;
}
.glass-panel::after{
  content:"";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 22px;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.glass-panel:hover::after{ opacity: 1; }

/* =========================================================
   Technical panel treatment — applied to every glass-panel
   across the site so the ledger/HUD language established in
   the hero carries through the whole page.
   ========================================================= */
.tech-panel{
  border-color: rgba(126,247,208,0.16);
  background:
    radial-gradient(circle at 85% 0%, rgba(126,247,208,0.045), transparent 55%),
    var(--glass-bg);
  box-shadow:
    0 0 0 1px rgba(126,247,208,0.04) inset,
    0 30px 80px rgba(0,0,0,0.55),
    0 0 50px rgba(126,247,208,0.05);
}
.tech-panel-tag{
  display: inline-block;
  position: relative;
  z-index: 2;
  font-family: var(--tech-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--tech-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid rgba(126,247,208,0.22);
  border-radius: 999px;
  background: rgba(126,247,208,0.04);
}
.tech-panel .letter-p,
.tech-panel .hairline,
.tech-panel .section-title,
.tech-panel .letter-salutation,
.tech-panel .signature-line,
.tech-panel .signature-name,
.tech-panel .letter-toolbar,
.tech-panel .share-menu,
.tech-panel .toolbar-note,
.tech-panel .signature-seal{
  position: relative;
  z-index: 2;
}
.timeline-card.tech-panel{
  padding: 30px 32px;
}
.timeline-card.tech-panel .ledger-corner{
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.title-panel{ text-align: center; }
.letter-salutation{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--silver-bright);
}

/* =========================================================
   Letter toolbar — Download / Share
   ========================================================= */
.letter-toolbar{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
  position: relative;
}
.toolbar-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--tech-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-bright);
  background: rgba(126,247,208,0.03);
  border: 1px solid rgba(126,247,208,0.22);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease), border-color 0.3s var(--ease);
}
.toolbar-btn i{ font-size: 0.85rem; }
.toolbar-btn:hover{
  background: linear-gradient(120deg, rgba(126,247,208,0.14), rgba(126,247,208,0.02));
  border-color: rgba(126,247,208,0.5);
  box-shadow: 0 0 26px rgba(126,247,208,0.22);
  transform: translateY(-2px);
}
.toolbar-btn:active{ transform: translateY(0); }
.toolbar-btn.is-loading{
  opacity: 0.7;
  pointer-events: none;
}
.toolbar-btn.is-loading i{
  animation: spin-icon 0.9s linear infinite;
}
@keyframes spin-icon{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.toolbar-note{
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--silver-dim);
  min-height: 1.2em;
  margin: 14px 0 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.toolbar-note.is-visible{ opacity: 1; }

.share-menu{
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  background: rgba(10,10,11,0.85);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(220,222,228,0.08);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.share-menu.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.share-option{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--silver);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.share-option i{ width: 18px; color: var(--silver-dim); }
.share-option:hover{
  background: rgba(255,255,255,0.06);
  color: var(--silver-bright);
}
.share-option:hover i{ color: var(--silver-bright); }

@media (max-width: 480px){
  .toolbar-btn{ padding: 11px 18px; font-size: 0.72rem; }
  .letter-toolbar{ gap: 12px; }
}

.letter-panel{ text-align: left; }
.letter-p{
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--silver);
  margin: 0 0 26px;
  font-weight: 400;
}
.letter-p:last-child{ margin-bottom: 0; }
.highlight-p{
  color: var(--silver-bright);
  border-left: 2px solid rgba(126,247,208,0.5);
  padding-left: 18px;
  font-weight: 400;
}
.thankyou-p{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  color: var(--silver-bright);
  margin-top: 40px;
}

/* Typewriter reveal target text (built by JS) */
[data-typewriter]{
  min-height: 1em;
  font-family: 'Special Elite', 'Cormorant Garamond', serif;
  letter-spacing: 0.01em;
}
[data-typewriter] .tw-cursor{
  display: inline-block;
  width: 0.5em;
  height: 1em;
  vertical-align: -0.12em;
  margin-left: 3px;
  background: var(--silver-bright);
  box-shadow: 0 0 10px rgba(255,255,255,0.55);
  animation: blink-cursor 0.55s steps(1) infinite;
}

/* headings keep their premium display fonts, not the typewriter font */
h1[data-typewriter], h2[data-typewriter], h3[data-typewriter],
.section-title[data-typewriter]{
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}
.letter-salutation[data-typewriter]{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.thankyou-p[data-typewriter]{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.signature-line[data-typewriter],
.signature-name[data-typewriter]{
  font-family: 'Cormorant Garamond', serif;
}
.signature-name[data-typewriter]{
  font-family: 'Cinzel', serif;
}

[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline-section{ flex-direction: column; align-items: center; padding-top: 100px; }
.timeline{
  position: relative;
  width: 100%;
  max-width: 900px;
  padding-left: 40px;
}
.timeline-line{
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,0.10);
}
.timeline-line-fill{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--tech), #cfd0d4 60%, #6c6d70);
  box-shadow: 0 0 12px rgba(126,247,208,0.4);
  transition: height 0.2s linear;
}
.timeline-item{
  position: relative;
  margin-bottom: 56px;
}
.timeline-item:last-child{ margin-bottom: 0; }
.timeline-marker{
  position: absolute;
  left: -40px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2d, #0a0a0b);
  border: 1px solid rgba(126,247,208,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--tech);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.9), 0 0 18px rgba(126,247,208,0.18);
  z-index: 2;
}
.marker-highlight{
  background: radial-gradient(circle, #1c332c, #0a1512);
  border-color: rgba(126,247,208,0.55);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.9), 0 0 26px rgba(126,247,208,0.5);
}
.timeline-card{
  padding: 30px 32px;
  max-width: 100%;
}
.timeline-tag{
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tech-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--tech-dim);
  border: 1px solid rgba(126,247,208,0.28);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  background: rgba(126,247,208,0.04);
}
.timeline-tag::before{
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 6px var(--tech-glow);
}
.tag-highlight{
  color: #0a0a0b;
  background: linear-gradient(120deg, #9ff3d8, #d8fbe9, #7ef7d0);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(126,247,208,0.35);
}
.tag-highlight::before{ background: #0a0a0b; box-shadow: none; }
.timeline-card h3{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--silver-bright);
  margin: 0 0 10px;
}
.timeline-card p{
  font-size: 0.95rem;
  color: var(--silver-dim);
  margin: 0;
}
.card-highlight{
  border-color: rgba(126,247,208,0.4);
  box-shadow: 0 0 0 1px rgba(126,247,208,0.08) inset, 0 30px 90px rgba(0,0,0,0.6), 0 0 60px rgba(126,247,208,0.16);
}

/* =========================================================
   Closing / Signature
   ========================================================= */
.closing-panel, .signature-panel{ text-align: center; }
.signature-line{
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--silver);
  margin: 0 0 6px;
}
.signature-name{
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}
.signature-seal{
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 34px auto 0;
  border-radius: 50%;
  border: 1px solid rgba(126,247,208,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--silver-bright);
  background: radial-gradient(circle, rgba(126,247,208,0.08), transparent 70%);
  box-shadow: 0 0 30px rgba(126,247,208,0.18);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px 80px;
  color: var(--silver-dim);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.footer-status{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--tech-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tech-dim);
  padding: 6px 16px;
  border: 1px solid rgba(126,247,208,0.22);
  border-radius: 999px;
  background: rgba(126,247,208,0.04);
  margin: 0 0 22px;
}
.footer-status .ledger-dot{ width: 6px; height: 6px; }
.footer-sub{
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  margin-top: 8px;
  text-transform: uppercase;
}

/* =========================================================
   Back to top
   ========================================================= */
#back-to-top{
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(126,247,208,0.3);
  background: rgba(10,10,11,0.55);
  backdrop-filter: blur(14px);
  color: var(--silver-bright);
  cursor: pointer;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#back-to-top.visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover{
  box-shadow: 0 0 24px rgba(126,247,208,0.35);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px){
  #nav-toggle{ display: flex; }
  .nav-right{ gap: 14px; }
  .lang-btn{ padding: 6px 10px; font-size: 0.65rem; }
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 26px 0 32px;
    background: rgba(6,6,7,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav-links.is-open{
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }
  .glass-panel{ padding: 36px 24px; }
  .timeline{ padding-left: 32px; }
  .timeline-marker{ left: -32px; width: 20px; height: 20px; font-size: 0.6rem; }
  .hero-section{ padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
