:root{
  --bg: #050505;
  --fg: #e0e0e0;
  --accent: #FF3300;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;width:100%;overflow:hidden;font-family:'Space Grotesk', sans-serif;background:var(--bg);color:var(--fg);cursor:none}

#bgCanvas{position:fixed;inset:0;z-index:0;opacity:0.4}

.frame{position:fixed;inset:40px;z-index:10;pointer-events:none;display:flex;flex-direction:column; justify-content: space-between;}
.corner{position:absolute;pointer-events:auto;font-size:14px;letter-spacing:2px;color:rgba(255,255,255,0.4);text-transform:uppercase;font-weight:500; transition: color 0.3s ease;}
.corner:hover {color: var(--accent);}
.tl{top:0;left:0}
.tr{top:0;right:0}
.bl{bottom:0;left:0}
.br{bottom:0;right:0}

.brand{font-weight:700;color:var(--fg); font-size: 16px;}

.center-stage{
  flex:1;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events:auto;
  width: 100%;
  height: 100%;
}

.content-wrapper{
  text-align: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Hero Name Split */
.hero-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 4vh;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-name{
  display: flex;
  flex-direction: column;
  font-size: clamp(60px, 15vw, 180px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  mix-blend-mode: screen;
}

.name-part{
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.name-part.outline{
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  -webkit-text-fill-color: transparent;
  background: none;
  transform: translateX(15%);
  opacity: 0.7;
}

.hero-container:hover .name-part{
  transform: translateX(0) scale(1.02);
  -webkit-text-fill-color: #fff;
}

.hero-container:hover .name-part.outline{
  -webkit-text-stroke: 0;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  transform: translateX(0) scale(1.02);
  opacity: 1;
}

/* Construction Area */
.construction-area{
  margin-bottom: 6vh;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.progress-container{
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.progress-bar{
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.bar-glow{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0.8;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

.status-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-item{
  display: flex;
  align-items: center;
  gap: 10px;
}

.spin-loader{
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: pulse 1s infinite;
}

@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.3}}

/* CTA & Dock */
.cta-container{
  opacity: 0;
  animation: fadeIn 1s ease-out 0.5s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes fadeIn{to{opacity:1}}

.cta-text{
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-sub{
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.4);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.social-dock{
  display: inline-flex;
  gap: 32px;
  padding: 20px 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.social-dock:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.dock-item{
  position: relative;
  color: rgba(255,255,255,0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item:hover{
  color: #fff;
  transform: translateY(-5px) scale(1.1);
}

/* Tooltip */
.dock-item::after{
  content: attr(data-tooltip);
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255,255,255,0.9);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dock-item:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Cursor */
.cursor-dot{
  position:fixed;
  width:8px;
  height:8px;
  background: var(--accent);
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  transform:translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}

.cursor-dot.hover{
  width: 40px;
  height: 40px;
  background: #fff;
  mix-blend-mode: difference;
}

/* Responsive Refinements */
@media(max-width:1024px){
  .frame{inset:30px}
  .hero-name{line-height: 0.85;}
  .name-part.outline{transform: translateX(10%);}
}

@media(max-width:768px){
  .frame{inset:20px}
  .center-stage{justify-content: center;}
  .hero-container{margin-bottom: 30px;}
  
  /* Increased font size for mobile presence */
  .hero-name{
    font-size: clamp(50px, 18vw, 90px);
    line-height: 0.9;
  }

  /* Reduced overlap */
  .name-part.outline{
    transform: translateX(0);
    display: block;
    margin-top: -10px;
  }
  
  .social-dock{gap: 24px; padding: 16px 30px;}
  
  /* Better spacing on mobile */
  .content-wrapper {
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    gap: 20px;
  }
  
  .corner{font-size: 10px;}
  .brand{font-size: 12px;}
  
  .construction-area{margin-bottom: 20px;}
  .cta-sub{margin-bottom: 20px;}
}

@media(max-height: 700px) {
   .hero-container{margin-bottom: 20px;}
   .construction-area{margin-bottom: 20px;}
   .cta-sub{margin-bottom: 20px;}
   .content-wrapper{padding-top: 40px; padding-bottom: 40px;}
}
