
:root{
  --bg:#0c1117;
  --panel:#151c24;
  --panel2:#1b2430;
  --text:#f8fafc;
  --muted:#a9b3bf;
  --line:#2b3745;
  --accent:#ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
body{min-height:100vh}
button,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

.intro-screen{
  position:fixed;inset:0;z-index:50;background:#000;
  display:flex;align-items:center;justify-content:center;
}
#brandIntro{width:100%;height:100%;object-fit:contain;background:#000}
.intro-fallback{
  position:absolute;left:50%;bottom:max(32px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  border:0;border-radius:16px;padding:14px 22px;font-weight:900;
}

.central-app{
  width:min(1080px,100%);
  margin:0 auto;
  padding:clamp(22px,4vw,54px) clamp(16px,4vw,36px) 56px;
}
.hero{
  text-align:center;
  padding:clamp(14px,3vw,30px) 0 clamp(24px,4vw,42px);
}
.brand{
  font-size:clamp(36px,7vw,72px);
  font-weight:1000;
  letter-spacing:-.05em;
}
.hero h1{
  font-size:clamp(25px,4.2vw,46px);
  line-height:1.08;
  margin:14px auto 10px;
  max-width:760px;
}
.hero p{
  margin:0 auto;color:var(--muted);
  font-size:clamp(15px,2vw,19px);max-width:680px;
}

.flow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.step{
  min-width:0;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  display:flex;
  gap:14px;
  min-height:250px;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.step-number{
  flex:0 0 42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;color:#111;font-weight:1000;font-size:20px;
}
.step-content{min-width:0;flex:1}
.step h2{font-size:21px;margin:6px 0 22px}
#gpxFile{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.file-button,.primary,.secondary{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;min-height:54px;border-radius:15px;
  font-weight:900;text-decoration:none;
}
.file-button,.primary{border:0;background:#fff;color:#101418}
.secondary{border:1px solid #58687a;background:transparent;color:#fff}
.primary:disabled{opacity:.38;cursor:not-allowed}
.file-info,.status,.muted{font-size:14px;color:var(--muted);margin-top:14px;overflow-wrap:anywhere}
.status{min-height:20px}
.result{width:100%}
.link-label{font-size:13px;color:var(--muted);margin-bottom:7px}
.short-link{
  background:#0d131a;border:1px solid var(--line);border-radius:13px;
  padding:13px 12px;font-weight:900;font-size:clamp(15px,2vw,18px);
  text-align:center;overflow-wrap:anywhere;
}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}

@media(max-width:820px){
  .flow{grid-template-columns:1fr}
  .step{min-height:0}
}
@media(max-width:480px){
  .central-app{padding-left:13px;padding-right:13px}
  .step{border-radius:20px;padding:18px 15px}
  .step-number{flex-basis:38px;height:38px;font-size:18px}
  .step h2{font-size:19px;margin-top:5px}
  .actions{grid-template-columns:1fr}
  .file-button,.primary,.secondary{min-height:58px;font-size:17px}
}
