/* ═══ AMTI-TEXTURES ═══ */
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 9999; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.015) 0px, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 2px); }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.018; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ═══ AMTI-AURORA-BG ═══ */
.aurora-orb { position: fixed; border-radius: 50%; filter: blur(150px); pointer-events: none; }
.orb-1 { width: 900px; height: 900px; background: radial-gradient(circle, rgba(0, 255, 209, 0.1) 0%, transparent 60%); top: -450px; left: 50%; transform: translateX(-50%); animation: float-orb1 25s ease-in-out infinite; }
.orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 60%); bottom: -350px; right: -150px; animation: float-orb2 30s ease-in-out infinite reverse; }

/* ═══ AMTI-BOOT-SEQUENCE ═══ */
.boot-screen { position: fixed; inset: 0; background: #000000; z-index: 10000; display: flex; align-items: center; justify-content: center; transition: opacity 0.1s ease; }
.boot-screen.glitch-out { animation: screen-glitch 0.4s ease-out forwards; }
.boot-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-network { position: relative; width: 400px; height: 400px; overflow: visible; }
.boot-node { position: absolute; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0); transition: opacity 0.4s ease, transform 0.4s ease; }
.boot-node.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.boot-node.hub { width: 16px; height: 16px; background: #8B5CF6; box-shadow: 0 0 20px #8B5CF6; }
.boot-node.major { width: 10px; height: 10px; background: #00FFD1; box-shadow: 0 0 14px #00FFD1; }
.boot-node.secondary { width: 8px; height: 8px; background: #00FFD1; box-shadow: 0 0 10px #00FFD1; }
.boot-node.town { width: 6px; height: 6px; background: #00FFD1; box-shadow: 0 0 8px #00FFD1; }
.boot-node-label { position: absolute; transform: translateX(-50%); font-size: 9px; letter-spacing: 0.1em; color: rgba(158, 179, 200, 0); white-space: nowrap; transition: color 0.4s ease; }
.boot-node-label.active { color: rgba(158, 179, 200, 0.6); }
.boot-line-svg { opacity: 0; stroke-dasharray: 600; stroke-dashoffset: 600; transition: none; }
.boot-line-svg.active { opacity: 0.5; stroke-dashoffset: 0; transition: opacity 0.3s ease, stroke-dashoffset 0.6s ease; }
.boot-status { position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); text-align: center; }
.boot-status-text { font-size: 10px; letter-spacing: 0.2em; color: rgba(158, 179, 200, 0.4); opacity: 0; transition: opacity 0.3s ease; }
.boot-status-text.active { opacity: 1; }
.boot-coord { font-size: 11px; letter-spacing: 0.15em; color: #00FFD1; opacity: 0; margin-top: 8px; transition: opacity 0.4s ease; }
.boot-coord.active { opacity: 0.7; }

/* ═══ AMTI-NETWORK-VIZ ═══ */
.network-viz { position: relative; width: 100%; height: 100%; min-height: 320px; }
.network-node { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); animation: node-pulse 3s ease-in-out infinite; }
.network-node.hub { width: 16px; height: 16px; background: #8B5CF6; box-shadow: 0 0 20px #8B5CF6; animation: none; }
.network-node.major { width: 10px; height: 10px; background: #00FFD1; box-shadow: 0 0 14px #00FFD1; }
.network-node.secondary { width: 8px; height: 8px; background: #00FFD1; box-shadow: 0 0 10px #00FFD1; }
.network-node.town { width: 6px; height: 6px; background: #00FFD1; box-shadow: 0 0 8px #00FFD1; }
.network-label { position: absolute; transform: translateX(-50%); font-size: 9px; letter-spacing: 0.1em; color: rgba(158, 179, 200, 0.5); white-space: nowrap; }
.network-label.hub-label { font-size: 11px; font-weight: 600; color: rgba(139, 92, 246, 0.8); letter-spacing: 0.15em; }
.network-line-svg { opacity: 0.2; animation: line-svg-pulse 4s ease-in-out infinite; }

/* ═══ AMTI-GLITCH ═══ */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.glitch::before { color: #00FFD1; z-index: -1; }
.glitch::after { color: #8B5CF6; z-index: -2; }
.glitch.reveal-glitch::before { animation: glitch-reveal-1 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.glitch.reveal-glitch::after { animation: glitch-reveal-2 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.glitch.glitch-persistent::before { animation: glitch-persistent-1 8s ease-in-out infinite; }
.glitch.glitch-persistent::after { animation: glitch-persistent-2 8s ease-in-out infinite 0.05s; }
.glitch:hover::before, .glitch.glitch-persistent:hover::before { animation: glitch-hover-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important; }
.glitch:hover::after, .glitch.glitch-persistent:hover::after { animation: glitch-hover-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important; }

/* ═══ AMTI-PROCESS-STEPS ═══ */
.process-container { position: relative; display: flex; flex-direction: column; gap: 2rem; }
.process-step { position: relative; max-width: 340px; z-index: 2; margin-left: auto; margin-right: auto; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.process-container.visible .process-step { opacity: 1; transform: translateY(0); }
.aurora-flow { display: none; }
.flow-glow { fill: none; stroke: #00FFD1; stroke-width: 4; opacity: 0.25; filter: blur(4px); }
.flow-line { fill: none; stroke: url(#ethereal-gradient); stroke-width: 1.5; opacity: 0.8; stroke-linecap: round; }
.flow-line, .flow-glow { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.7s ease-out; }
.process-container.visible .flow-path-1 { stroke-dashoffset: 0; transition-delay: 0.4s; }
.process-container.visible .flow-path-2 { stroke-dashoffset: 0; transition-delay: 0.6s; }
.process-container.visible .flow-path-3 { stroke-dashoffset: 0; transition-delay: 0.8s; }
@media (max-width: 767px) {
  .process-step { opacity: 1; transform: none; transition: none; }
}

/* ═══ AMTI-SCROLL-INDICATOR ═══ */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-text { font-size: 10px; letter-spacing: 0.2em; color: rgba(158, 179, 200, 0.4); text-transform: uppercase; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(180deg, #00FFD1, transparent); animation: scroll-breathe 2s ease-in-out infinite; }

/* ═══ AMTI-HUD ═══ */
.hud { position: relative; }
.hud::before, .hud::after, .hud > .c-bl, .hud > .c-br { content: ''; position: absolute; width: 20px; height: 20px; border-color: rgba(0, 255, 209, 0.3); border-style: solid; border-width: 0; pointer-events: none; z-index: 10; transition: all 0.3s ease; }
.hud::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud::after { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud > .c-bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud > .c-br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud:hover::before, .hud:hover::after, .hud:hover > .c-bl, .hud:hover > .c-br { width: 28px; height: 28px; border-color: rgba(0, 255, 209, 0.6); }
.hud-v::before, .hud-v::after, .hud-v > .c-bl, .hud-v > .c-br { border-color: rgba(139, 92, 246, 0.3); }
.hud-v:hover::before, .hud-v:hover::after, .hud-v:hover > .c-bl, .hud-v:hover > .c-br { border-color: rgba(139, 92, 246, 0.6); }

/* ═══ AMTI-DIVIDER ═══ */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 255, 209, 0.15) 50%, transparent); margin: 4rem auto; }

/* ═══ AMTI-GLASS-BREATHING ═══ */
.glass-breathing { animation: glass-breathe 4s ease-in-out infinite; }

/* ═══ AMTI-GRADIENT-BORDER ═══ */
.gradient-border { position: relative; background: rgba(5, 8, 16, 0.9); border-radius: 0.75rem; padding: 2px; }
.gradient-border::before { content: ''; position: absolute; inset: -2px; border-radius: 0.85rem; background: linear-gradient(135deg, rgba(0, 255, 209, 0.2), transparent, rgba(139, 92, 246, 0.15)); z-index: -1; animation: gradient-rotate 8s linear infinite; }

/* ═══ AMTI-STATUS-DOT ═══ */
.dot { width: 6px; height: 6px; border-radius: 50%; background: #00FFD1; animation: dot-pulse 2s ease-in-out infinite; }

/* ═══ AMTI-CODE-HIGHLIGHT ═══ */
.code-highlight { position: relative; color: #00FFD1; }
.code-highlight::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #00FFD1, transparent); }

/* ═══ AMTI-NODE-STAGGER ═══ */
.network-node:nth-child(2) { animation-delay: -0.5s; }
.network-node:nth-child(3) { animation-delay: -1s; }
.network-node:nth-child(4) { animation-delay: -1.5s; }
.network-node:nth-child(5) { animation-delay: -2s; }
.network-node:nth-child(6) { animation-delay: -0.3s; }
.network-node:nth-child(7) { animation-delay: -1.2s; }
.network-node:nth-child(8) { animation-delay: -2.5s; }

/* ═══ AMTI-PROCESS-STAGGER ═══ */
.process-container.visible .process-step:nth-child(2) { transition-delay: 0s; }
.process-container.visible .process-step:nth-child(3) { transition-delay: 0.15s; }
.process-container.visible .process-step:nth-child(4) { transition-delay: 0.3s; }
.process-container.visible .process-step:nth-child(5) { transition-delay: 0.45s; }
@media (min-width: 768px) {
  .process-container { gap: 2.5rem; }
  .process-step.align-left { margin-right: auto; margin-left: 0; }
  .process-step.align-right { margin-left: auto; margin-right: 0; }
  .aurora-flow { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: visible; }
  .aurora-flow svg { width: 100%; height: 100%; overflow: visible; }
}

/* ═══ AMTI-TYPOGRAPHY ═══ */
.text-hero { font-size: clamp(4rem, 16vw, 10rem); line-height: 1; font-weight: 800; }
.text-section { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; }

/* ═══ AMTI-GLASS ═══ */
.glass { background: rgba(5, 8, 16, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(22, 30, 40, 0.8); }
.glass-solid { background: rgba(5, 8, 16, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(22, 30, 40, 0.8); }
.hud-corner { position: absolute; width: 12px; height: 12px; border-color: #00FFD1; border-style: solid; opacity: 0.6; }
.hud-corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hud-corner-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hud-corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hud-corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* ═══ AMTI-BUTTONS ═══ */
.btn-aurora { background: linear-gradient(135deg, #00FFD1 0%, #00D9B0 100%); color: #000000; transition: all 0.2s ease-out; }
.btn-aurora:hover { box-shadow: 0 0 20px rgba(0, 255, 209, 0.4); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid rgba(0, 255, 209, 0.3); color: #00FFD1; transition: all 0.2s ease-out; }
.btn-ghost:hover { border-color: #00FFD1; background: rgba(0, 255, 209, 0.1); }

/* ═══ AMTI-INPUTS ═══ */
.amti-input { background: rgba(12, 18, 24, 0.8); border: 1px solid rgba(22, 30, 40, 0.8); color: #F0F4F8; transition: border-color 0.2s ease; }
.amti-input:focus { outline: none; border-color: rgba(0, 255, 209, 0.5); }
.amti-input::placeholder { color: rgba(94, 112, 133, 0.6); }

/* ═══ AMTI-PAGE-BASE ═══ */
html { scroll-behavior: smooth; }

/* ═══ AMTI-NAV-GLASS ═══ */
.nav-glass { background: rgba(5, 8, 16, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(22, 30, 40, 0.8); }

/* ═══ AMTI-NAV-LINKS ═══ */
.nav-link { display: block; color: var(--color-muted); transition: color 0.2s, text-shadow 0.2s; }
.nav-link:hover { color: var(--color-primary); text-shadow: 0 0 8px rgba(0, 255, 209, 0.4); }
.footer-link { color: var(--color-muted); transition: color 0.2s, text-shadow 0.2s; }
.footer-link:hover { color: var(--color-primary); text-shadow: 0 0 8px rgba(0, 255, 209, 0.4); }

/* ═══ AMTI-AUTOCOMPLETE ═══ */
.autocomplete-container input[type=search] { width: 100%; padding: 0.75rem 1rem; border-radius: 0.25rem; background: var(--color-surface); border: 1px solid var(--color-surface-alt); color: var(--color-text); font-family: inherit; font-size: inherit; outline: none; transition: border-color 0.2s; }
.autocomplete-container input[type=search]:focus { border-color: var(--color-primary); }
.autocomplete-container input[type=search]::placeholder { color: var(--color-muted); opacity: 0.6; }

/* ═══ AMTI-MENU-TOGGLE ═══ */
.menu-open .menu-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-line:nth-child(2) { opacity: 0; }
.menu-open .menu-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 1.5rem; }

/* ═══ AMTI-MENU-DROPDOWN ═══ */
#menu-dropdown { transition: opacity 0.2s ease, transform 0.2s ease; }
#menu-dropdown.menu-closed { opacity: 0; transform: translateY(-8px); pointer-events: none; }
#menu-dropdown.menu-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ═══ AMTI-REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 767px) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══ AMTI-REVEAL-DELAYS ═══ */
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }


/* Autocomplete Component Styles */.autocomplete-container { position: relative; }.autocomplete-results { position: absolute; width: 100%; max-height: 300px; overflow-y: auto; background: var(--color-surface); border: var(--effect-border-thin) solid var(--color-muted); border-radius: var(--space-1); box-shadow: var(--effect-shadow-md); z-index: var(--effect-z-modal); margin: 0; padding: 0; }.autocomplete-results:empty { display: none; }.autocomplete-result { padding: var(--space-2) var(--space-3); cursor: pointer; list-style: none; color: var(--color-text); transition: var(--effect-transition-fast); }.autocomplete-result:hover, .autocomplete-result.selected { background: var(--color-surface-alt); }.autocomplete-result.selected { outline: 2px solid var(--color-primary); outline-offset: -2px; }.autocomplete-loading { display: none; position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%); color: var(--color-muted); font-size: var(--font-small); }.htmx-request .autocomplete-loading { display: inline; }.autocomplete-no-results { display: block; padding: var(--space-3); color: var(--color-muted); font-style: italic; }.autocomplete-empty { border: none; box-shadow: none; }
@keyframes screen-glitch { 0% { opacity: 1; transform: translate(0); filter: none; } 10% { transform: translate(-5px, 2px); filter: hue-rotate(90deg); } 20% { transform: translate(5px, -2px); filter: hue-rotate(-90deg); } 30% { transform: translate(-3px, -1px); filter: hue-rotate(45deg); } 40% { transform: translate(3px, 1px); opacity: 0.8; } 50% { transform: translate(-2px, 2px); filter: hue-rotate(-45deg); } 60% { transform: translate(2px, -1px); opacity: 0.6; } 70% { transform: translate(-1px, 1px); opacity: 0.4; } 80% { transform: translate(1px, 0); opacity: 0.2; } 100% { opacity: 0; transform: translate(0); } }@keyframes node-pulse { 0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } }@keyframes line-svg-pulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }@keyframes glitch-reveal-1 { 0% { opacity: 0.9; transform: translate(-15px, 8px); } 15% { opacity: 0.7; transform: translate(12px, -6px); } 30% { opacity: 0.8; transform: translate(-8px, -4px); } 45% { opacity: 0.5; transform: translate(6px, 3px); } 60% { opacity: 0.3; transform: translate(-4px, 2px); } 75% { opacity: 0.15; transform: translate(2px, -1px); } 100% { opacity: 0; transform: translate(0); } }@keyframes glitch-reveal-2 { 0% { opacity: 0.7; transform: translate(12px, -6px); } 15% { opacity: 0.5; transform: translate(-10px, 5px); } 30% { opacity: 0.6; transform: translate(6px, 3px); } 45% { opacity: 0.4; transform: translate(-4px, -2px); } 60% { opacity: 0.2; transform: translate(3px, 1px); } 75% { opacity: 0.1; transform: translate(-1px, -1px); } 100% { opacity: 0; transform: translate(0); } }@keyframes glitch-hover-1 { 0% { opacity: 0; transform: translate(0); } 10% { opacity: 0.8; transform: translate(-6px, 3px); } 30% { opacity: 0.6; transform: translate(6px, -3px); } 50% { opacity: 0.4; transform: translate(-3px, 1px); } 70% { opacity: 0.2; transform: translate(2px, -1px); } 100% { opacity: 0; transform: translate(0); } }@keyframes glitch-hover-2 { 0% { opacity: 0; transform: translate(0); } 10% { opacity: 0.6; transform: translate(5px, -2px); } 30% { opacity: 0.4; transform: translate(-4px, 2px); } 50% { opacity: 0.3; transform: translate(2px, -1px); } 70% { opacity: 0.15; transform: translate(-1px, 1px); } 100% { opacity: 0; transform: translate(0); } }@keyframes glitch-persistent-1 { 0%, 92%, 100% { opacity: 0; transform: translate(0); } 93% { opacity: 0.5; transform: translate(-3px, 1px); } 94% { opacity: 0.3; transform: translate(2px, -1px); } 95% { opacity: 0.4; transform: translate(-1px, 0); } 96% { opacity: 0; transform: translate(0); } }@keyframes glitch-persistent-2 { 0%, 89%, 100% { opacity: 0; transform: translate(0); } 90% { opacity: 0.4; transform: translate(2px, -1px); } 91% { opacity: 0.2; transform: translate(-2px, 1px); } 92% { opacity: 0.3; transform: translate(1px, 0); } 93% { opacity: 0; transform: translate(0); } }@keyframes scroll-breathe { 0%, 100% { opacity: 0.3; height: 50px; } 50% { opacity: 0.8; height: 70px; } }@keyframes glass-breathe { 0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 209, 0.05); } 50% { box-shadow: 0 0 40px rgba(0, 255, 209, 0.1); } }@keyframes gradient-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }@keyframes dot-pulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.2); } }@keyframes float-orb1 { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }@keyframes float-orb2 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }.nv-pos-0{top:50%;left:50%}.nv-lpos-0{top:58%;left:50%}
.nv-pos-1{top:40%;left:32%}.nv-lpos-1{top:34%;left:32%}
.nv-pos-2{top:3%;left:68%}.nv-lpos-2{top:-3%;left:68%}
.nv-pos-3{top:8%;left:78%}.nv-lpos-3{top:2%;left:78%}
.nv-pos-4{top:14%;left:58%}.nv-lpos-4{top:8%;left:58%}
.nv-pos-5{top:16%;left:95%}.nv-lpos-5{top:10%;left:95%}
.nv-pos-6{top:24%;left:88%}.nv-lpos-6{top:18%;left:88%}
.nv-pos-7{top:22%;left:65%}.nv-lpos-7{top:16%;left:65%}
.nv-pos-8{top:26%;left:52%}.nv-lpos-8{top:20%;left:52%}
.nv-pos-9{top:32%;left:92%}.nv-lpos-9{top:26%;left:92%}
.nv-pos-10{top:48%;left:28%}.nv-lpos-10{top:42%;left:28%}
.nv-pos-11{top:42%;left:55%}.nv-lpos-11{top:36%;left:55%}
.nv-pos-12{top:52%;left:18%}.nv-lpos-12{top:46%;left:18%}
.nv-pos-13{top:58%;left:12%}.nv-lpos-13{top:52%;left:12%}
.nv-pos-14{top:66%;left:22%}.nv-lpos-14{top:60%;left:22%}
.nv-pos-15{top:72%;left:6%}.nv-lpos-15{top:66%;left:6%}
.nv-pos-16{top:85%;left:8%}.nv-lpos-16{top:79%;left:8%}
.nv-pos-17{top:95%;left:5%}.nv-lpos-17{top:89%;left:5%}
