:root{
  --bg:#030303;
  --bg2:#090909;
  --panel:#101010;
  --panel2:#151515;
  --text:#ffffff;
  --muted:#b8b8b8;
  --muted2:#7d7d7d;
  --red:#ff1b1b;
  --red2:#b70000;
  --line:rgba(255,255,255,.10);
  --line-red:rgba(255,27,27,.28);
  --shadow:0 30px 90px rgba(0,0,0,.55);
  --radius:28px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,27,27,.18), transparent 34%),
    radial-gradient(circle at 100% 15%, rgba(255,27,27,.10), transparent 25%),
    #030303;
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit}
img{max-width:100%;display:block}

.cursor-glow{
  position:fixed;
  width:320px;height:320px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,27,27,.12), transparent 65%);
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:0;
  opacity:.8;
}

.site-header{
  position:fixed;
  inset:0 0 auto 0;
  height:78px;
  padding:0 clamp(18px,5vw,72px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:50;
  background:rgba(3,3,3,.62);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand-logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  height:46px;
}

.brand-logo-wrap img{
  width:190px;
  height:auto;
  filter: drop-shadow(0 0 12px rgba(255,0,0,.25));
}

.brand-labs{
  padding:8px 13px;
  border:1px solid var(--line-red);
  color:#fff;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  background:linear-gradient(135deg, rgba(255,27,27,.24), rgba(255,255,255,.04));
}

.main-nav{
  display:flex;
  align-items:center;
  gap:26px;
}

.main-nav a{
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  color:rgba(255,255,255,.78);
  transition:.25s ease;
}

.main-nav a:hover{color:#fff;text-shadow:0 0 18px rgba(255,27,27,.8)}

.hamburger{
  display:none;
  width:46px;height:46px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  border-radius:14px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.hamburger span{
  width:20px;height:2px;background:#fff;border-radius:3px;
}

.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:140px clamp(18px,5vw,72px) 80px;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  background:url("../img/hero-bg.svg") center/cover no-repeat;
  opacity:.95;
  z-index:-3;
}

.hero-grid{
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
  opacity:.38;
  z-index:-2;
}

.hero:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;height:190px;
  background:linear-gradient(to bottom, transparent, #030303);
  z-index:-1;
}

.hero-inner{
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:60px;
  align-items:center;
}

.eyebrow,.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#ff4242;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:12px;
}

.eyebrow:before,.section-kicker:before{
  content:"";
  width:32px;height:2px;
  background:linear-gradient(90deg,var(--red),transparent);
  box-shadow:0 0 16px rgba(255,27,27,.8);
}

.hero h1{
  margin-top:20px;
  font-size:clamp(48px,7vw,92px);
  line-height:.95;
  letter-spacing:-.07em;
  max-width:780px;
}

.hero p{
  margin-top:28px;
  color:var(--muted);
  font-size:clamp(18px,2vw,22px);
  line-height:1.65;
  max-width:680px;
}

.hero-actions,.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:34px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:-.02em;
  transition:.25s ease;
}

.btn-primary{
  background:linear-gradient(135deg,#ff2a2a,#9d0000);
  box-shadow:0 18px 40px rgba(255,27,27,.26);
}

.btn-primary:hover{transform:translateY(-3px);box-shadow:0 24px 55px rgba(255,27,27,.38)}
.btn-ghost{
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:#fff;
}
.btn-ghost:hover{border-color:var(--line-red);background:rgba(255,27,27,.10)}

.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:34px;
}
.trust-row span{
  color:#dcdcdc;
  font-size:13px;
  font-weight:800;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
}

.hero-panel{
  position:relative;
  min-height:560px;
  display:grid;
  place-items:center;
}

.orb{
  position:absolute;
  width:min(440px,80vw);
  aspect-ratio:1;
  border-radius:50%;
  background:
    radial-gradient(circle at 45% 42%, rgba(255,255,255,.18), transparent 16%),
    radial-gradient(circle, rgba(255,27,27,.72), rgba(128,0,0,.28) 43%, transparent 66%);
  filter:drop-shadow(0 0 70px rgba(255,27,27,.45));
  animation:pulse 4.5s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{transform:scale(.96);opacity:.72}
  50%{transform:scale(1.04);opacity:1}
}

