
:root{
  --accent:#2563eb;--accent-2:#7c3aed;
  --glass: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.8);
  --text:#0f172a;--muted:#334155;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: #0b1020;
  overflow-x:hidden;
}

/* Two stacked video layers for seamless crossfade */
.video-bg{
  position:fixed; inset:0; z-index:-2; pointer-events:none; overflow:hidden;
}
.video-layer{
  position:absolute; top:50%; left:50%;
  width:100vw; height:56.25vw;          /* 16:9 by width */
  min-height:100vh; min-width:177.78vh;  /* cover by height */
  transform:translate(-50%, -50%) scale(1.18); /* <<< universal zoom to hide overlays */
  transition: opacity 300ms linear;
  opacity: 0;
}
.video-layer.active{ opacity: 1; }
.video-dim{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background: radial-gradient(80% 60% at 50% 20%, rgba(0,0,0,.22), rgba(0,0,0,.40));
  mix-blend-mode: multiply;
}

/* Content layout */
.container{
  position:relative; z-index:1; min-height:100vh;
  display:grid; place-items:center; padding: clamp(16px, 4vw, 48px);
}
.card{
  width:min(900px, 92vw);
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,.45));
  border:1px solid var(--glass-border);
  border-radius:28px; padding: clamp(20px, 3.5vw, 38px);
  box-shadow: 0 20px 60px rgba(30, 58, 138, .25);
  backdrop-filter: blur(10px);
}
h1{
  font: 800 clamp(28px, 6vw, 52px) / 1.05 Inter, system-ui;
  margin:0 0 12px; letter-spacing:-.02em;
  color:#f9fafb;
  text-shadow: 0 0 4px rgba(255,255,255,0.6),
               0 0 12px rgba(255,255,255,0.5);
}
.subtitle{margin:0 0 18px; color:var(--muted); font: 500 clamp(14px, 2.8vw, 18px)/1.5 Inter}
.verse{
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(20px, 4.2vw, 32px);
  line-height: 1.45; margin: 6px 0 10px; color:#0b1220;
}
.ref{ color: var(--accent); font-weight: 700; font-family: Inter, system-ui; margin-top:6px }

.actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px }
button{
  appearance:none; border:0; cursor:pointer; border-radius:12px; padding:12px 16px; font-weight:700;
  background: linear-gradient(180deg, #ffffff, #e9e7ff);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18), inset 0 0 0 1px #ffffffbb;
  color:#4338ca; transition: transform .05s ease, box-shadow .2s ease;
}
button:hover{ box-shadow: 0 10px 26px rgba(37, 99, 235, .25), inset 0 0 0 1px #fff }
button:active{ transform: translateY(1px) }
.secondary{ background: linear-gradient(180deg, #ffffff, #eef2ff); color:#1f2937 }

.footer{
  position: fixed; left:0; right:0; bottom:0; z-index:2;
  display:flex; justify-content:center; padding:14px;
}
.twitter-link{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-weight:800; 
  color:white; background: linear-gradient(90deg, var(--accent-2), var(--accent));
  padding:12px 16px; border-radius:999px; box-shadow: 0 10px 24px rgba(124,58,237,.35);
}
.twitter-link svg{width:18px;height:18px; fill:white}

/* Small tweaks for tiny phones */
@media (max-width: 380px){
  .actions button{padding:10px 12px; font-size:14px}
}
