/* Shared layout and visual corrections. Loaded last on every page. */
:root{
  --surface:#0d141d;
  --surface-raised:#111a25;
  --stroke:#263342;
  --stroke-soft:#1d2834;
}

html,body{max-width:100%;overflow-x:clip}
body:before{opacity:.62;background:radial-gradient(circle at 12% 18%,rgba(30,87,158,.16),transparent 30%),radial-gradient(circle at 88% 80%,rgba(34,112,136,.06),transparent 28%),linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);background-size:auto,auto,64px 64px,64px 64px}
.noise{opacity:.014}
.shell{width:min(1160px,calc(100% - 32px))}
.site-header{height:80px}
.panel,.activation-card{border-color:var(--stroke);box-shadow:0 20px 60px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.025)}
.primary-button{box-shadow:none}
.primary-button:hover{transform:none;filter:brightness(1.08)}

/* Home */
.hero-layout{min-height:calc(100vh - 144px);grid-template-columns:minmax(0,1fr) minmax(460px,540px);gap:72px;padding-block:56px 64px}
.hero-layout>*{min-width:0}
.hero-copy h1{max-width:620px;margin:22px 0 24px;font-size:clamp(50px,5vw,68px);line-height:1.01;letter-spacing:-.06em;overflow-wrap:normal}
.hero-copy h1 span{display:block;margin-top:7px;color:#7c8797;-webkit-text-stroke:0;background:none}
.hero-copy h1 .mobile-title-break{display:none;margin:0}
.hero-copy>p{max-width:530px;color:#a2acb9;font-size:15px;line-height:1.7}
.hero-facts{margin-top:34px}
.activation-card{width:100%;min-width:0;min-height:0;padding:24px 32px 32px;background:linear-gradient(150deg,#111a26,#0b1119)}
.activation-card:after{display:none}
.stepper{margin:24px 0 38px}
.form-step,.form-step>*{min-width:0}
.form-step h2{font-size:27px}
.form-step>p{margin-bottom:22px;color:#8995a5}
.input-wrap input{min-width:0}
.order-pack{overflow:hidden}
.order-pack div{min-width:0;flex-wrap:wrap;justify-content:flex-end}
.commend-config{max-width:100%}
.commend-config-grid,.commend-card,.commend-card-input{min-width:0}
.server-command{min-width:0;gap:12px}
.server-command div{min-width:0}
.server-command code{max-width:100%;overflow:auto;white-space:nowrap}
.footer{min-height:62px}

/* Tracking */
.track-page{padding:48px 0 72px}
.track-heading{margin-bottom:26px}
.track-heading h1{font-size:38px}
.server-reminder{max-width:100%;overflow:hidden}
.server-reminder-copy,.server-reminder code{min-width:0}
.progress-card,.order-info{background:linear-gradient(150deg,#101924,#0b121a)}
.progress-card{min-height:340px}
.terminal-panel{box-shadow:none}

/* Admin */
.admin-main{max-width:1600px;padding-inline:32px}
.metric-card,.create-form,.recent-panel,.data-table{box-shadow:none}
.data-table{max-width:100%}

@media(max-width:980px){
  .hero-layout{grid-template-columns:minmax(0,1fr) minmax(400px,500px);gap:36px}
  .hero-copy h1{font-size:clamp(44px,5.5vw,58px)}
}

@media(max-width:820px){
  .shell{width:min(100% - 28px,1160px)}
  .hero-layout{display:flex;min-height:0;flex-direction:column;gap:40px;padding:42px 0 56px}
  .hero-copy{width:100%;text-align:left}
  .hero-copy h1{max-width:660px;margin-inline:0;font-size:clamp(42px,9vw,58px);overflow-wrap:break-word}
  .hero-copy>p{margin-inline:0}
  .hero-facts{justify-content:flex-start}
  .activation-card{max-width:620px;margin:0;padding:24px}
  .track-heading{align-items:center}
  .admin-main{padding-inline:20px}
}

@media(max-width:520px){
  .shell{width:calc(100% - 28px)}
  .site-header{height:72px}
  .logo>span:last-child{font-size:17px}
  .logo-mark{width:36px;height:36px}
  .hero-layout{gap:34px;padding:34px 0 48px}
  .hero-copy{text-align:left}
  .eyebrow{font-size:10px}
  .hero-copy h1{width:100%;margin:19px 0 20px;font-size:clamp(37px,11.4vw,48px);line-height:1.03;letter-spacing:-.055em}
  .hero-copy h1 .mobile-title-break{display:inline;margin:0}
  .hero-copy h1 span{margin-top:6px}
  .hero-copy>p{font-size:14px}
  .hero-facts{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:28px}
  .hero-facts div{min-width:0;padding:0 8px;text-align:center}
  .hero-facts div:first-child{padding-left:0}
  .hero-facts div:last-child{padding-right:0}
  .hero-facts span{font-size:9px;line-height:1.35}
  .activation-card{width:100%;max-width:100%;padding:20px 16px 24px;border-radius:16px}
  .card-topline{padding-inline:2px}
  .stepper{margin:22px 0 34px}
  .step-line{margin-inline:7px}
  .form-step h2{font-size:24px}
  .input-wrap{width:100%;height:52px}
  .order-pack{align-items:flex-start;gap:8px;flex-direction:column}
  .order-pack div{justify-content:flex-start}
  .commend-config{padding:15px 12px}
  .server-command{align-items:flex-start;flex-direction:column}
  .server-command button{width:100%}
  .footer{text-align:center}
  .track-page{padding-top:34px}
  .track-heading h1{font-size:29px}
  .progress-main{align-items:flex-start;flex-direction:column}
  .progress-orbit{margin-inline:auto}
  .progress-copy{text-align:center}
  .server-reminder code{width:100%;white-space:normal;overflow-wrap:anywhere}
  .admin-main{padding-inline:12px}
}
