:root{
  --bg:#0b0b0b;
  --text:#f5f5f5;
  --muted:#d6d6d6;

  --line: rgba(255,255,255,0.22);
  --line-strong: rgba(255,255,255,0.35);
  --panel: rgba(255,255,255,0.03);

  --accent:#c62828;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:"Lato", sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.8;
  font-size:18px;
}

body.loading{ overflow:hidden; }

.loader-overlay{
  position:fixed;
  inset:0;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  transition:opacity .35s ease;
}
.loader-overlay.hidden{ opacity:0; pointer-events:none; }

.spinner{
  width:56px;
  height:56px;
  border-radius:50%;
  border:4px solid rgba(255,255,255,.25);
  border-top-color:var(--accent);
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.site-header{
  position:relative;
  border-bottom:1px solid var(--line-strong);
  padding:26px 28px;
}

.header-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.anvil{ width:58px; }

.anvil-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-radius:10px;
  transition:transform .15s ease, background .15s ease;
}
.anvil-link:hover{
  background:rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.header-center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  pointer-events:none;
}

.brand{
  margin:0;
  font-weight:900;
  font-size:clamp(2.2rem,5vw,2.8rem);
  letter-spacing:.5px;
}

.nav{
  display:flex;
  gap:26px;
}

.nav a{
  font-size:1.12rem;
  font-weight:700;
  color:var(--text);
  text-decoration:none;
  border-bottom:2px solid transparent;
  padding-bottom:4px;
  transition:color .15s ease, border-color .15s ease;
}

.nav a:hover,
.nav a.active{
  color:var(--accent);
  border-color:var(--accent);
}

section{
  max-width:1000px;
  margin:90px auto;
  padding:0 28px;
  scroll-margin-top:60px;
}

h2{ font-size:2rem; margin:0; }
h3{ font-size:1.3rem; }

.box-head,
.section-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}

.section-head.center{ justify-content:center; }

.icon{
  width:26px;
  height:26px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.icon svg{ width:18px; height:18px; display:block; }

.icon.small{
  width:22px;
  height:22px;
  margin-right:8px;
  border-radius:9px;
}
.icon.small svg{ width:16px; height:16px; }

.box,
.card{
  background: var(--panel);
  border:1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(198,40,40,0.10),
    0 14px 36px rgba(0,0,0,0.45);
}

.box{
  border-radius:18px;
  padding:44px 38px;
  max-width: 860px;
  margin: 0 auto;
}

.box p{
  max-width:none;
  margin:0 0 16px;
}
.box p:last-child{ margin-bottom:0; }

.card{
  border-radius:16px;
  padding:30px 28px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height:100%;
  display:flex;
  flex-direction:column;
}

.card h3{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 16px;
}

.card ul{ margin-top: 6px; }

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(198,40,40,0.55);
  box-shadow:
    0 0 0 1px rgba(198,40,40,0.18),
    0 18px 46px rgba(0,0,0,0.55);
}

.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:36px;
  align-items:stretch;
}

li{
  font-size:1.05rem;
  color:var(--muted);
  margin-bottom:12px;
}

.cta{
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.18);
  padding:90px 28px;
}

.button{
  display:inline-block;
  margin:10px;
  padding:16px 30px;
  font-size:1.05rem;
  border:2px solid var(--accent);
  border-radius:999px;
  font-weight:700;
  color:var(--accent);
  text-decoration:none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.button:hover{
  background:var(--accent);
  color:#fff;
  transform: translateY(-1px);
}

.matrix-flow::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:220px;  
  background: linear-gradient(
    to bottom,
    rgba(11,11,11,1),
    rgba(11,11,11,0)
  );
  z-index:1;
  pointer-events:none;
}


.matrix-flow{
  position: relative;
  width: 100%;

  height: 520px;
  margin-top: -120px;   
  padding-top: 120px;   

  overflow: hidden;
  background: #0b0b0b;
}



.matrix-flow canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.matrix-vignette{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to bottom,
      rgba(11,11,11,0.95) 0%,
      rgba(11,11,11,0.50) 30%,
      rgba(11,11,11,0.18) 55%,
      rgba(11,11,11,0.62) 78%,
      rgba(11,11,11,0.96) 100%
    ),
    radial-gradient(
      1200px 320px at 50% 68%,
      rgba(198,40,40,0.25),
      rgba(0,0,0,0) 60%
    );
  pointer-events:none;
}

.site-footer{
  position:absolute;
  bottom:0;
  width:100%;
  padding: 56px 18px 46px;
  text-align:center;
  z-index:2;

  background: linear-gradient(
    to bottom,
    rgba(11,11,11,0.08),
    rgba(11,11,11,0.72)
  );
}

.footer-tagline{
  font-family:"Yellowtail", cursive;
  font-size:1.8rem;
  color:var(--accent);
  text-shadow:
    0 10px 30px rgba(0,0,0,0.7),
    0 0 18px rgba(198,40,40,0.35);
}

@media (max-width:640px){
  .header-center{
    position:static;
    transform:none;
    pointer-events:auto;
  }
  .header-inner{
    flex-direction:column;
    gap:16px;
  }
  .nav{
    justify-content:center;
    flex-wrap:wrap;
  }

  .box{ padding:38px 22px; }
  section{ padding:0 18px; }

  .matrix-flow{ height: 320px; }
}

.download-btn{
  display:inline-block;
  padding:16px 30px;
  border:2px solid var(--accent);
  border-radius:999px;
  font-weight:800;
  color:#fff;
  text-decoration:none;
  background:var(--accent);
  transition: transform .15s ease, filter .15s ease;
}

.download-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.download-wrap{
  max-width:1000px;
  margin: 30px auto 0;
  padding: 0 28px;
  text-align:center;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .spinner{ animation:none; }
  .card, .button, .anvil-link{ transition:none; }

  #matrixCanvas,
  .matrix-vignette{
    display:none;
  }
  .matrix-flow{
    height:auto;
  }

