:root{
  --brand:#E33B3B;             /* Enhanced Siren red */
  --ink:#0F172A;               /* slate-900 */
  --muted:#64748B;             /* slate-500 */
  --accent:#0EA5E9;            /* cyan-500 for wave */
  --card:#ffffff;
  --card-edge:#e5e7eb;         /* Refined edge color */
  --bg: radial-gradient(1100px 700px at 25% 8%, #fff 0 35%, #f7f7f7 55%, #f2f2f2 75%, #ededed 100%);
  --radius:22px;               /* Slightly smaller radius */
  --shadow: 0 24px 60px rgba(2,6,23,.10), 0 8px 20px rgba(2,6,23,.06);
}

*{
  box-sizing:border-box;
  cursor: default;
}

html{height:100%}

body{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

input, textarea, [contenteditable] {
  cursor: text;
}

button, a, .btn, .panel, .logo, .list li {
  cursor: pointer;
}

/* ---------- Layout ---------- */
.shell{
  flex-grow:1; 
  display:grid; 
  place-items:center; 
  padding:32px;
  animation: fadeInUp 1s ease-out;
}

.shell::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -3;
  opacity: 0.4;
  animation: noiseShift 20s linear infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* ---------- Card ---------- */
.card{
  width:min(960px, 92vw);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px 28px 22px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.card:hover {
  transform: translateY(-5px);
}

.card::before{
  content:""; 
  position:absolute; 
  inset:-80px -80px auto auto; 
  width:420px; 
  height:420px;
  background-image: radial-gradient(#dfe3ea 1px, transparent 1px);
  background-size: 14px 14px;
  opacity:.35; 
  filter: blur(.2px);
  z-index:-1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: gridPulse 4s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card:hover::before {
  opacity: .15;
  transform: scale(1.02);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: shimmer 3s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card:hover::after {
  opacity: 0.8;
}

/* ---------- Header brand ---------- */
.brand{ 
  text-align:center; 
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:10px; 
}

.brand::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(227, 59, 59, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: geometricFloat 8s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.logo{ 
  user-select:none; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: logoAppear 1.2s ease-out 0.2s both;
  cursor: pointer;
  position: relative;
}

.logo:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 12px 25px rgba(227, 59, 59, 0.25));
}

.logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(227, 59, 59, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
  animation: ambientPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.logo:hover::before {
  opacity: 0.4;
}

.title{ 
  font-size: clamp(28px, 4vw, 46px); 
  letter-spacing: -0.02em; 
  margin: 4px 0 0; 
  font-weight: 600;
  animation: titleSlide 1s ease-out 0.4s both;
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, var(--muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s ease;
}

.title:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(227, 59, 59, 0.1));
}

.tagline{ 
  color: var(--muted); 
  margin: 6px 0 14px;
  animation: taglineSlide 1s ease-out 0.6s both;
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.tagline:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.tagline strong {
  font-weight: 600;
  color: var(--brand);
  transition: all 0.3s ease;
  position: relative;
}

.tagline strong::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.3s ease;
}

.tagline:hover strong::after {
  width: 100%;
}

.countdown{ 
  font-variant-numeric: tabular-nums; 
  letter-spacing: 0.05em; 
  color: #1f2937; 
  font-weight: 500;
  animation: countdownPulse 1s ease-out 0.8s both;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, 
    rgba(227, 59, 59, 0.08) 0%, 
    rgba(14, 165, 233, 0.05) 50%, 
    rgba(227, 59, 59, 0.08) 100%
  );
  border: 1px solid rgba(227, 59, 59, 0.15);
  font-size: clamp(14px, 2.2vw, 16px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.countdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  transition: left 0.6s ease;
}

.countdown:hover {
  background: linear-gradient(135deg, 
    rgba(227, 59, 59, 0.12) 0%, 
    rgba(14, 165, 233, 0.08) 50%, 
    rgba(227, 59, 59, 0.12) 100%
  );
  transform: scale(1.03) translateY(-1px);
  border-color: rgba(227, 59, 59, 0.25);
  box-shadow: 0 8px 25px rgba(227, 59, 59, 0.1);
}

.countdown:hover::before {
  left: 100%;
}

.cta-row{ 
  display:flex; 
  flex-wrap:wrap; 
  justify-content:center; 
  gap:12px; 
  margin-top:12px;
  animation: ctaAppear 1s ease-out 1s both;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; 
  align-items:center; 
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--card-edge);
  background:#fff; 
  color:var(--ink); 
  text-decoration:none;
  transition:all .25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 0 rgba(2,6,23,.04);
  font-weight:500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(2,6,23,.15), 0 6px 18px rgba(2,6,23,.1);
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.btn.primary{ 
  background: linear-gradient(135deg, var(--brand), #d73027); 
  border-color:var(--brand); 
  color:#fff;
  box-shadow: 0 2px 8px rgba(227, 59, 59, 0.2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #d73027, var(--brand));
  box-shadow:0 15px 35px rgba(227, 59, 59, 0.3), 0 5px 15px rgba(227, 59, 59, 0.2);
  border-color: #d73027;
  transform:translateY(-3px) scale(1.03);
}

.btn.primary:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow:0 8px 20px rgba(227, 59, 59, 0.25);
}

.btn .dot{ 
  width:8px; 
  height:8px; 
  border-radius:999px; 
  background:#fff; 
  box-shadow:0 0 0 3px rgba(255,255,255,.25);
  animation: dotPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.btn:hover .dot {
  animation: dotPulseHover 1.5s ease-in-out infinite;
  box-shadow:0 0 0 4px rgba(255,255,255,.35);
  transform: scale(1.1);
}

.btn span:not(.dot) {
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.btn:hover span:not(.dot) {
  text-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.btn.primary:hover span:not(.dot) {
  text-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  transition: width 0.1s ease, height 0.1s ease;
}

.btn.primary::after {
  background: rgba(255, 255, 255, 0.2);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
}

.btn.secondary:hover {
  background: var(--muted);
  color: #fff;
  border-color: var(--muted);
}

.btn.secondary .dot {
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.25);
}

.btn.secondary:hover .dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.button-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  animation: buttonRipple 0.6s ease-out;
  pointer-events: none;
}

/* ---------- Content grid ---------- */
.meta-grid{
  display:grid; 
  gap:16px; 
  margin:18px auto 8px; 
  max-width:820px;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  animation: gridAppear 1s ease-out 1.2s both;
}

.panel{
  border:1px solid var(--card-edge);
  border-radius:16px; 
  padding:16px 18px; 
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: panelStagger 0.6s ease-out both;
  cursor: default;
}

.panel:nth-child(1) { 
  animation-delay: 1.4s; 
}

.panel:nth-child(2) { 
  animation-delay: 1.5s; 
}

.panel:nth-child(3) { 
  animation-delay: 1.6s; 
}

.panel:hover{
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(2,6,23,.1), 0 6px 15px rgba(2,6,23,.06);
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  cursor: pointer;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.panel:hover::before {
  left: 100%;
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(14, 165, 233, 0.03) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.panel:hover::after {
  opacity: 1;
}

.panel h3{ 
  margin: 0 0 8px; 
  font-size: 16px; 
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.panel:hover h3 {
  color: var(--accent);
  transform: translateX(3px) translateY(-1px);
  text-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
}

.panel h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.3s ease 0.1s;
}

.panel:hover h3::after {
  width: 40px;
}

.panel > div,
.panel > .list,
.panel > a {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.panel:hover > div,
.panel:hover > .list,
.panel:hover > a {
  transform: translateY(-1px);
}

.panel a {
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.panel a:hover {
  color: var(--accent);
  transform: translateY(-1px);
  border-bottom-color: var(--accent);
  text-shadow: 0 1px 3px rgba(14, 165, 233, 0.1);
}

.panel .mono {
  transition: all 0.3s ease;
}

.panel:hover .mono {
  color: var(--accent);
}

.panel.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.panel.highlight {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(227, 59, 59, 0.02), #fff);
}

.panel.highlight:hover {
  border-color: var(--brand);
  box-shadow: 0 15px 30px rgba(227, 59, 59, 0.1), 0 6px 15px rgba(227, 59, 59, 0.05);
}

.panel.highlight::before {
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.subtle{ 
  color: var(--muted); 
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.005em;
}

.subtle:hover,
.panel:hover .subtle {
  color: var(--ink);
  transform: translateY(-1px);
}

.mono{ 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace; 
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
}

.mono:hover,
.panel:hover .mono {
  color: var(--accent);
  transform: translateY(-1px);
  font-weight: 500;
}

.list{ 
  margin: 4px 0 0; 
  padding-left: 20px; 
  line-height: 1.6;
}

.list li {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.list li:hover {
  transform: translateX(10px);
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

.list li::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
  transform: translateY(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.list li:hover::before {
  width: 6px;
}

.list li::after {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s ease 0.1s;
}

.list li:hover::after {
  transform: translateY(-50%) scale(1);
}

.footer{ 
  margin-top: 24px; 
  text-align: center; 
  color: var(--muted); 
  font-size: 13px;
  animation: fadeIn 1s ease-out 1.8s both;
  transition: all 0.4s ease;
  letter-spacing: 0.02em;
  position: relative;
  padding: 16px 0;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted), transparent);
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

.footer:hover {
  color: var(--ink);
  transform: translateY(-2px);
  font-weight: 500;
}

.footer:hover::before {
  width: 200px;
}

/* ---------- Particles ---------- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(227, 59, 59, 0.15) 0%, rgba(227, 59, 59, 0.05) 50%, transparent 100%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.particle:nth-child(1) { 
  width: 20px; 
  height: 20px; 
  top: 20%; 
  left: 10%; 
  animation-delay: 0s; 
}

.particle:nth-child(2) { 
  width: 15px; 
  height: 15px; 
  top: 60%; 
  left: 80%; 
  animation-delay: 2s; 
}

.particle:nth-child(3) { 
  width: 12px; 
  height: 12px; 
  top: 80%; 
  left: 20%; 
  animation-delay: 4s; 
}

.particle:nth-child(4) { 
  width: 18px; 
  height: 18px; 
  top: 30%; 
  left: 70%; 
  animation-delay: 1s; 
}

.particle:nth-child(5) { 
  width: 10px; 
  height: 10px; 
  top: 70%; 
  left: 60%; 
  animation-delay: 3s; 
}

/* ---------- Cursor ---------- */
.cursor-trailer {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(227, 59, 59, 0.4) 0%, rgba(227, 59, 59, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
  mix-blend-mode: multiply;
  will-change: transform;
  backface-visibility: hidden;
}

.cursor-trailer.cursor-button {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle, rgba(227, 59, 59, 0.6) 0%, rgba(227, 59, 59, 0.2) 70%, transparent 100%);
  opacity: 1;
}

.cursor-trailer.cursor-panel {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(14, 165, 233, 0.15) 70%, transparent 100%);
  opacity: 1;
}

.cursor-trailer.cursor-logo {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(227, 59, 59, 0.7) 0%, rgba(227, 59, 59, 0.3) 50%, transparent 100%);
  opacity: 1;
}

/* ---------- Navigation ---------- */
.main-header {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 1000;
  animation: fadeIn 1s ease-out 0.5s both;
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(227, 59, 59, 0.08);
  transform: translateY(-1px);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Active state - you can add this class with JavaScript */
.nav-link.active {
  color: var(--brand);
  background: rgba(227, 59, 59, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .main-header {
    top: 16px;
    right: 16px;
  }
  
  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 2px;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--brand), var(--accent));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #d73027, #0284c7);
}

/* ---------- Accessibility & Responsiveness ---------- */

/* Focus states */
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(2,6,23,.1), 0 3px 8px rgba(2,6,23,.06);
}

.btn.primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow:0 15px 30px rgba(227, 59, 59, 0.25), 0 5px 12px rgba(227, 59, 59, 0.15);
}

.panel:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 16px;
}

.title:focus,
.tagline:focus,
.countdown:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.keyboard-navigation .btn:focus,
.keyboard-navigation .panel:focus,
.keyboard-navigation .logo:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
  .meta-grid {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  
  .panel {
    padding: 14px 16px;
  }
  
  .particles {
    display: none;
  }
  
  .card::before {
    animation: none;
  }
  
  .brand::before,
  .logo::before,
  .shell::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .title { 
    font-size: 28px;
    letter-spacing: -0.01em;
  }
  
  .tagline {
    font-size: 14px;
    margin: 4px 0 12px;
  }
  
  .countdown {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .list li {
    font-size: 13px;
    padding: 3px 0;
  }
  
  .panel h3 {
    font-size: 15px;
  }
  
  .footer {
    font-size: 12px;
    margin-top: 20px;
  }
  
  .logo{ width:128px; height:128px }
  .card { margin: 16px; }
}

@media (hover: none) {
  .cursor-trailer {
    display: none;
  }
  
  body {
    cursor: default;
  }
  
  .card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  
  .panel:hover {
    transform: translateY(-2px);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn.primary:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(227, 59, 59, 0.2);
  }
  
  .btn::before {
    display: none;
  }
  
  .panel::before,
  .panel::after {
    display: none;
  }
  
  .list li:hover {
    transform: none;
    color: inherit;
  }
  
  .list li::before {
    display: none;
  }
  
  .logo:hover {
    transform: scale(1.02);
    filter: none;
  }
  
  .particle {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .logo:hover {
    transform: scale(1.02);
    filter: none;
  }
  
  .btn, .btn::before, .btn::after, .btn .dot {
    transition: none;
    animation: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn .dot {
    animation: none;
  }
  
  .panel, .panel h3, .panel::before, .panel::after,
  .list li, .list li::before {
    transition: none;
    animation: none;
  }
  
  .panel:hover {
    transform: none;
  }
  
  .list li:hover {
    transform: none;
  }
  
  .panelStagger, .gridAppear {
    animation: none;
  }
  
  .particles,
  .particle {
    animation: none;
    display: none;
  }
  
  .card::before,
  .card::after,
  .brand::before,
  .logo::before,
  .shell::before {
    animation: none;
  }
  
  .title, .tagline, .countdown, .list li, .panel h3, 
  .subtle, .mono, .footer, .panel a {
    transition: color 0.1s ease;
  }
  
  .title:hover, .tagline:hover, .countdown:hover,
  .list li:hover, .panel:hover h3, .footer:hover {
    transform: none;
  }
  
  .tagline strong::after,
  .countdown::before,
  .list li::before,
  .list li::after,
  .panel h3::after,
  .footer::before {
    transition: none;
  }
  
  .cursor-trailer {
    display: none;
  }
  
  body {
    cursor: default;
  }
  
  .particle {
    transition: none;
    transform: none !important;
  }
  
  .button-ripple {
    animation: none;
  }
  
  @keyframes buttonRipple,
  @keyframes logoClick {
    from, to {
      transform: none;
      opacity: 1;
    }
  }
}

@media (prefers-contrast: high) {
  .cursor-trailer {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    mix-blend-mode: normal;
  }
  
  .cursor-trailer.cursor-button,
  .cursor-trailer.cursor-panel,
  .cursor-trailer.cursor-logo {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  }
  
  .particle {
    background: radial-gradient(circle, rgba(227, 59, 59, 0.4) 0%, rgba(227, 59, 59, 0.1) 50%, transparent 100%);
  }
  
  .card::before {
    opacity: 0.6;
  }
  
  .title {
    background: none !important;
    color: var(--ink) !important;
    -webkit-text-fill-color: initial !important;
  }
  
  .tagline strong,
  .list li:hover,
  .panel:hover h3,
  .mono:hover {
    color: var(--brand) !important;
  }
}

@media print {
  .panel {
    border: 1px solid #000;
    box-shadow: none;
    break-inside: avoid;
  }
  
  .title {
    color: var(--ink) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
  }
  
  .tagline strong::after,
  .panel h3::after,
  .footer::before {
    display: none;
  }
  
  .cursor-trailer,
  .button-ripple {
    display: none;
  }
}

/* ---------- Keyframes ---------- */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes logoAppear {
  from { 
    opacity: 0; 
    transform: scale(0.8) rotate(-10deg); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) rotate(0deg); 
  }
}

@keyframes titleSlide {
  from { 
    opacity: 0; 
    transform: translateX(-30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes taglineSlide {
  from { 
    opacity: 0; 
    transform: translateX(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes countdownPulse {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

@keyframes ctaAppear {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes dotPulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: scale(1.2); 
    opacity: 0.8; 
  }
}

@keyframes dotPulseHover {
  0%, 100% { 
    transform: scale(1.1); 
    opacity: 1; 
    box-shadow:0 0 0 4px rgba(255,255,255,.35);
  }
  50% { 
    transform: scale(1.3); 
    opacity: 0.9; 
    box-shadow:0 0 0 6px rgba(255,255,255,.15);
  }
}

@keyframes gridAppear {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes panelStagger {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.7; 
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
    opacity: 1; 
  }
}

@keyframes gridPulse {
  0%, 100% { 
    opacity: .35; 
    transform: scale(1); 
  }
  50% { 
    opacity: .15; 
    transform: scale(1.02); 
  }
}

@keyframes shimmer {
  0% { 
    transform: translateX(-100%); 
    opacity: 0; 
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    transform: translateX(100%); 
    opacity: 0; 
  }
}

@keyframes geometricFloat {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
    opacity: 0.5; 
  }
  50% { 
    transform: rotate(180deg) scale(1.05); 
    opacity: 0.8; 
  }
}

@keyframes ambientPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(0.8); 
    opacity: 0; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 0.3; 
  }
}

@keyframes noiseShift {
  0% { 
    transform: translate(0, 0); 
  }
  25% { 
    transform: translate(-5px, -5px); 
  }
  50% { 
    transform: translate(-10px, 5px); 
  }
  75% { 
    transform: translate(5px, -10px); 
  }
  100% { 
    transform: translate(0, 0); 
  }
}

/* Text selection styling */
::selection {
  background: rgba(227, 59, 59, 0.25);
  color: var(--ink);
  text-shadow: none;
}

::-moz-selection {
  background: rgba(227, 59, 59, 0.25);
  color: var(--ink);
  text-shadow: none;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--brand), var(--accent));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #d73027, #0284c7);
}

* {
  cursor: default;
}

button, a, .btn, .panel, .logo, .list li {
  cursor: pointer;
}

body {
  cursor: none;
}

input, textarea, [contenteditable] {
  cursor: text;
}

@keyframes buttonRipple {
  from, to {
    transform: none;
    opacity: 1;
  }
}

@keyframes logoClick {
  from, to {
    transform: none;
    opacity: 1;
  }
}
