/* Fonts - Geist & Geist Mono */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Fallback';
  src: local("Arial");
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.00%;
  size-adjust: 104.76%;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono Fallback';
  src: local("Arial");
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.00%;
  size-adjust: 134.59%;
}

.__font_geist_19ysh9d {
  font-family: 'Geist', 'Geist Fallback';
  font-style: normal;
}

.__variable_geist_19ysh9d {
  --font-geist-sans: 'Geist', 'Geist Fallback';
}

.__font_geist_mono_1001rt9 {
  font-family: 'Geist Mono', 'Geist Mono Fallback';
  font-style: normal;
}

.__variable_geist_mono_1001rt9 {
  --font-geist-mono: 'Geist Mono', 'Geist Mono Fallback';
}

/* Base & Reset */
:root {
  color-scheme: dark;
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
::after,
::before {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #030918;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
}

body {
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  vertical-align: middle;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

/* Interface Shell & Background Grid */
.interface-shell {
  --cyan: #00d8ff;
  --blue: #087cff;
  color: #dff9ff;
  background: radial-gradient(circle at 50% 45%, #08152e 0, #040b1c 44%, #020610 100%);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.grid-layer {
  opacity: 0.23;
  background-image:
    linear-gradient(#2993d733 1px, #0000 1px),
    linear-gradient(90deg, #2993d733 1px, #0000 1px);
  background-size: 72px 72px;
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(circle, #000 15%, #0000 75%);
  mask-image: radial-gradient(circle, #000 15%, #0000 75%);
}

/* Antigravity WebGL Particle Ring Overlay */
.particles-container {
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.main-particles-component-section {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.main-particles-component-section .main-particles-container,
.main-particles-component-section .main-particles-container canvas {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.status-mark {
  color: #b8ffe4;
}

.status-mark span {
  background: #42ff9b;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  animation: 1.6s ease-in-out infinite blink;
  display: inline-block;
  box-shadow: 0 0 13px #42ff9b;
}

/* Bottom Bar Footer */
.bottom-bar {
  z-index: 12;
  min-height: 62px;
  padding: 0 max(24px, 3.2vw);
  padding-bottom: env(safe-area-inset-bottom);
  font-family: 'Share Tech Mono', 'Consolas', 'Calibri', var(--font-geist-mono), monospace;
  letter-spacing: 0.16em;
  color: #00ff41;
  text-shadow: 0 0 9px #00ff4161;
  white-space: nowrap;
  border-top: 1px solid #58c1ff21;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.bottom-bar a {
  font: inherit;
  letter-spacing: inherit;
  transition: color 0.25s, text-shadow 0.25s;
}

.bottom-bar a:hover {
  color: #7dff9e;
  text-shadow: 0 0 15px #00ff41cc;
}

/* Hero & Network Field */
.hero {
  isolation: isolate;
  place-items: center;
  min-height: 100svh;
  display: grid;
  position: relative;
}

.network-field {
  position: absolute;
  inset: 10px 6px 62px;
}

.network-links {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.42s;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.network-links.is-visible {
  opacity: 0.72;
}

.network-links line {
  vector-effect: non-scaling-stroke;
  stroke: #00ff416b;
  stroke-width: 1px;
}

/* Orbits */
.orbit {
  border: 1px solid rgba(245, 248, 245, 0.2);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.orbit-dot {
  background: #f2f6f8;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  position: absolute;
}

.orbit-dot.dot-a {
  top: -3px;
  left: 50%;
}

.orbit-dot.dot-b {
  top: 24%;
  left: 91%;
}

.orbit-dot.dot-c {
  top: 27%;
  left: 8%;
}

.orbit-one {
  aspect-ratio: 1.8;
  width: min(68vw, 980px);
  animation: 24s linear infinite rotate;
}

.orbit-two {
  aspect-ratio: 1.35;
  border-style: dashed;
  border-color: rgba(245, 248, 245, 0.22);
  width: min(50vw, 700px);
  animation: 18s linear infinite reverse rotate;
}

.orbit-three {
  aspect-ratio: 1;
  border-color: rgba(245, 248, 245, 0.18);
  opacity: 0.45;
  width: min(34vw, 500px);
}

/* IP Nodes */
.ip-node {
  z-index: 4;
  font-family: 'Share Tech Mono', 'Consolas', 'Calibri', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: #00ff41;
  text-shadow: 0 0 5px #00ff416b;
  opacity: 0.85;
  white-space: nowrap;
  align-items: center;
  gap: 9px;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  transition: opacity 0.12s ease-out;
  display: flex;
  position: absolute;
  translate: -3px -50%;
}

.ip-node.edge-right {
  flex-direction: row-reverse;
  translate: calc(3px - 100%) -50%;
}

.ip-node.edge-center {
  translate: -50% -50%;
}

.ip-node.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.node-dot {
  background: #00ff41;
  border: 1px solid #8dffa9;
  border-radius: 50%;
  flex: none;
  width: 6px;
  height: 6px;
  animation: 1.65s steps(2, end) infinite nodeBlink;
  box-shadow: 0 0 7px #00ff41b3;
}

.ip-node:nth-child(3n+2) .node-dot {
  animation-delay: 0.45s;
}

.ip-node:nth-child(3n) .node-dot {
  animation-delay: 0.9s;
}

.ip-label {
  background: 0 0;
  border: 0;
  padding: 5px 8px;
}

/* Center Logo Core */
.logo-core {
  z-index: 6;
  place-items: center;
  width: clamp(260px, 32vw, 420px);
  max-width: calc(100vw - 48px);
  display: grid;
  position: relative;
  animation: 3.8s ease-in-out infinite logoHeartbeat;
  transform-origin: center center;
  will-change: transform, filter;
}

.logo-core img {
  z-index: 5;
  width: 100%;
  height: auto;
  display: block;
  position: relative;
}

/* Metallic silver/white illumination on "INTEL" & tagline */
.logo-tel-silver {
  display: block;
  z-index: 6;
  clip-path: inset(2px 2px 2px 46.6%);
  pointer-events: none;
  background: linear-gradient(
    110deg,
    #b9c9d3 0%,
    #ffffff 42%,
    #b9c9d3 58%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  animation: 5.5s linear infinite metallicSweep;
  position: absolute;
  inset: 0;
  -webkit-mask: url('./romintel-logo.png') center / contain no-repeat;
  mask: url('./romintel-logo.png') center / contain no-repeat;
}

@keyframes logoHeartbeat {
  0% {
    opacity: 0.42;
    transform: scale(1);
    filter: brightness(0.95);
  }
  18% {
    opacity: 1;
    transform: scale(1.22);
    filter: brightness(1.18);
  }
  36% {
    opacity: 0.55;
    transform: scale(1.02);
    filter: brightness(1);
  }
  52% {
    opacity: 0.92;
    transform: scale(1.14);
    filter: brightness(1.12);
  }
  76%, 100% {
    opacity: 0.42;
    transform: scale(1);
    filter: brightness(0.95);
  }
}

@keyframes metallicSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

/* Keyframe Animations */
@keyframes nodeBlink {
  0%, 42% {
    opacity: 1;
  }
  43%, 72% {
    opacity: 0.12;
  }
  73%, to {
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

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

@keyframes floatAttack {
  0% {
    opacity: 0.58;
    transform: translate(-14px, 9px) rotate(-0.8deg);
  }
  28% {
    opacity: 1;
    transform: translate(10px, -15px) rotate(0.5deg);
  }
  62% {
    opacity: 0.76;
    transform: translate(-5px, 7px) rotate(-0.3deg);
  }
  to {
    opacity: 0.95;
    transform: translate(18px, -8px) rotate(0.7deg);
  }
}

@keyframes floatAttackAlt {
  0% {
    opacity: 0.65;
    transform: translate(13px, -11px);
  }
  35% {
    opacity: 1;
    transform: translate(-17px, 5px);
  }
  70% {
    opacity: 0.72;
    transform: translate(8px, 15px);
  }
  to {
    opacity: 0.92;
    transform: translate(-10px, -13px);
  }
}

@keyframes logoEpic {
  0%, 38%, to {
    filter: brightness(1);
    transform: scale(1);
  }
  44% {
    filter: brightness(1.18);
    transform: scale(1.035);
  }
  46% {
    filter: brightness(1.25) drop-shadow(2px 0 #00d8ffbf) drop-shadow(-2px 0 #ff244a8c);
    transform: translate(-2px) skew(-1deg) scale(1.045);
  }
  48% {
    filter: brightness(1.3) drop-shadow(-2px 0 #00d8ffbf) drop-shadow(2px 0 #ff244a8c);
    transform: translate(2px) skew(1deg) scale(1.045);
  }
  51% {
    filter: brightness(1.38);
    transform: scale(1.06);
  }
  58% {
    filter: brightness(1.1);
    transform: scale(1.025);
  }
  70% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes bars {
  to {
    opacity: 0.35;
    transform: scaleY(0.55);
  }
}

/* Responsive Breakpoints */
@media (max-width: 700px) {
  .grid-layer {
    opacity: 0.18;
    background-size: 48px 48px;
  }
  .network-field {
    inset: 8px 6px calc(54px + env(safe-area-inset-bottom));
  }
  .bottom-bar {
    letter-spacing: 0.08em;
    gap: 12px;
    min-height: 54px;
    padding-inline: 16px;
    font-size: clamp(11px, 3vw, 13.5px);
  }
  .logo-core {
    width: clamp(190px, 58vw, 250px);
    max-width: calc(100vw - 44px);
  }
  .orbit-one {
    width: 96vw;
    max-width: none;
  }
  .orbit-two {
    width: 76vw;
  }
  .orbit-three {
    width: 54vw;
  }
  .ip-node {
    letter-spacing: 0.06em;
    gap: 5px;
    font-size: 11px;
  }
  .ip-label {
    padding: 3px 4px;
  }
  .node-dot {
    width: 5px;
    height: 5px;
  }
  .network-links line {
    stroke-width: 0.85px;
  }
}

@media (max-width: 380px) {
  .bottom-bar {
    letter-spacing: 0.05em;
    padding-inline: 12px;
    font-size: 10.5px;
  }
  .logo-core {
    width: 54vw;
  }
  .ip-node {
    font-size: 10px;
    gap: 4px;
  }
  .orbit-one {
    width: 102vw;
  }
}

@media (min-width: 1600px) {
  .network-field {
    inset-inline: 12px;
  }
  .bottom-bar {
    font-size: 15px;
  }
  .network-links line {
    stroke-width: 1.1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.interface-shell.is-paused *,
.interface-shell.is-paused ::before,
.interface-shell.is-paused ::after {
  animation-play-state: paused !important;
}