.lab-card,.floating-card{
  position:absolute;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(145deg, rgba(18,18,18,.85), rgba(5,5,5,.70));
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
}

.main-lab-card{
  width:min(400px,90vw);
  padding:28px;
  z-index:2;
  transform:rotate(-2deg);
}
.main-lab-card small{
  color:#ccc;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.main-lab-card h2{
  margin-top:14px;
  font-size:34px;
  line-height:1.02;
  letter-spacing:-.05em;
}
.main-lab-card p{
  font-size:15px;
  line-height:1.6;
  color:#bdbdbd;
  margin-top:16px;
}
.status-dot{
  display:inline-block;
  width:10px;height:10px;border-radius:50%;
  background:#ff1b1b;
  box-shadow:0 0 20px #ff1b1b;
  margin-right:8px;
}

.floating-card{
  padding:18px 20px;
  z-index:3;
  width:230px;
}
.floating-card strong{display:block;font-size:15px;margin-bottom:7px}
.floating-card span{display:block;color:#aaa;font-size:13px;line-height:1.4}
.card-a{top:52px;right:20px}
.card-b{bottom:52px;left:8px}

.intro-section,.projects-section,.stack-section,.contact-section,.featured-section{
  padding:90px clamp(18px,5vw,72px);
}

.intro-grid{
  margin-top:28px;
  width:min(1180px,100%);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
}

.intro-title h2,.featured-card h2,.section-head h2,.contact-box h2{
  font-size:clamp(34px,5vw,62px);
  line-height:1;
  letter-spacing:-.055em;
}

.intro-text p{
  color:var(--muted);
  font-size:18px;
  line-height:1.75;
  margin-bottom:18px;
}

.featured-card{
  width:min(1180px,100%);
  margin:auto;
  padding:clamp(26px,5vw,56px);
  border-radius:34px;
  background:
    linear-gradient(135deg, rgba(255,27,27,.18), rgba(255,255,255,.035)),
    radial-gradient(circle at 0% 0%, rgba(255,27,27,.22), transparent 36%),
    #0b0b0b;
  border:1px solid var(--line-red);
  box-shadow:0 30px 90px rgba(0,0,0,.38);
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:42px;
  align-items:end;
}
.featured-card p{
  color:#d0d0d0;
  font-size:18px;
  line-height:1.7;
}

.section-head{
  width:min(900px,100%);
  margin-bottom:42px;
}
.section-head h2{margin-top:18px}
.section-head p{
  color:var(--muted);
  margin-top:18px;
  font-size:18px;
  line-height:1.6;
}

.projects-grid{
  width:min(1180px,100%);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}

.project-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border-radius:34px;
  box-shadow:0 24px 70px rgba(0,0,0,.26);
  transition:.3s ease;
}

.project-card:hover{
  transform:translateY(-7px);
  border-color:rgba(255,27,27,.48);
  box-shadow:0 30px 90px rgba(255,27,27,.13);
}

.project-card.large{
  grid-column:span 2;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  align-items:stretch;
}

.project-image{
  min-height:260px;
  background:#080808;
  overflow:hidden;
}
.project-card.large .project-image{min-height:420px}
.project-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
  transition:.4s ease;
}
.project-card:hover .project-image img{transform:scale(1.07)}

.project-content{
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.tag{
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,27,27,.14);
  border:1px solid rgba(255,27,27,.30);
  color:#ff5555;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.project-content h3{
  margin-top:18px;
  font-size:clamp(28px,4vw,48px);
  line-height:1;
  letter-spacing:-.055em;
}

.project-content p{
  color:#bdbdbd;
  line-height:1.7;
  font-size:16px;
  margin-top:16px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px;
}
.chips span{
  color:#d9d9d9;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.05);
  padding:8px 10px;
  border-radius:999px;
}

.project-content a{
  margin-top:22px;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  width:max-content;
  border-bottom:2px solid var(--red);
  padding-bottom:4px;
}

.stack-grid{
  width:min(1180px,100%);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.stack-item{
  padding:24px;
  min-height:210px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,27,27,.18), transparent 40%),
    rgba(255,255,255,.04);
}

