/* =========================================================
   NEWSMANIA OS HERO — MANUAL BUILD V1
   ========================================================= */

.nm-os-hero{
  position:relative;
  min-height:100svh;
  height:100svh;
  padding:0 !important;
  overflow:hidden;
  background:#050608;
  isolation:isolate;
}

.nm-os-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 38%, rgba(90,255,184,.055), transparent 38%),
    linear-gradient(180deg, #07090c 0%, #040506 100%);
}

.nm-os-grid{
  position:absolute;
  inset:0;
  opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.nm-os-noise{
  position:absolute;
  inset:-50%;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation:nmNoise 1s steps(2) infinite;
}

@keyframes nmNoise{
  0%{ transform:translate3d(0,0,0); }
  25%{ transform:translate3d(2%,-1%,0); }
  50%{ transform:translate3d(-1%,2%,0); }
  75%{ transform:translate3d(1%,1%,0); }
  100%{ transform:translate3d(0,0,0); }
}

.nm-os-orb{
  position:absolute;
  width:45vw;
  aspect-ratio:1;
  border-radius:50%;
  filter:blur(100px);
  opacity:.1;
}

.nm-os-orb-a{
  left:-22vw;
  top:-22vw;
  background:#32ff9a;
}

.nm-os-orb-b{
  right:-20vw;
  bottom:-28vw;
  background:#496cff;
}

.nm-os{
  position:absolute;
  inset:84px 2.2vw 24px;
  z-index:2;
  display:grid;
  grid-template-rows:52px minmax(0,1fr) 42px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  background:rgba(8,10,13,.78);
  box-shadow:
    0 40px 100px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter:blur(22px);
  transform-style:preserve-3d;
  will-change:transform;
}

.nm-os-topbar,
.nm-os-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  border-color:rgba(255,255,255,.075);
  font-family:var(--font-body);
  font-size:10px;
  letter-spacing:.14em;
  color:rgba(255,255,255,.48);
}

.nm-os-topbar{ border-bottom:1px solid rgba(255,255,255,.075); }
.nm-os-footer{ border-top:1px solid rgba(255,255,255,.075); }

.nm-os-brand,
.nm-os-phase{
  display:flex;
  align-items:center;
  gap:9px;
}

.nm-os-brand{
  color:rgba(255,255,255,.9);
  font-weight:700;
}

.nm-os-brand-dot,
.nm-os-phase-dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#62f6ad;
  box-shadow:0 0 16px rgba(98,246,173,.8);
}

.nm-os-phase-dot{
  animation:nmPulse 1.4s ease-in-out infinite;
}

@keyframes nmPulse{
  0%,100%{ opacity:.35; transform:scale(.8); }
  50%{ opacity:1; transform:scale(1.2); }
}

.nm-os-clock{
  font-variant-numeric:tabular-nums;
}

.nm-os-stage{
  position:relative;
  min-height:0;
  overflow:hidden;
  perspective:1400px;
}

/* Boot screen */

.nm-panel{
  position:absolute;
  inset:0;
}

.nm-boot-panel{
  z-index:10;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:30px;
  text-align:center;
  transition:
    opacity .9s ease,
    transform 1.1s cubic-bezier(.16,1,.3,1),
    filter .9s ease;
}

.nm-os[data-phase]:not([data-phase="boot"]) .nm-boot-panel{
  opacity:0;
  transform:scale(1.08);
  filter:blur(12px);
  pointer-events:none;
}

.nm-boot-mark{
  position:relative;
  width:90px;
  height:90px;
  margin-bottom:28px;
}

.nm-boot-ring,
.nm-boot-ring::before,
.nm-boot-ring::after{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(98,246,173,.35);
  content:"";
}

.nm-boot-ring{
  inset:0;
  animation:nmSpin 4s linear infinite;
}

.nm-boot-ring::before{
  inset:10px;
  border-color:rgba(255,255,255,.16);
  border-left-color:#62f6ad;
  animation:nmSpin 2.4s linear infinite reverse;
}

.nm-boot-ring::after{
  inset:22px;
  border-color:rgba(98,246,173,.35);
  border-top-color:#fff;
  animation:nmSpin 1.6s linear infinite;
}

@keyframes nmSpin{
  to{ transform:rotate(360deg); }
}

.nm-boot-core{
  position:absolute;
  inset:35px;
  border-radius:50%;
  background:#62f6ad;
  box-shadow:
    0 0 25px rgba(98,246,173,.8),
    0 0 70px rgba(98,246,173,.38);
  animation:nmCore 1.8s ease-in-out infinite;
}

@keyframes nmCore{
  50%{ transform:scale(.7); opacity:.65; }
}

.nm-eyebrow{
  margin-bottom:16px;
  font-size:10px;
  letter-spacing:.27em;
  color:#62f6ad;
}

.nm-boot-panel h1{
  max-width:900px;
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(38px,5.4vw,84px);
  line-height:1.05;
  letter-spacing:-.02em;
  font-weight:600;
}

