:root{
  --bg:#071021;
  --bg-2:#0a1730;
  --accent:#8be7ff;
  --accent-2:#ff7bb8;
  --text:#e7f8ff;
  --muted:#9fb7c8;
  --card:rgba(255,255,255,0.04);
  --card-strong:rgba(255,255,255,0.07);
  --border:rgba(255,255,255,0.08);
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 8px 28px rgba(0,0,0,0.35);
  --focus:0 0 0 3px rgba(139,231,255,0.45);
}

*{box-sizing:border-box}
html{
  background:#071021;
  min-height:100%;
}
html,body{
  height:100%;
  background:#071021;
}
body{
  margin:0;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  line-height:1.5;
  color-scheme:dark;
  background:
    radial-gradient(1200px 600px at 10% 20%, rgba(139,231,255,0.08), transparent 40%),
    radial-gradient(900px 500px at 90% 80%, rgba(255,139,196,0.06), transparent 45%),
    linear-gradient(180deg,#06111a 0%, #071425 60%, #06111a 100%);
  background-color:#071021;
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:20px 12px;
  overflow-x:hidden;
  animation:bg-pan 24s linear infinite;
  background-size:140% 140%, 140% 140%, 100% 100%;
  background-attachment:fixed;
}
@keyframes bg-pan {
  0%{background-position: 0% 0%, 100% 100%, 50% 50%}
  50%{background-position: 100% 50%, 0% 50%, 50% 50%}
  100%{background-position: 0% 0%, 100% 100%, 50% 50%}
}
@media (prefers-reduced-motion: reduce){
  body{animation:none}
  .btn{transition:none}
  .hero{transition:none}
  .hero::before{animation:none}
  .orb{animation:none}
  .screenshot::before{animation:none}
  h1{animation:none}
  .feature-card{transition:none}
  .btn.primary::before{transition:none}
}

.wrap{
  width:min(980px,94%);
  padding:28px;
  text-align:center;
  margin-top:20px;
}

h1{
  margin:0;
  font-size:clamp(30px,5vw,56px);
  letter-spacing:0.3px;
  line-height:1.1;
  background: linear-gradient(90deg, #ffffff, #bff2ff 40%, #ffd1e7 90%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter: drop-shadow(0 4px 24px rgba(139,231,255,0.12));
  position:relative;
  animation: text-glow 4s ease-in-out infinite alternate;
}

@keyframes text-glow {
  0% { 
    filter: drop-shadow(0 4px 24px rgba(139,231,255,0.12));
  }
  100% { 
    filter: drop-shadow(0 4px 32px rgba(139,231,255,0.25)) drop-shadow(0 0 16px rgba(255,123,184,0.15));
  }
}

.sub{
  color:var(--muted);
  margin-top:8px;
  font-size:clamp(14px,2.2vw,18px);
}

.hero{
  margin-top:24px;
  padding:24px;
  border-radius:var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  backdrop-filter: blur(6px);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
  position:relative;
  overflow:hidden;
}
.hero:hover{
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
}

.hero::before{
  content:'';
  position:absolute;
  top:-50%;
  right:-50%;
  width:100%;
  height:100%;
  background:
    radial-gradient(circle, rgba(139,231,255,0.05) 1px, transparent 1px);
  background-size:20px 20px;
  animation:grid-move 20s linear infinite;
  pointer-events:none;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

.teaser{
  max-width:720px;
  color:#d3f1fc;
  font-size:clamp(15px,2.4vw,18px);
}

.cta{
  margin-top:8px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  padding:12px 16px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  text-decoration:none;
  color:inherit;
  font-weight:650;
  letter-spacing:0.2px;
  background:rgba(255,255,255,0.02);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  backdrop-filter: blur(2px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:120px;
  font-size:14px;
  cursor:pointer;
  font-family:inherit;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.btn:active{
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35) inset;
}
.btn:focus-visible{
  outline:none;
  box-shadow: var(--focus), 0 8px 24px rgba(0,0,0,0.35);
}

.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#021018;
  border:none;
  box-shadow: 0 6px 18px rgba(139,231,255,0.25), 0 2px 10px rgba(255,123,184,0.15);
  position:relative;
  overflow:hidden;
}
.btn.primary:hover{
  box-shadow: 0 10px 28px rgba(139,231,255,0.35), 0 4px 16px rgba(255,123,184,0.25);
}

.btn.primary::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;
}

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

.screenshot{
  width:100%;
  max-width:560px;
  height:280px;
  border-radius:var(--radius-sm);
  margin-top:6px;
  background:
    linear-gradient(135deg, rgba(139,231,255,0.15), rgba(255,139,196,0.12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 10px);
  border:1px solid rgba(139,231,255,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  position:relative;
  overflow:hidden;
  box-shadow: 0 4px 20px rgba(139,231,255,0.15);
}

.screenshot::before{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:80px;
  height:80px;
  background:
    radial-gradient(circle, var(--accent) 2px, transparent 2px),
    radial-gradient(circle, var(--accent-2) 1px, transparent 1px);
  background-size: 20px 20px, 10px 10px;
  background-position: 0 0, 10px 10px;
  transform: translate(-50%, -50%);
  opacity:0.3;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

/* Studio logo */
.studio-logo{
  margin-top:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  font-size:13px;
  opacity:0.8;
}

.logo-icon{
  width:24px;
  height:24px;
  border-radius:6px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:#021018;
  font-weight:bold;
  position:relative;
  overflow:hidden;
}

.logo-icon::before{
  content:'';
  position:absolute;
  top:2px;
  left:2px;
  right:2px;
  bottom:2px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
  border-radius:4px;
  pointer-events:none;
}

/* Decorative elements */
.decorative-orbs{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  pointer-events:none;
  overflow:hidden;
  border-radius:var(--radius);
}

.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(1px);
  animation:float 6s ease-in-out infinite;
}

.orb:nth-child(1){
  width:12px;
  height:12px;
  background:var(--accent);
  top:20%;
  left:15%;
  animation-delay:-2s;
  opacity:0.4;
}

.orb:nth-child(2){
  width:8px;
  height:8px;
  background:var(--accent-2);
  top:70%;
  right:20%;
  animation-delay:-4s;
  opacity:0.3;
}

.orb:nth-child(3){
  width:6px;
  height:6px;
  background:var(--accent);
  top:40%;
  right:15%;
  animation-delay:-1s;
  opacity:0.5;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(120deg); }
  66% { transform: translateY(5px) rotate(240deg); }
}

/* Feature cards */
.features{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:16px;
  margin-top:24px;
  max-width:600px;
}

.feature-card{
  padding:16px;
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  text-align:center;
  transition:all 0.25s ease;
  position:relative;
  overflow:hidden;
}

.feature-card:hover{
  background:rgba(255,255,255,0.05);
  border-color:rgba(139,231,255,0.2);
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(139,231,255,0.1);
}

.feature-icon{
  width:32px;
  height:32px;
  margin:0 auto 8px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#021018;
  font-weight:bold;
}

.feature-title{
  font-size:14px;
  font-weight:600;
  color:var(--text);
  margin-bottom:4px;
}

.feature-desc{
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

/* Modal styles */
.modal-overlay{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.8);
  backdrop-filter:blur(4px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}

.modal{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px;
  max-width:400px;
  width:100%;
  text-align:center;
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  position:relative;
}

.modal h3{
  margin:0 0 8px;
  font-size:20px;
  color:var(--text);
}

.modal p{
  margin:0 0 24px;
  color:var(--muted);
  font-size:14px;
}

.modal-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
}

.modal input[type="email"]{
  padding:12px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  font-size:14px;
  backdrop-filter:blur(2px);
  transition:border-color 0.2s ease;
  width:100%;
  box-sizing:border-box;
  font-family:inherit;
  min-height:44px;
}

.modal input[type="email"]:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:var(--focus);
}

.modal input[type="email"]::placeholder{
  color:var(--muted);
}

.modal-buttons{
  display:flex;
  gap:12px;
  justify-content:center;
}

.modal .btn{
  min-width:100px;
  flex:1;
}

.modal-close{
  position:absolute;
  top:16px;
  right:16px;
  background:none;
  border:none;
  color:var(--muted);
  font-size:20px;
  cursor:pointer;
  padding:4px;
  line-height:1;
  transition:color 0.2s ease;
}

.modal-close:hover{
  color:var(--text);
}

.success-message{
  color:var(--accent);
  font-size:14px;
  margin-top:16px;
  display:none;
}

.error-message{
  color:var(--accent-2);
  font-size:14px;
  margin-top:16px;
  display:none;
}

/* Small screens spacing tweaks */
@media (max-width: 768px){
  body{
    padding:16px 12px;
    align-items:flex-start;
  }
  .wrap{
    padding:16px;
    width:min(100%, calc(100vw - 32px));
    margin-top:10px;
  }
  .hero{
    padding:20px 16px;
    gap:16px;
    margin-top:20px;
  }
  .btn{
    min-width:unset; 
    width:100%;
    padding:14px 16px;
  }
  .cta{
    flex-direction:column;
    width:100%;
  }
  .features{
    grid-template-columns:1fr;
    gap:12px;
    margin-top:20px;
  }
  .feature-card{
    padding:14px;
  }
  .screenshot{
    height:200px;
    margin-top:16px;
  }
  .teaser{
    font-size:16px;
  }
  h1{
    font-size:clamp(28px,8vw,42px);
  }
  .sub{
    font-size:15px;
    margin-top:6px;
  }
}

@media (max-width: 420px){
  body{
    padding:12px;
  }
  .wrap{
    padding:12px;
    width:calc(100vw - 24px);
    margin-top:8px;
  }
  .hero{
    padding:16px 12px;
    gap:14px;
  }
  .features{
    margin-top:16px;
  }
  .feature-card{
    padding:12px;
  }
  .screenshot{
    height:160px;
  }
}