.stack-item strong{
  display:block;
  font-size:20px;
  margin-bottom:14px;
}
.stack-item span{
  display:block;
  color:#aaa;
  line-height:1.6;
}

.contact-box{
  width:min(1050px,100%);
  margin:auto;
  text-align:center;
  padding:clamp(30px,6vw,70px);
  border-radius:38px;
  border:1px solid var(--line-red);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,27,27,.24), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow:0 30px 100px rgba(0,0,0,.35);
}
.contact-box h2{margin-top:18px}
.contact-box p{
  color:#c7c7c7;
  font-size:18px;
  line-height:1.7;
  max-width:780px;
  margin:20px auto 0;
}
.contact-actions{justify-content:center}
.contact-meta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}
.contact-meta span{
  color:#cfcfcf;
  font-size:13px;
  font-weight:800;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.045);
}

.back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  width:48px;height:48px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg,#ff1b1b,#7b0000);
  color:#fff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(12px);
  transition:.25s ease;
  z-index:40;
}
.back-to-top.show{opacity:1;pointer-events:auto;transform:translateY(0)}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:.7s ease;
}
.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:980px){
  .hero-inner,.intro-grid,.featured-card,.project-card.large{
    grid-template-columns:1fr;
  }
  .hero-panel{min-height:460px}
  .projects-grid{grid-template-columns:1fr}
  .project-card.large{grid-column:span 1}
  .stack-grid{grid-template-columns:repeat(2,1fr)}
  .main-nav{
    position:fixed;
    top:78px;left:16px;right:16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    padding:18px;
    border-radius:24px;
    background:rgba(8,8,8,.96);
    border:1px solid rgba(255,255,255,.10);
    box-shadow:var(--shadow);
  }
  .main-nav.open{display:flex}
  .main-nav a{
    padding:14px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
  }
  .hamburger{display:flex}
}

@media(max-width:640px){
  .site-header{height:72px}
  .brand-logo-wrap{min-width:150px}
  .brand-logo-wrap img{width:150px}
  .brand-labs{font-size:11px;padding:7px 10px}
  .hero{padding-top:120px}
  .hero h1{font-size:48px}
  .hero p{font-size:17px}
  .hero-actions .btn,.contact-actions .btn{width:100%}
  .floating-card{display:none}
  .main-lab-card{transform:none}
  .intro-section,.projects-section,.stack-section,.contact-section,.featured-section{
    padding:68px 18px;
  }
  .project-content{padding:24px}
  .stack-grid{grid-template-columns:1fr}
  .cursor-glow{display:none}
}

/* FOOTER */

.site-footer{
  position:relative;
  margin-top:120px;
  padding:70px 8% 30px;
  background:
    radial-gradient(circle at top center,
    rgba(255,0,0,0.15),
    transparent 35%),
    #050505;

  border-top:1px solid rgba(255,0,0,0.15);
}

.site-footer::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:1px;

  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,0,0,0.5),
    transparent
  );
}

.footer-top{
  display:grid;
  grid-template-columns:
  1.4fr
  1fr
  1fr
  1fr;

  gap:50px;
}

.footer-brand img{
  width:220px;
  margin-bottom:20px;
}

.footer-brand p{
  color:#999;
  line-height:1.8;
  max-width:420px;
}

.footer-links,
.footer-contact{
  display:flex;
  flex-direction:column;
}

.footer-links h4,
.footer-contact h4{
  color:#fff;
  margin-bottom:20px;
  font-size:18px;
}

.footer-links a,
.footer-contact a,
.footer-contact span{
  color:#888;
  text-decoration:none;
  margin-bottom:12px;
  transition:0.3s;
}

.footer-links a:hover,
.footer-contact a:hover{
  color:#ff1a1a;
}

.footer-bottom{
  margin-top:60px;
  padding-top:25px;

  border-top:1px solid rgba(255,255,255,0.06);

  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:15px;

  color:#666;
  font-size:14px;
}

/* MOBILE */

@media(max-width:900px){

  .footer-top{
    grid-template-columns:1fr;
    gap:40px;
  }

  .footer-bottom{
    flex-direction:column;
    text-align:center;
  }

}