.nm-boot-panel h1 em{
  font-style:normal;
  font-weight:500;
  background:linear-gradient(100deg,#f2fff8,#7dffb3 58%,#4fd696);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 34px rgba(98,246,173,.22);
}

.nm-boot-progress{
  width:min(460px,75vw);
  height:2px;
  margin-top:42px;
  overflow:hidden;
  background:rgba(255,255,255,.09);
}

.nm-boot-progress span{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,#62f6ad,#fff);
  box-shadow:0 0 18px rgba(98,246,173,.7);
  transition:width .2s linear;
}

.nm-boot-status{
  width:min(460px,75vw);
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  font-size:10px;
  letter-spacing:.08em;
  color:rgba(255,255,255,.42);
}

/* Workspace */

.nm-workspace{
  position:absolute;
  inset:14px;
  z-index:5;
  display:grid;
  grid-template-columns:170px minmax(300px,.88fr) minmax(440px,1.35fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:#090b0e;
  opacity:0;
  transform:translateY(30px) scale(.975) rotateX(2deg);
  filter:blur(10px);
  pointer-events:none;
  transition:
    opacity .9s ease,
    transform 1.1s cubic-bezier(.16,1,.3,1),
    filter .9s ease;
}

.nm-os[data-phase]:not([data-phase="boot"]) .nm-workspace{
  opacity:1;
  transform:none;
  filter:none;
  pointer-events:auto;
}

.nm-sidebar{
  position:relative;
  padding:18px 12px;
  border-right:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.012);
}

.nm-sidebar-title{
  margin:5px 10px 16px;
  font-size:9px;
  letter-spacing:.18em;
  color:rgba(255,255,255,.3);
}

.nm-file{
  width:100%;
  height:38px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  color:rgba(255,255,255,.48);
  background:transparent;
  font:inherit;
  font-size:11px;
  text-align:left;
  transition:.3s ease;
}

.nm-file.is-active{
  color:#fff;
  background:rgba(255,255,255,.065);
}

.nm-file-icon{
  min-width:24px;
  font-size:8px;
  font-weight:700;
  color:#62f6ad;
}

.nm-file-icon.css{ color:#7398ff; }
.nm-file-icon.js{ color:#f5d653; }
.nm-file-icon.php{ color:#a084ff; }

.nm-sidebar-system{
  position:absolute;
  left:20px;
  right:20px;
  bottom:18px;
  display:flex;
  justify-content:space-between;
  font-size:8px;
  letter-spacing:.13em;
  color:rgba(255,255,255,.28);
}

.nm-sidebar-system strong{
  color:#62f6ad;
}

.nm-editor{
  min-width:0;
  display:grid;
  grid-template-rows:42px minmax(0,1fr) 27px;
  border-right:1px solid rgba(255,255,255,.07);
  background:#080a0d;
}

.nm-editor-tabs{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.nm-editor-tab{
  height:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  color:rgba(255,255,255,.68);
  font-family:var(--font-code);
  font-size:10px;
  border-right:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.025);
}

.nm-tab-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#62f6ad;
}

.nm-editor-action{
  padding-right:16px;
  color:rgba(255,255,255,.32);
}

.nm-code-area{
  min-height:0;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  overflow:hidden;
  padding-top:14px;
}

.nm-line-numbers{
  padding-right:12px;
  color:rgba(255,255,255,.16);
  text-align:right;
  font:10px/1.78 var(--font-code);
  user-select:none;
}

.nm-code{
  position:relative;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#d7dde8;
  white-space:pre-wrap;
  word-break:break-word;
  font:10px/1.78 var(--font-code);
}

.nm-code .tag{ color:#ff7ea5; }
.nm-code .attr{ color:#9ad6ff; }
.nm-code .str{ color:#b8e994; }
.nm-code .prop{ color:#83b9ff; }
.nm-code .val{ color:#d8a7ff; }
.nm-code .fn{ color:#f0d36c; }
.nm-code .comment{ color:#596370; }

.nm-code-caret{
  display:inline-block;
  width:6px;
  height:13px;
  margin-left:2px;
  vertical-align:-2px;
  background:#62f6ad;
  animation:nmCaret .8s steps(1) infinite;
}

@keyframes nmCaret{
  50%{ opacity:0; }
}

.nm-editor-footer{
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 12px;
  border-top:1px solid rgba(255,255,255,.06);
  font:8px var(--font-code);
  color:rgba(255,255,255,.3);
}

.nm-preview-wrap{
  min-width:0;
  padding:14px;
  background:
    radial-gradient(circle at 60% 35%, rgba(98,246,173,.035), transparent 42%),
    #07090b;
}

.nm-browser{
  height:100%;
  display:grid;
  grid-template-rows:38px minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  background:#0b0d11;
  box-shadow:0 25px 60px rgba(0,0,0,.38);
}

.nm-browser-bar{
  display:grid;
  grid-template-columns:70px minmax(0,1fr) 50px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:#111419;
}

.nm-browser-dots{
  display:flex;
  gap:5px;
  padding-left:14px;
}

.nm-browser-dots span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
}

.nm-browser-address{
  width:min(310px,78%);
  height:23px;
  display:flex;
  align-items:center;
  gap:8px;
  justify-self:center;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:6px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.3);
  font:8px var(--font-code);
}

.nm-lock{
  font-size:6px;
  color:#62f6ad;
}

.nm-browser-menu{
  justify-self:center;
  color:rgba(255,255,255,.3);
  letter-spacing:2px;
}

.nm-preview{
  position:relative;
  overflow:hidden;
  background:#f5f1e8;
  color:#101217;
  transition:
    background .9s ease,
    filter .9s ease;
}

.nm-preview-grid{
  position:absolute;
  inset:0;
  z-index:0;
  opacity:.18;
  background-image:
    linear-gradient(rgba(15,20,25,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,20,25,.16) 1px, transparent 1px);
  background-size:24px 24px;
  transition:opacity .8s ease;
}

.nm-site-nav,
.nm-site-hero,
.nm-site-cards{
  position:relative;
  z-index:2;
}

.nm-site-nav{
  height:12%;
  display:flex;
  align-items:center;
  padding:0 5%;
  border-bottom:1px solid rgba(20,24,30,.1);
  opacity:0;
  transform:translateY(-16px);
  transition:.8s cubic-bezier(.16,1,.3,1);
}

.nm-site-logo{
  font:700 clamp(10px,1vw,15px) var(--font-body);
  letter-spacing:-.04em;
}

.nm-site-logo span{ color:#1c9c62; }

.nm-site-links{
  display:flex;
  gap:12px;
  margin-left:auto;
}

.nm-site-links span{
  width:25px;
  height:3px;
  border-radius:3px;
  background:rgba(15,18,22,.22);
}

.nm-site-nav button{
  width:54px;
  height:20px;
  margin-left:18px;
  border:0;
  border-radius:999px;
  background:#101317;
}

.nm-site-hero{
  height:50%;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:center;
  gap:4%;
  padding:4% 5%;
}

.nm-site-copy>*{
  opacity:0;
  transform:translateY(12px);
  transition:.8s cubic-bezier(.16,1,.3,1);
}

.nm-site-kicker{
  display:block;
  margin-bottom:10px;
  font:700 6px var(--font-code);
  letter-spacing:.18em;
  color:#178453;
}

.nm-site-title i,
.nm-site-text i{
  display:block;
  border-radius:5px;
  background:#171a20;
}

.nm-site-title i{
  width:92%;
  height:clamp(10px,1.5vw,20px);
  margin-bottom:6px;
}

.nm-site-title i:nth-child(2){ width:76%; }
.nm-site-title i:nth-child(3){ width:48%; }

.nm-site-text{
  margin-top:13px;
}

.nm-site-text i{
  width:75%;
  height:4px;
  margin-bottom:5px;
  background:rgba(20,24,30,.24);
}

.nm-site-text i:nth-child(2){ width:58%; }

.nm-site-actions{
  display:flex;
  gap:8px;
  margin-top:16px;
}

.nm-site-actions button{
  width:62px;
  height:20px;
  border:1px solid rgba(20,24,30,.14);
  border-radius:999px;
  background:#111419;
}

.nm-site-actions button:nth-child(2){
  background:transparent;
}

.nm-site-visual{
  position:relative;
  width:75%;
  aspect-ratio:1;
  justify-self:center;
  opacity:0;
  transform:scale(.65) rotate(-8deg);
  transition:1.1s cubic-bezier(.16,1,.3,1);
}

.nm-visual-core{
  position:absolute;
  inset:30%;
  border-radius:30%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.85), transparent 24%),
    linear-gradient(145deg,#42db93,#0b4e38);
  box-shadow:0 20px 45px rgba(20,100,65,.28);
  transform:rotate(28deg);
}

.nm-visual-orbit{
  position:absolute;
  inset:10%;
  border:1px solid rgba(20,25,30,.15);
  border-radius:50%;
}

.orbit-a{ transform:rotateX(66deg); }
.orbit-b{ transform:rotateY(66deg); }

.nm-site-cards{
  height:34%;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2%;
  padding:0 5% 5%;
}

.nm-site-cards article{
  padding:7%;
  overflow:hidden;
  border:1px solid rgba(20,25,30,.09);
  border-radius:9px;
  background:rgba(255,255,255,.45);
  opacity:0;
  transform:translateY(22px);
  transition:.85s cubic-bezier(.16,1,.3,1);
}

.nm-card-visual{
  height:65%;
  margin-bottom:8%;
  border-radius:6px;
  background:#d6ddd8;
}

.nm-card-visual.one{ background:linear-gradient(135deg,#b5e7cf,#4aa77a); }
.nm-card-visual.two{ background:linear-gradient(135deg,#b6cdf1,#5e76ae); }
.nm-card-visual.three{ background:linear-gradient(135deg,#ead2bb,#bd7d55); }

.nm-site-cards article span,
.nm-site-cards article i{
  display:block;
  height:3px;
  border-radius:4px;
  background:rgba(20,24,30,.3);
}

.nm-site-cards article i{
  width:55%;
  margin-top:5px;
  opacity:.45;
}

.nm-preview-scan{
  position:absolute;
  top:0;
  bottom:0;
  z-index:8;
  width:20%;
  opacity:0;
  transform:translateX(-180%) skewX(-15deg);
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.45),
    transparent
  );
  pointer-events:none;
}

/* Phase-driven preview build */

.nm-os[data-phase="html"] .nm-site-nav{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-site-nav,
.nm-os[data-phase="js"] .nm-site-nav,
.nm-os[data-phase="deploy"] .nm-site-nav,
.nm-os[data-phase="online"] .nm-site-nav{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-site-copy>*,
.nm-os[data-phase="js"] .nm-site-copy>*,
.nm-os[data-phase="deploy"] .nm-site-copy>*,
.nm-os[data-phase="online"] .nm-site-copy>*{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-site-copy>*:nth-child(2){ transition-delay:.1s; }
.nm-os[data-phase="css"] .nm-site-copy>*:nth-child(3){ transition-delay:.2s; }
.nm-os[data-phase="css"] .nm-site-copy>*:nth-child(4){ transition-delay:.3s; }

.nm-os[data-phase="css"] .nm-site-visual,
.nm-os[data-phase="js"] .nm-site-visual,
.nm-os[data-phase="deploy"] .nm-site-visual,
.nm-os[data-phase="online"] .nm-site-visual{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-site-cards article,
.nm-os[data-phase="js"] .nm-site-cards article,
.nm-os[data-phase="deploy"] .nm-site-cards article,
.nm-os[data-phase="online"] .nm-site-cards article{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-site-cards article:nth-child(2){ transition-delay:.12s; }
.nm-os[data-phase="css"] .nm-site-cards article:nth-child(3){ transition-delay:.24s; }

.nm-os[data-phase="css"] .nm-preview-grid,
.nm-os[data-phase="js"] .nm-preview-grid,
.nm-os[data-phase="deploy"] .nm-preview-grid,
.nm-os[data-phase="online"] .nm-preview-grid{
  opacity:0;
}

.nm-os[data-phase="js"] .nm-visual-core{
  animation:nmFloat 3s ease-in-out infinite;
}

.nm-os[data-phase="js"] .orbit-a{
  animation:nmOrbitA 8s linear infinite;
}

.nm-os[data-phase="js"] .orbit-b{
  animation:nmOrbitB 10s linear infinite reverse;
}

.nm-os[data-phase="js"] .nm-site-cards article{
  animation:nmCardFloat 3.5s ease-in-out infinite;
}

.nm-os[data-phase="js"] .nm-site-cards article:nth-child(2){ animation-delay:.3s; }
.nm-os[data-phase="js"] .nm-site-cards article:nth-child(3){ animation-delay:.6s; }

.nm-os[data-phase="js"] .nm-preview-scan{
  animation:nmScan 1.3s ease-out 1;
}

@keyframes nmFloat{
  50%{ transform:rotate(28deg) translateY(-8px); }
}

@keyframes nmOrbitA{
  to{ transform:rotateX(66deg) rotateZ(360deg); }
}

@keyframes nmOrbitB{
  to{ transform:rotateY(66deg) rotateZ(360deg); }
}

@keyframes nmCardFloat{
  50%{ transform:translateY(-4px); }
}

@keyframes nmScan{
  0%{ opacity:0; transform:translateX(-180%) skewX(-15deg); }
  15%{ opacity:1; }
  100%{ opacity:0; transform:translateX(600%) skewX(-15deg); }
}

/* Terminal and online */

.nm-terminal{
  position:absolute;
  left:8%;
  right:8%;
  bottom:8%;
  z-index:20;
  overflow:hidden;
  border:1px solid rgba(98,246,173,.18);
  border-radius:12px;
  background:rgba(3,7,6,.95);
  box-shadow:0 25px 80px rgba(0,0,0,.65);
  opacity:0;
  transform:translateY(28px) scale(.98);
  pointer-events:none;
  transition:.65s cubic-bezier(.16,1,.3,1);
}

.nm-os[data-phase="deploy"] .nm-terminal{
  opacity:1;
  transform:none;
}

.nm-terminal-head{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-family:var(--font-body);
  font-size:9px;
  letter-spacing:.03em;
  color:rgba(255,255,255,.44);
}

.nm-terminal-head div{
  display:flex;
  gap:5px;
}

.nm-terminal-head i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:rgba(255,255,255,.2);
}

.nm-terminal-body{
  min-height:120px;
  padding:14px 16px;
  color:#90f2ba;
  font-family:var(--font-body);
  font-size:11px;
  line-height:1.7;
}

.nm-terminal-line{
  display:block;
  opacity:0;
  transform:translateY(5px);
  animation:nmTerminalLine .35s ease forwards;
}

.nm-terminal-line strong{
  color:#fff;
}

@keyframes nmTerminalLine{
  to{ opacity:1; transform:none; }
}

.nm-online{
  position:absolute;
  left:50%;
  top:50%;
  z-index:30;
  display:flex;
  align-items:center;
  gap:15px;
  padding:15px 22px;
  border:1px solid rgba(98,246,173,.28);
  border-radius:999px;
  background:rgba(4,10,7,.86);
  box-shadow:
    0 24px 80px rgba(0,0,0,.5),
    0 0 45px rgba(98,246,173,.12);
  backdrop-filter:blur(15px);
  opacity:0;
  transform:translate(-50%,-30%) scale(.8);
  transition:.7s cubic-bezier(.16,1,.3,1);
}

.nm-os[data-phase="online"] .nm-online{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

.nm-online-pulse{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#62f6ad;
  box-shadow:0 0 0 0 rgba(98,246,173,.5);
  animation:nmOnlinePulse 1.5s infinite;
}

@keyframes nmOnlinePulse{
  70%{ box-shadow:0 0 0 14px rgba(98,246,173,0); }
}

.nm-online small,
.nm-online strong{
  display:block;
}

.nm-online small{
  margin-bottom:3px;
  font-size:7px;
  letter-spacing:.16em;
  color:rgba(255,255,255,.4);
}

.nm-online strong{
  font-size:12px;
  letter-spacing:.08em;
  color:#fff;
}

.nm-os[data-phase="online"] .nm-editor{
  opacity:.22;
  transition:opacity .7s ease;
}

.nm-os[data-phase="online"] .nm-sidebar{
  opacity:.2;
  transition:opacity .7s ease;
}

.nm-os[data-phase="online"] .nm-preview-wrap{
  grid-column:2 / 4;
  margin-left:-1px;
  transition:.8s cubic-bezier(.16,1,.3,1);
}

/* Caption and footer */

.nm-stage-caption{
  position:absolute;
  left:26px;
  bottom:26px;
  z-index:40;
  display:flex;
  align-items:center;
  gap:13px;
  pointer-events:none;
}

.nm-stage-caption>span{
  font:700 24px var(--font-body);
  color:rgba(255,255,255,.12);
}

.nm-stage-caption small,
.nm-stage-caption strong{
  display:block;
}

.nm-stage-caption small{
  margin-bottom:3px;
  font-size:7px;
  letter-spacing:.18em;
  color:#62f6ad;
}

.nm-stage-caption strong{
  max-width:260px;
  font-size:9px;
  letter-spacing:.07em;
  color:rgba(255,255,255,.62);
}

.nm-os-footer a{
  color:#fff;
  transition:color .3s ease;
}

.nm-os-footer a:hover{
  color:#62f6ad;
}

.nm-os-footer b{
  margin-left:6px;
  color:#62f6ad;
}

.nm-os-hero .scroll-cue{
  z-index:5;
  bottom:4px;
  transform:translateX(-50%) scale(.75);
  opacity:.55;
}

/* Responsive */

@media (max-width:1050px){
  .nm-workspace{
    grid-template-columns:70px minmax(260px,.8fr) minmax(360px,1.2fr);
  }

  .nm-sidebar-title,
  .nm-file span:last-child,
  .nm-sidebar-system{
    display:none;
  }

  .nm-file{
    justify-content:center;
  }
}

@media (max-width:760px){
  .nm-os{
    inset:74px 10px 12px;
    border-radius:18px;
    grid-template-rows:44px minmax(0,1fr) 36px;
  }

  .nm-os-topbar,
  .nm-os-footer{
    padding:0 13px;
  }

  .nm-os-clock,
  .nm-os-footer>span,
  .nm-stage-caption{
    display:none;
  }

  .nm-boot-panel h1{
    font-size:clamp(32px,10vw,48px);
  }

  .nm-workspace{
    inset:8px;
    grid-template-columns:1fr;
    grid-template-rows:42% 58%;
  }

  .nm-sidebar{
    display:none;
  }

  .nm-editor{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.07);
  }

  .nm-preview-wrap{
    padding:8px;
  }

  .nm-code{
    font-size:8px;
    line-height:1.6;
  }

  .nm-line-numbers{
    font-size:8px;
    line-height:1.6;
  }

  .nm-editor-footer{
    display:none;
  }

  .nm-site-links{
    display:none;
  }

  .nm-site-nav button{
    margin-left:auto;
  }

  .nm-site-hero{
    grid-template-columns:1fr .7fr;
  }

  .nm-site-cards{
    gap:5px;
  }

  .nm-online{
    width:max-content;
    max-width:90%;
  }

  .nm-terminal{
    left:4%;
    right:4%;
    bottom:5%;
  }

  .nm-terminal-body{
    min-height:95px;
    font-size:8px;
  }

  .nm-os[data-phase="online"] .nm-preview-wrap{
    grid-column:auto;
    margin:0;
  }
}

@media (prefers-reduced-motion:reduce){
  .nm-os *,
  .nm-os-bg *{
    animation:none !important;
    transition-duration:.01ms !important;
  }
}


/* =========================================================
   DEVELOPER AGENCY PREVIEW
   ========================================================= */

.nm-dev-preview{
  background:
    radial-gradient(circle at 80% 25%, rgba(70,255,166,.08), transparent 34%),
    linear-gradient(145deg,#07100d 0%,#090b0f 55%,#050607 100%);
  color:#f6f7f5;
}

.nm-dev-preview .nm-preview-grid{
  opacity:.15;
  background-size:28px 28px;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
}

.nm-dev-preview .nm-site-nav{
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nm-dev-preview .nm-site-logo{
  font-size:clamp(9px,1vw,14px);
  color:#fff;
}

.nm-dev-preview .nm-site-logo span{
  margin-left:3px;
  color:#62f6ad;
}

.nm-dev-preview .nm-site-links{
  gap:20px;
  margin-left:auto;
}

.nm-dev-preview .nm-site-links span{
  width:auto;
  height:auto;
  background:none;
  color:rgba(255,255,255,.48);
  font-size:clamp(5px,.55vw,8px);
  white-space:nowrap;
}

.nm-site-nav-btn{
  width:auto !important;
  min-width:78px;
  height:25px !important;
  padding:0 13px;
  margin-left:20px !important;
  color:#07100c;
  background:#62f6ad !important;
  font-size:6px;
  font-weight:700;
}

.nm-dev-hero{
  height:56%;
  grid-template-columns:1.04fr .96fr;
  gap:3%;
  padding-top:4.5%;
  padding-bottom:3%;
}

.nm-dev-title{
  max-width:95%;
  margin:0;
  font-family:var(--font-body);
  font-size:clamp(18px,2.35vw,40px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:600;
}

.nm-dev-title em{
  display:block;
  margin-top:5px;
  color:#62f6ad;
  font-style:normal;
}

.nm-dev-text{
  max-width:82%;
  margin:13px 0 0;
  color:rgba(255,255,255,.45);
  font-family:var(--font-body);
  font-size:clamp(6px,.72vw,10px);
  line-height:1.55;
}

.nm-dev-preview .nm-site-kicker{
  color:#62f6ad;
}

.nm-dev-preview .nm-site-actions button{
  width:auto;
  min-width:76px;
  padding:0 12px;
  color:#07100c;
  background:#62f6ad;
  font-size:6px;
  font-weight:700;
}

.nm-dev-preview .nm-site-actions button:nth-child(2){
  color:rgba(255,255,255,.65);
  background:transparent;
  border-color:rgba(255,255,255,.18);
}

.nm-dev-tech{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:18px;
}

.nm-dev-tech span{
  padding:5px 7px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  color:rgba(255,255,255,.34);
  font:5px var(--font-code);
  letter-spacing:.08em;
}

.nm-dev-visual{
  width:92%;
  aspect-ratio:1.25;
  opacity:0;
  transform:scale(.78) rotateY(-8deg) rotateX(3deg);
  transform-style:preserve-3d;
}

.nm-dev-window{
  position:absolute;
  inset:8% 2% 4% 6%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:12px;
  background:
    radial-gradient(circle at 80% 20%, rgba(98,246,173,.1), transparent 34%),
    rgba(12,15,18,.92);
  box-shadow:
    0 24px 60px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.05);
  transform:translateZ(20px);
}

.nm-dev-window-top{
  height:17%;
  display:flex;
  align-items:center;
  gap:5px;
  padding:0 8%;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nm-dev-window-top i{
  width:4px;
  height:4px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
}

.nm-dev-window-top span{
  margin-left:auto;
  color:rgba(255,255,255,.23);
  font:5px var(--font-code);
}

.nm-dev-window-body{
  padding:8%;
}

.nm-dev-panel{
  height:35px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:7px;
  background:
    linear-gradient(135deg,rgba(98,246,173,.16),rgba(78,100,255,.08));
}

.nm-dev-panel.large{
  height:74px;
  margin-bottom:8px;
}

.nm-dev-panel-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.nm-dev-lines{
  margin-top:10px;
}

.nm-dev-lines span{
  display:block;
  width:78%;
  height:3px;
  margin-bottom:5px;
  border-radius:3px;
  background:rgba(255,255,255,.12);
}

.nm-dev-lines span:nth-child(2){ width:58%; }
.nm-dev-lines span:nth-child(3){ width:36%; }

.nm-dev-float-card{
  position:absolute;
  z-index:4;
  min-width:76px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:rgba(10,13,15,.83);
  box-shadow:0 14px 30px rgba(0,0,0,.3);
  backdrop-filter:blur(10px);
  transform:translateZ(48px);
}

.nm-dev-float-card small,
.nm-dev-float-card strong{
  display:block;
}

.nm-dev-float-card small{
  margin-bottom:3px;
  color:rgba(255,255,255,.3);
  font-size:4px;
  letter-spacing:.12em;
}

.nm-dev-float-card strong{
  color:#fff;
  font-size:7px;
}

.card-code{
  left:-2%;
  bottom:12%;
}

.card-speed{
  right:-4%;
  top:4%;
}

.card-speed strong{
  color:#62f6ad;
}

.nm-dev-cards{
  height:28%;
  padding-top:0;
}

.nm-dev-cards article{
  position:relative;
  padding:6%;
  background:
    radial-gradient(circle at 80% 0%,rgba(98,246,173,.07),transparent 44%),
    rgba(255,255,255,.025);
  border-color:rgba(255,255,255,.08);
  color:#fff;
}

.nm-dev-cards article::after{
  content:"";
  position:absolute;
  left:6%;
  right:6%;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,#62f6ad,transparent);
  opacity:.45;
}

.nm-dev-card-num{
  color:#62f6ad;
  font:5px var(--font-code);
}

.nm-dev-cards strong{
  display:block;
  margin-top:8px;
  font-size:clamp(7px,.72vw,11px);
}

.nm-dev-cards p{
  max-width:90%;
  margin:7px 0 0;
  color:rgba(255,255,255,.35);
  font-family:var(--font-body);
  font-size:clamp(5px,.52vw,7px);
  line-height:1.45;
}

.nm-os[data-phase="css"] .nm-dev-visual,
.nm-os[data-phase="js"] .nm-dev-visual,
.nm-os[data-phase="deploy"] .nm-dev-visual,
.nm-os[data-phase="online"] .nm-dev-visual{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="js"] .nm-dev-window{
  animation:nmDevWindowFloat 4s ease-in-out infinite;
}

.nm-os[data-phase="js"] .card-code{
  animation:nmDevCardFloat 3.2s ease-in-out infinite;
}

.nm-os[data-phase="js"] .card-speed{
  animation:nmDevCardFloat 3.5s .4s ease-in-out infinite;
}

@keyframes nmDevWindowFloat{
  50%{ transform:translateZ(20px) translateY(-5px); }
}

@keyframes nmDevCardFloat{
  50%{ transform:translateZ(48px) translateY(-6px); }
}

@media(max-width:760px){
  .nm-dev-preview .nm-site-links{
    display:none;
  }

  .nm-dev-title{
    font-size:clamp(15px,4vw,23px);
  }

  .nm-dev-text{
    font-size:6px;
  }

  .nm-dev-tech{
    display:none;
  }

  .nm-dev-visual{
    width:100%;
  }

  .nm-dev-float-card{
    display:none;
  }

  .nm-dev-cards p{
    display:none;
  }
}


/* =========================================================
   3D DEVELOPER AGENCY PREVIEW V2
   ========================================================= */

.nm-dev3d-preview{
  position:relative;
  display:grid;
  grid-template-rows:12% 56% 32%;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 72% 38%, rgba(62,255,153,.12), transparent 25%),
    radial-gradient(circle at 20% 85%, rgba(52,84,255,.08), transparent 28%),
    linear-gradient(145deg,#040806 0%,#07110d 50%,#030504 100%);
}

.nm-dev3d-preview .nm-preview-grid{
  opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:26px 26px;
}

.nm-dev3d-nav{
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  padding:0 4.5%;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.nm-dev3d-logo{
  font-family:var(--font-body);
  font-size:clamp(8px,1vw,14px);
  font-weight:700;
  letter-spacing:-.04em;
}

.nm-dev3d-logo span{
  color:#62f6ad;
}

.nm-dev3d-links{
  display:flex;
  gap:18px;
  margin-left:auto;
}

.nm-dev3d-links span{
  color:rgba(255,255,255,.42);
  font-family:var(--font-body);
  font-size:clamp(5px,.55vw,8px);
  white-space:nowrap;
}

.nm-dev3d-nav button{
  min-width:82px;
  height:25px;
  margin-left:20px;
  border:1px solid rgba(98,246,173,.35);
  border-radius:999px;
  color:#62f6ad;
  background:rgba(98,246,173,.04);
  font-family:var(--font-body);
  font-size:6px;
}

.nm-dev3d-main{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:3%;
  min-height:0;
  padding:2.5% 4.5% 1.5%;
}

.nm-dev3d-copy{
  align-self:center;
}

.nm-dev3d-copy>*{
  opacity:0;
  transform:translateY(16px);
  transition:.85s cubic-bezier(.16,1,.3,1);
}

.nm-dev3d-kicker{
  display:block;
  margin-bottom:10px;
  color:#62f6ad;
  font-family:var(--font-body);
  font-weight:700;
  font-size:9px;
  letter-spacing:.04em;
}

.nm-dev3d-copy h2{
  max-width:95%;
  margin:0;
  font-family:var(--font-body);
  font-size:clamp(19px,2.5vw,42px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:600;
}

.nm-dev3d-copy h2 em{
  display:block;
  margin-top:4px;
  color:#62f6ad;
  font-style:normal;
}

.nm-dev3d-copy p{
  max-width:78%;
  margin:13px 0 0;
  color:rgba(255,255,255,.42);
  font-family:var(--font-body);
  font-size:clamp(6px,.7vw,10px);
  line-height:1.55;
}

.nm-dev3d-actions{
  display:flex;
  gap:8px;
  margin-top:16px;
}

.nm-dev3d-actions button{
  min-width:80px;
  height:23px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  color:#06110c;
  background:#62f6ad;
  font-family:var(--font-body);
  font-size:6px;
  font-weight:700;
}

.nm-dev3d-actions button:nth-child(2){
  color:rgba(255,255,255,.58);
  background:transparent;
}

.nm-dev3d-tech{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:17px;
}

.nm-dev3d-tech span{
  padding:5px 7px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  color:rgba(255,255,255,.32);
  font:5px var(--font-code);
  letter-spacing:.09em;
  background:rgba(255,255,255,.02);
}

/* 3D scene */

.nm-dev3d-scene{
  position:relative;
  width:90%;
  aspect-ratio:1.25;
  justify-self:center;
  perspective:900px;
  transform-style:preserve-3d;
  opacity:0;
  transform:scale(.78) rotateY(-10deg) rotateX(5deg);
  transition:1.1s cubic-bezier(.16,1,.3,1);
}

.nm-dev3d-platform{
  position:absolute;
  left:17%;
  right:10%;
  bottom:8%;
  height:17%;
  border:1px solid rgba(98,246,173,.2);
  border-radius:50%;
  background:
    radial-gradient(ellipse at center,rgba(98,246,173,.18),rgba(98,246,173,.02) 55%,transparent 70%);
  transform:rotateX(68deg) translateZ(-20px);
  box-shadow:0 0 35px rgba(98,246,173,.12);
}

.nm-dev3d-core{
  position:absolute;
  left:50%;
  top:46%;
  width:26%;
  aspect-ratio:1;
  transform-style:preserve-3d;
  transform:translate(-50%,-50%) rotateX(-18deg) rotateY(28deg);
}

.nm-dev3d-core .face{
  position:absolute;
  inset:0;
  border:1px solid rgba(98,246,173,.45);
  background:
    linear-gradient(145deg,rgba(98,246,173,.54),rgba(15,70,48,.55));
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.08),
    0 0 25px rgba(98,246,173,.08);
  backdrop-filter:blur(6px);
}

.face-front{ transform:translateZ(34px); }
.face-back{ transform:rotateY(180deg) translateZ(34px); }
.face-left{ transform:rotateY(-90deg) translateZ(34px); }
.face-right{ transform:rotateY(90deg) translateZ(34px); }
.face-top{ transform:rotateX(90deg) translateZ(34px); }
.face-bottom{ transform:rotateX(-90deg) translateZ(34px); }

.nm-dev3d-orbit{
  position:absolute;
  left:50%;
  top:46%;
  border:1px solid rgba(98,246,173,.24);
  border-radius:50%;
  transform-style:preserve-3d;
}

.orbit-one{
  width:63%;
  aspect-ratio:1;
  transform:translate(-50%,-50%) rotateX(72deg);
}

.orbit-two{
  width:53%;
  aspect-ratio:1;
  transform:translate(-50%,-50%) rotateY(70deg);
}

.orbit-three{
  width:70%;
  aspect-ratio:1;
  transform:translate(-50%,-50%) rotateX(45deg) rotateY(35deg);
}

.nm-dev3d-sphere{
  position:absolute;
  width:7%;
  aspect-ratio:1;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 25%,#d9ffeb 0%,#62f6ad 16%,#0b6641 48%,#041b11 100%);
  box-shadow:0 0 18px rgba(98,246,173,.34);
}

.sphere-a{
  left:13%;
  top:20%;
}

.sphere-b{
  right:12%;
  bottom:18%;
  width:5%;
}

.nm-dev3d-float-card{
  position:absolute;
  z-index:6;
  min-width:75px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:9px;
  background:rgba(8,12,10,.78);
  box-shadow:
    0 15px 35px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(12px);
}

.nm-dev3d-float-card small,
.nm-dev3d-float-card strong{
  display:block;
}

.nm-dev3d-float-card small{
  margin-bottom:3px;
  color:rgba(255,255,255,.28);
  font-size:4px;
  letter-spacing:.13em;
}

.nm-dev3d-float-card strong{
  color:#fff;
  font-size:7px;
}

.dev-card-code{
  left:3%;
  bottom:11%;
  transform:translateZ(70px);
}

.dev-card-score{
  right:-1%;
  top:9%;
  transform:translateZ(85px);
}

.dev-card-score strong{
  color:#62f6ad;
}

.dev-card-status{
  right:8%;
  bottom:2%;
  transform:translateZ(55px);
}

.dev-card-status strong{
  color:#62f6ad;
}

/* Services */

.nm-dev3d-services{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.6%;
  padding:0 4.5% 3.5%;
}

.nm-dev3d-services article{
  position:relative;
  display:grid;
  grid-template-columns:34% 1fr;
  grid-template-rows:auto auto 1fr;
  column-gap:8%;
  align-items:center;
  overflow:hidden;
  padding:6%;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:
    radial-gradient(circle at 0% 0%,rgba(98,246,173,.08),transparent 40%),
    rgba(255,255,255,.025);
  opacity:0;
  transform:translateY(18px);
  transition:.85s cubic-bezier(.16,1,.3,1);
}

.nm-dev3d-services article::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,#62f6ad,transparent);
  opacity:.45;
}

.nm-service-3d{
  grid-row:1 / 4;
  position:relative;
  width:100%;
  aspect-ratio:1;
  display:grid;
  place-items:center;
  transform-style:preserve-3d;
}

.nm-service-3d::before{
  content:"";
  position:absolute;
  inset:18%;
  border:1px solid rgba(98,246,173,.32);
  border-radius:10px;
  transform:rotateX(58deg) rotateZ(45deg);
  background:linear-gradient(145deg,rgba(98,246,173,.25),rgba(8,35,24,.1));
  box-shadow:0 14px 25px rgba(0,0,0,.25);
}

.nm-service-3d span{
  position:relative;
  z-index:2;
  color:#62f6ad;
  font:700 clamp(8px,1vw,15px) var(--font-body);
  text-shadow:0 0 12px rgba(98,246,173,.35);
}

.nm-dev3d-services small{
  color:#62f6ad;
  font:5px var(--font-code);
}

.nm-dev3d-services strong{
  margin-top:5px;
  font-size:clamp(7px,.75vw,11px);
}

.nm-dev3d-services p{
  align-self:start;
  max-width:92%;
  margin:5px 0 0;
  color:rgba(255,255,255,.32);
  font-family:var(--font-body);
  font-size:clamp(5px,.5vw,7px);
  line-height:1.4;
}

/* Phase animations */

.nm-os[data-phase="css"] .nm-dev3d-copy>*,
.nm-os[data-phase="js"] .nm-dev3d-copy>*,
.nm-os[data-phase="deploy"] .nm-dev3d-copy>*,
.nm-os[data-phase="online"] .nm-dev3d-copy>*{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(2){ transition-delay:.1s; }
.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(3){ transition-delay:.2s; }
.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(4){ transition-delay:.3s; }
.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(5){ transition-delay:.4s; }

.nm-os[data-phase="css"] .nm-dev3d-scene,
.nm-os[data-phase="js"] .nm-dev3d-scene,
.nm-os[data-phase="deploy"] .nm-dev3d-scene,
.nm-os[data-phase="online"] .nm-dev3d-scene{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-dev3d-services article,
.nm-os[data-phase="js"] .nm-dev3d-services article,
.nm-os[data-phase="deploy"] .nm-dev3d-services article,
.nm-os[data-phase="online"] .nm-dev3d-services article{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-dev3d-services article:nth-child(2){ transition-delay:.12s; }
.nm-os[data-phase="css"] .nm-dev3d-services article:nth-child(3){ transition-delay:.24s; }

.nm-os[data-phase="js"] .nm-dev3d-core{
  animation:nmCore3d 8s linear infinite;
}

.nm-os[data-phase="js"] .orbit-one{
  animation:nmOrbitOne 7s linear infinite;
}

.nm-os[data-phase="js"] .orbit-two{
  animation:nmOrbitTwo 9s linear infinite reverse;
}

.nm-os[data-phase="js"] .orbit-three{
  animation:nmOrbitThree 12s linear infinite;
}

.nm-os[data-phase="js"] .sphere-a{
  animation:nmSphereFloat 3.2s ease-in-out infinite;
}

.nm-os[data-phase="js"] .sphere-b{
  animation:nmSphereFloat 3.8s .5s ease-in-out infinite;
}

.nm-os[data-phase="js"] .dev-card-code{
  animation:nmCard3d 3.2s ease-in-out infinite;
}

.nm-os[data-phase="js"] .dev-card-score{
  animation:nmCard3d 3.6s .4s ease-in-out infinite;
}

.nm-os[data-phase="js"] .dev-card-status{
  animation:nmCard3d 4s .8s ease-in-out infinite;
}

.nm-os[data-phase="js"] .nm-service-3d{
  animation:nmServiceFloat 3.8s ease-in-out infinite;
}

.nm-os[data-phase="js"] .nm-dev3d-services article:nth-child(2) .nm-service-3d{
  animation-delay:.3s;
}

.nm-os[data-phase="js"] .nm-dev3d-services article:nth-child(3) .nm-service-3d{
  animation-delay:.6s;
}

@keyframes nmCore3d{
  from{ transform:translate(-50%,-50%) rotateX(-18deg) rotateY(28deg); }
  to{ transform:translate(-50%,-50%) rotateX(-18deg) rotateY(388deg); }
}

@keyframes nmOrbitOne{
  to{ transform:translate(-50%,-50%) rotateX(72deg) rotateZ(360deg); }
}

@keyframes nmOrbitTwo{
  to{ transform:translate(-50%,-50%) rotateY(70deg) rotateZ(360deg); }
}

@keyframes nmOrbitThree{
  to{ transform:translate(-50%,-50%) rotateX(45deg) rotateY(35deg) rotateZ(360deg); }
}

@keyframes nmSphereFloat{
  50%{ transform:translateY(-7px) scale(1.08); }
}

@keyframes nmCard3d{
  50%{ margin-top:-7px; }
}

@keyframes nmServiceFloat{
  50%{ transform:translateY(-5px) rotateY(8deg); }
}

@media(max-width:760px){
  .nm-dev3d-links{
    display:none;
  }

  .nm-dev3d-main{
    grid-template-columns:1fr .72fr;
  }

  .nm-dev3d-copy h2{
    font-size:clamp(14px,4vw,22px);
  }

  .nm-dev3d-copy p{
    display:none;
  }

  .nm-dev3d-tech{
    display:none;
  }

  .nm-dev3d-scene{
    width:100%;
  }

  .nm-dev3d-float-card{
    display:none;
  }

  .nm-dev3d-services article{
    grid-template-columns:1fr;
    text-align:center;
  }

  .nm-service-3d{
    display:none;
  }

  .nm-dev3d-services p{
    display:none;
  }
}


/* Advanced code editor corrections */

.nm-file-icon.ai{
  color:#62f6ad;
}

.nm-file-icon.queue{
  color:#f7a86e;
}

.nm-line-numbers{
  white-space:pre;
  line-height:1.78;
}

.nm-code{
  white-space:pre !important;
  overflow:auto;
  tab-size:2;
}

.nm-code code{
  display:inline;
  white-space:pre;
}

.nm-code .tag{
  color:#ff7fa8;
}

.nm-code .str{
  color:#aee38b;
}

.nm-code .fn{
  color:#f0ce69;
}

.nm-code .prop{
  color:#85b9ff;
}

.nm-code .val{
  color:#c9a1ff;
}

.nm-code .comment{
  color:#55606e;
  font-style:italic;
}

@media(min-width:1100px){
  .nm-code,
  .nm-line-numbers{
    font-size:11px;
  }
}
